leap 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/leap.gemspec +1 -1
- data/lib/leap/subject.rb +3 -2
- data/test/test_leap.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/leap.gemspec
CHANGED
data/lib/leap/subject.rb
CHANGED
@@ -9,8 +9,9 @@ module Leap
|
|
9
9
|
decisions[goal] = ::Leap::Decision.new goal, options
|
10
10
|
Blockenspiel.invoke(blk, decisions[goal])
|
11
11
|
define_method goal do |*considerations|
|
12
|
-
@minutes
|
13
|
-
@minutes[goal]
|
12
|
+
@minutes ||= {}
|
13
|
+
@minutes[goal] = self.class.decisions[goal].make(send(self.class.decisions[goal].signature_method), *considerations)
|
14
|
+
@minutes[goal][goal]
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|
data/test/test_leap.rb
CHANGED
@@ -22,7 +22,7 @@ class TestLeap < Test::Unit::TestCase
|
|
22
22
|
|
23
23
|
should 'nevertheless remember how his lucky number was determined' do
|
24
24
|
@person.lucky_number # make the decision
|
25
|
-
assert_equal({ :magic_integer => 6, :lucky_number => 36, :age => 5}, @person.minutes)
|
25
|
+
assert_equal({ :magic_integer => 6, :lucky_number => 36, :age => 5}, @person.minutes[:lucky_number])
|
26
26
|
end
|
27
27
|
|
28
28
|
should 'but only as long as it had actually been determined' do
|