pet 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pet/carbon_model.rb +1 -1
- metadata +12 -105
data/lib/pet/carbon_model.rb
CHANGED
@@ -53,7 +53,7 @@ module BrighterPlanet
|
|
53
53
|
|
54
54
|
committee :weight do # kg
|
55
55
|
quorum 'from breed and gender', :needs => [:breed, :gender] do |characteristics|
|
56
|
-
if breed_gender = BreedGender.find_by_breed_name_and_gender_name(characteristics[:breed], characteristics[:gender])
|
56
|
+
if breed_gender = BreedGender.find_by_breed_name_and_gender_name(characteristics[:breed].name, characteristics[:gender].name)
|
57
57
|
breed_gender.weight
|
58
58
|
end
|
59
59
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 15
|
9
|
+
version: 0.0.15
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Andy Rossmeissl
|
@@ -19,142 +18,51 @@ autorequire:
|
|
19
18
|
bindir: bin
|
20
19
|
cert_chain: []
|
21
20
|
|
22
|
-
date: 2010-12-
|
21
|
+
date: 2010-12-16 00:00:00 -05:00
|
23
22
|
default_executable:
|
24
23
|
dependencies:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: activerecord
|
27
|
-
prerelease: false
|
28
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
hash: 5
|
34
|
-
segments:
|
35
|
-
- 3
|
36
|
-
version: "3"
|
37
|
-
type: :development
|
38
|
-
version_requirements: *id001
|
39
24
|
- !ruby/object:Gem::Dependency
|
40
25
|
name: bundler
|
41
|
-
|
42
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
43
27
|
none: false
|
44
28
|
requirements:
|
45
29
|
- - ~>
|
46
30
|
- !ruby/object:Gem::Version
|
47
|
-
hash: 23
|
48
31
|
segments:
|
49
32
|
- 1
|
50
33
|
- 0
|
51
34
|
- 0
|
52
35
|
version: 1.0.0
|
53
36
|
type: :development
|
54
|
-
version_requirements: *id002
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: cucumber
|
57
|
-
prerelease: false
|
58
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
|
-
requirements:
|
61
|
-
- - "="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
hash: 57
|
64
|
-
segments:
|
65
|
-
- 0
|
66
|
-
- 8
|
67
|
-
- 3
|
68
|
-
version: 0.8.3
|
69
|
-
type: :development
|
70
|
-
version_requirements: *id003
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: jeweler
|
73
|
-
prerelease: false
|
74
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
|
-
requirements:
|
77
|
-
- - "="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
hash: 7
|
80
|
-
segments:
|
81
|
-
- 1
|
82
|
-
- 4
|
83
|
-
- 0
|
84
|
-
version: 1.4.0
|
85
|
-
type: :development
|
86
|
-
version_requirements: *id004
|
87
|
-
- !ruby/object:Gem::Dependency
|
88
|
-
name: rake
|
89
37
|
prerelease: false
|
90
|
-
|
91
|
-
none: false
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
hash: 3
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
version: "0"
|
99
|
-
type: :development
|
100
|
-
version_requirements: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: rdoc
|
103
|
-
prerelease: false
|
104
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
hash: 3
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
version: "0"
|
113
|
-
type: :development
|
114
|
-
version_requirements: *id006
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: rspec
|
117
|
-
prerelease: false
|
118
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
|
-
requirements:
|
121
|
-
- - ~>
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
hash: 7
|
124
|
-
segments:
|
125
|
-
- 2
|
126
|
-
version: "2"
|
127
|
-
type: :development
|
128
|
-
version_requirements: *id007
|
38
|
+
version_requirements: *id001
|
129
39
|
- !ruby/object:Gem::Dependency
|
130
40
|
name: sniff
|
131
|
-
|
132
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
133
42
|
none: false
|
134
43
|
requirements:
|
135
44
|
- - ">="
|
136
45
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 3
|
138
46
|
segments:
|
139
47
|
- 0
|
140
48
|
version: "0"
|
141
49
|
type: :development
|
142
|
-
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: *id002
|
143
52
|
- !ruby/object:Gem::Dependency
|
144
53
|
name: emitter
|
145
|
-
|
146
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
147
55
|
none: false
|
148
56
|
requirements:
|
149
57
|
- - ~>
|
150
58
|
- !ruby/object:Gem::Version
|
151
|
-
hash: 13
|
152
59
|
segments:
|
153
60
|
- 0
|
154
61
|
- 3
|
155
62
|
version: "0.3"
|
156
63
|
type: :runtime
|
157
|
-
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: *id003
|
158
66
|
description: A software model in Ruby for the greenhouse gas emissions of an pet
|
159
67
|
email: andy@rossmeissl.net
|
160
68
|
executables: []
|
@@ -192,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
100
|
requirements:
|
193
101
|
- - ">="
|
194
102
|
- !ruby/object:Gem::Version
|
195
|
-
hash:
|
103
|
+
hash: 831249133
|
196
104
|
segments:
|
197
105
|
- 0
|
198
106
|
version: "0"
|
@@ -201,7 +109,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
109
|
requirements:
|
202
110
|
- - ">="
|
203
111
|
- !ruby/object:Gem::Version
|
204
|
-
hash: 3
|
205
112
|
segments:
|
206
113
|
- 0
|
207
114
|
version: "0"
|