leap 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
data/leap.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{leap}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Rossmeissl", "Seamus Abshere"]
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 = self.class.decisions[goal].make(send(self.class.decisions[goal].signature_method), *considerations)
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl