leap 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,28 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "leap/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "leap"
7
- s.version = Leap::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Andy Rossmeissl", "Seamus Abshere", "Derek Kastner"]
10
- s.email = "andy@rossmeissl.net"
11
- s.homepage = "http://github.com/rossmeissl/leap"
12
- s.summary = %Q{A heuristics engine for your Ruby objects}
13
- s.description = %Q{Leap to conclusions}
14
-
15
- s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
19
-
20
- s.add_development_dependency "charisma", '~>0.2.0'
21
- s.add_development_dependency "shoulda"
22
- s.add_development_dependency 'bueller'
23
- s.add_dependency 'blockenspiel', '>=0.3.2'
24
- s.add_dependency 'activesupport', '>=2.3.4'
25
- # sabshere 1/27/11 for activesupport - http://groups.google.com/group/ruby-bundler/browse_thread/thread/b4a2fc61ac0b5438
26
- s.add_dependency 'i18n'
27
- s.add_dependency 'builder'
28
- end
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "leap/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "leap"
7
+ s.version = Leap::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Andy Rossmeissl", "Seamus Abshere", "Derek Kastner"]
10
+ s.email = "andy@rossmeissl.net"
11
+ s.homepage = "http://github.com/rossmeissl/leap"
12
+ s.summary = %Q{A heuristics engine for your Ruby objects}
13
+ s.description = %Q{Leap to conclusions}
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.add_development_dependency "charisma", '~>0.2.0'
21
+ s.add_development_dependency "shoulda"
22
+ s.add_development_dependency 'bueller'
23
+ s.add_dependency 'blockenspiel', '>=0.3.2'
24
+ s.add_dependency 'activesupport', '>=2.3.4'
25
+ # sabshere 1/27/11 for activesupport - http://groups.google.com/group/ruby-bundler/browse_thread/thread/b4a2fc61ac0b5438
26
+ s.add_dependency 'i18n'
27
+ s.add_dependency 'builder'
28
+ end
@@ -50,15 +50,12 @@ module Leap
50
50
  decisions[goal] = ::Leap::Decision.new goal, options
51
51
  Blockenspiel.invoke(blk, decisions[goal])
52
52
  define_method goal do |*considerations|
53
- options = considerations.extract_options!
54
53
  @deliberations ||= {}
55
54
  decision = self.class.decisions[goal]
56
55
  characteristics = send(self.class.decisions[goal].signature_method)
57
- considerations.push(options)
58
56
  @deliberations[goal] = decision.make(characteristics, *considerations)
59
57
  if @deliberations[goal][goal].nil?
60
- raise ::Leap::NoSolutionError, :goal => goal,
61
- :deliberation => @deliberations[goal]
58
+ raise ::Leap::NoSolutionError, :goal => goal, :deliberation => @deliberations[goal]
62
59
  end
63
60
  @deliberations[goal][goal]
64
61
  end
@@ -1,3 +1,3 @@
1
- module Leap
2
- VERSION = "0.5.3"
3
- end
1
+ module Leap
2
+ VERSION = "0.5.4"
3
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 3
10
- version: 0.5.3
5
+ version: 0.5.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Andy Rossmeissl
@@ -17,113 +12,86 @@ autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
14
 
20
- date: 2011-05-25 00:00:00 -04:00
15
+ date: 2011-06-02 00:00:00 -05:00
21
16
  default_executable:
22
17
  dependencies:
23
18
  - !ruby/object:Gem::Dependency
24
- prerelease: false
25
19
  name: charisma
26
- type: :development
27
- version_requirements: &id001 !ruby/object:Gem::Requirement
20
+ requirement: &id001 !ruby/object:Gem::Requirement
28
21
  none: false
29
22
  requirements:
30
23
  - - ~>
31
24
  - !ruby/object:Gem::Version
32
- hash: 23
33
- segments:
34
- - 0
35
- - 2
36
- - 0
37
25
  version: 0.2.0
38
- requirement: *id001
39
- - !ruby/object:Gem::Dependency
26
+ type: :development
40
27
  prerelease: false
28
+ version_requirements: *id001
29
+ - !ruby/object:Gem::Dependency
41
30
  name: shoulda
