Skip to content

#1417: require pmp in award, so the bylaw can be read from the PMP - #1454

Open
jack5505 wants to merge 1 commit into
zerocracy:masterfrom
jack5505:1417-require-pmp
Open

jack5505 wants to merge 1 commit into
zerocracy:masterfrom
jack5505:1417-require-pmp

Conversation

@jack5505

@jack5505 jack5505 commented Oct 8, 2026

Copy link
Copy Markdown

When no query is given, Fbe::Award.new reads the bylaw with Fbe.pmp(...), but lib/fbe/award.rb required only factbase/syntax, joined and fb. Fbe.pmp existed only if something else had loaded fbe/pmp first, so a judge that did require 'fbe/award' alone failed with NoMethodError: undefined method 'pmp' for module Fbe.

Added require_relative 'pmp' to lib/fbe/award.rb, and a test that builds an award from a PMP fact without a query; it fails with the NoMethodError above without the fix.

Closes #1417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lib/fbe/award.rb calls Fbe.pmp but doesn't require pmp, so Fbe::Award.new without a query fails with NoMethodError

1 participant