amee 2.0.33 → 2.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/amee/profile_category.rb +4 -0
  2. metadata +15 -4
@@ -58,6 +58,8 @@ module AMEE
58
58
  when 'amount'
59
59
  item_data[:amount] = value['value'].to_f
60
60
  item_data[:amount_unit] = value['unit']
61
+ when 'amounts'
62
+ # add new code per COM-69 here.
61
63
  when 'itemValues'
62
64
  value.each do |itemval|
63
65
  path = itemval['path'].to_sym
@@ -292,6 +294,8 @@ module AMEE
292
294
  when 'amount'
293
295
  item_data[:amount] = element.text.to_f
294
296
  item_data[:amount_unit] = element.attributes['unit'].to_s
297
+ when 'amounts'
298
+ # add new code per COM-69 here.
295
299
  when 'itemvalues'
296
300
  element.elements.each do |itemvalue|
297
301
  path = itemvalue.elements['Path'].text
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amee
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 75
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 0
8
- - 33
9
- version: 2.0.33
9
+ - 34
10
+ version: 2.0.34
10
11
  platform: ruby
11
12
  authors:
12
13
  - James Smith
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-06 00:00:00 +01:00
18
+ date: 2010-06-28 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: activesupport
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 9
27
30
  segments:
28
31
  - 2
29
32
  - 3
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: json
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
41
46
  segments:
42
47
  - 0
43
48
  version: "0"
@@ -47,9 +52,11 @@ dependencies:
47
52
  name: rspec_spinner
48
53
  prerelease: false
49
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
59
+ hash: 3
53
60
  segments:
54
61
  - 0
55
62
  version: "0"
@@ -106,23 +113,27 @@ rdoc_options: []
106
113
  require_paths:
107
114
  - lib
108
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
109
117
  requirements:
110
118
  - - ">="
111
119
  - !ruby/object:Gem::Version
120
+ hash: 3
112
121
  segments:
113
122
  - 0
114
123
  version: "0"
115
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
116
126
  requirements:
117
127
  - - ">="
118
128
  - !ruby/object:Gem::Version
129
+ hash: 3
119
130
  segments:
120
131
  - 0
121
132
  version: "0"
122
133
  requirements: []
123
134
 
124
135
  rubyforge_project:
125
- rubygems_version: 1.3.6
136
+ rubygems_version: 1.3.7
126
137
  signing_key:
127
138
  specification_version: 3
128
139
  summary: Ruby interface to the AMEE carbon calculator