42
- type: :development
43
- version_requirements: &id002 !ruby/object:Gem::Requirement
31
+ requirement: &id002 !ruby/object:Gem::Requirement
44
32
  none: false
45
33
  requirements:
46
34
  - - ">="
47
35
  - !ruby/object:Gem::Version
48
- hash: 3
49
- segments:
50
- - 0
51
36
  version: "0"
52
- requirement: *id002
53
- - !ruby/object:Gem::Dependency
37
+ type: :development
54
38
  prerelease: false
39
+ version_requirements: *id002
40
+ - !ruby/object:Gem::Dependency
55
41
  name: bueller
56
- type: :development
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
42
+ requirement: &id003 !ruby/object:Gem::Requirement
58
43
  none: false
59
44
  requirements:
60
45
  - - ">="
61
46
  - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
47
  version: "0"
66
- requirement: *id003
67
- - !ruby/object:Gem::Dependency
48
+ type: :development
68
49
  prerelease: false
50
+ version_requirements: *id003
51
+ - !ruby/object:Gem::Dependency
69
52
  name: blockenspiel
70
- type: :runtime
71
- version_requirements: &id004 !ruby/object:Gem::Requirement
53
+ requirement: &id004 !ruby/object:Gem::Requirement
72
54
  none: false
73
55
  requirements:
74
56
  - - ">="
75
57
  - !ruby/object:Gem::Version
76
- hash: 23
77
- segments:
78
- - 0
79
- - 3
80
- - 2
81
58
  version: 0.3.2
82
- requirement: *id004
83
- - !ruby/object:Gem::Dependency
59
+ type: :runtime
84
60
  prerelease: false
61
+ version_requirements: *id004
62
+ - !ruby/object:Gem::Dependency
85
63
  name: activesupport
86
- type: :runtime
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
64
+ requirement: &id005 !ruby/object:Gem::Requirement
88
65
  none: false
89
66
  requirements:
90
67
  - - ">="
91
68
  - !ruby/object:Gem::Version
92
- hash: 11
93
- segments:
94
- - 2
95
- - 3
96
- - 4
97
69
  version: 2.3.4
98
- requirement: *id005
99
- - !ruby/object:Gem::Dependency
70
+ type: :runtime
100
71
  prerelease: false
72
+ version_requirements: *id005
73
+ - !ruby/object:Gem::Dependency
101
74
  name: i18n
102
- type: :runtime
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
75
+ requirement: &id006 !ruby/object:Gem::Requirement
104
76
  none: false
105
77
  requirements:
106
78
  - - ">="
107
79
  - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
80
  version: "0"
112
- requirement: *id006
113
- - !ruby/object:Gem::Dependency
81
+ type: :runtime
114
82
  prerelease: false
83
+ version_requirements: *id006
84
+ - !ruby/object:Gem::Dependency
115
85
  name: builder
116
- type: :runtime
117
- version_requirements: &id007 !ruby/object:Gem::Requirement
86
+ requirement: &id007 !ruby/object:Gem::Requirement
118
87
  none: false
119
88
  requirements:
120
89
  - - ">="
121
90
  - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
91
  version: "0"
126
- requirement: *id007
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: *id007
127
95
  description: Leap to conclusions
128
96
  email: andy@rossmeissl.net
129
97
  executables: []
@@ -169,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
137
  requirements:
170
138
  - - ">="
171
139
  - !ruby/object:Gem::Version
172
- hash: 3
140
+ hash: -1210512428885299124
173
141
  segments:
174
142
  - 0
175
143
  version: "0"
@@ -178,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
146
  requirements:
179
147
  - - ">="
180
148
  - !ruby/object:Gem::Version
181
- hash: 3
149
+ hash: -1210512428885299124
182
150
  segments:
183
151
  - 0
184
152
  version: "0"
@@ -189,5 +157,6 @@ rubygems_version: 1.6.2
189
157
  signing_key:
190
158
  specification_version: 3
191
159
  summary: A heuristics engine for your Ruby objects
192
- test_files: []
193
-
160
+ test_files:
161
+ - test/helper.rb
162
+ - test/test_leap.rb