amee 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/Gemfile +18 -0
  2. data/README +2 -2
  3. data/Rakefile +31 -0
  4. data/VERSION +1 -0
  5. data/amee-ruby.gemspec +147 -0
  6. data/examples/view_profile_item.rb +32 -0
  7. data/lib/amee.rb +0 -1
  8. data/lib/amee/profile_item.rb +27 -6
  9. data/spec/amee_spec.rb +25 -0
  10. data/spec/cache_spec.rb +152 -0
  11. data/spec/connection_spec.rb +295 -0
  12. data/spec/data_category_spec.rb +259 -0
  13. data/spec/data_item_spec.rb +224 -0
  14. data/spec/data_item_value_history_spec.rb +311 -0
  15. data/spec/data_item_value_spec.rb +231 -0
  16. data/spec/data_object_spec.rb +9 -0
  17. data/spec/drill_down_spec.rb +163 -0
  18. data/spec/fixtures/AD63A83B4D41.json +1 -0
  19. data/spec/fixtures/AD63A83B4D41.xml +1 -0
  20. data/spec/fixtures/create_item.json +1 -0
  21. data/spec/fixtures/create_item.xml +1 -0
  22. data/spec/fixtures/data.json +1 -0
  23. data/spec/fixtures/data.xml +1 -0
  24. data/spec/fixtures/data_home_energy_quantity.xml +146 -0
  25. data/spec/fixtures/data_home_energy_quantity_biodiesel.xml +177 -0
  26. data/spec/fixtures/data_transport_car_generic_drill_fuel_diesel.xml +33 -0
  27. data/spec/fixtures/empty.json +1 -0
  28. data/spec/fixtures/empty.xml +1 -0
  29. data/spec/fixtures/parse_test.xml +22 -0
  30. data/spec/fixtures/v0_data_transport_transport_drill_transportType_Car1.xml +20 -0
  31. data/spec/item_definition_spec.rb +313 -0
  32. data/spec/item_value_definition_spec.rb +253 -0
  33. data/spec/logger_spec.rb +16 -0
  34. data/spec/object_spec.rb +44 -0
  35. data/spec/parse_helper_spec.rb +72 -0
  36. data/spec/profile_category_spec.rb +565 -0
  37. data/spec/profile_item_spec.rb +451 -0
  38. data/spec/profile_item_value_spec.rb +196 -0
  39. data/spec/profile_object_spec.rb +24 -0
  40. data/spec/profile_spec.rb +88 -0
  41. data/spec/rails_spec.rb +48 -0
  42. data/spec/spec.opts +2 -0
  43. data/spec/spec_helper.rb +56 -0
  44. data/spec/user_spec.rb +249 -0
  45. metadata +189 -55
  46. data/lib/amee/version.rb +0 -10
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
- - 6
8
+ - 7
9
9
  - 0
10
- version: 2.6.0
10
+ version: 2.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith
@@ -15,12 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-16 00:00:00 +00:00
19
- default_executable:
18
+ date: 2011-08-09 00:00:00 +01:00
19
+ default_executable: ameesh
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activesupport
23
22
  prerelease: false
23
+ type: :runtime
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
@@ -32,11 +32,11 @@ dependencies:
32
32
  - 3
33
33
  - 5
34
34
  version: 2.3.5
35
- type: :runtime
35
+ name: activesupport
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: json
39
38
  prerelease: false
39
+ type: :runtime
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -46,11 +46,11 @@ dependencies:
46
46
  segments:
47
47
  - 0
48
48
  version: "0"
49
- type: :runtime
49
+ name: json
50
50
  version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: rspec_spinner
53
52
  prerelease: false
53
+ type: :runtime
54
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
@@ -60,90 +60,224 @@ dependencies:
60
60
  segments:
61
61
  - 0
62
62
  version: "0"
63
- type: :runtime
63
+ name: log4r
64
64
  version_requirements: *id003
65
65
  - !ruby/object:Gem::Dependency
66
- name: log4r
67
66
  prerelease: false
67
+ type: :runtime
68
68
  requirement: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
- - - ">="
71
+ - - ~>
72
72
  - !ruby/object:Gem::Version
73
- hash: 3
73
+ hash: 113
74
74
  segments:
75
- - 0
76
- version: "0"
77
- type: :runtime
75
+ - 1
76
+ - 4
77
+ - 3
78
+ - 1
79
+ version: 1.4.3.1
80
+ name: nokogiri
78
81
  version_requirements: *id004
79
82
  - !ruby/object:Gem::Dependency
80
- name: nokogiri
81
83
  prerelease: false
84
+ type: :development
82
85
  requirement: &id005 !ruby/object:Gem::Requirement
83
86
  none: false
84
87
  requirements:
85
88
  - - ~>
86
89
  - !ruby/object:Gem::Version
87
- hash: 113
90
+ hash: 23
88
91
  segments:
89
92
  - 1
93
+ - 0
94
+ - 0
95
+ version: 1.0.0
96
+ name: bundler
97
+ version_requirements: *id005
98
+ - !ruby/object:Gem::Dependency
99
+ prerelease: false
100
+ type: :development
101
+ requirement: &id006 !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ~>
105
+ - !ruby/object:Gem::Version
106
+ hash: 7
107
+ segments:
108
+ - 1
109
+ - 6
90
110
  - 4
111
+ version: 1.6.4
112
+ name: jeweler
113
+ version_requirements: *id006
114
+ - !ruby/object:Gem::Dependency
115
+ prerelease: false
116
+ type: :development
117
+ requirement: &id007 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - "="
121
+ - !ruby/object:Gem::Version
122
+ hash: 27
123
+ segments:
124
+ - 1
91
125
  - 3
126
+ - 0
127
+ version: 1.3.0
128
+ name: rspec
129
+ version_requirements: *id007
130
+ - !ruby/object:Gem::Dependency
131
+ prerelease: false
132
+ type: :development
133
+ requirement: &id008 !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 0
141
+ version: "0"
142
+ name: rcov
143
+ version_requirements: *id008
144
+ - !ruby/object:Gem::Dependency
145
+ prerelease: false
146
+ type: :development
147
+ requirement: &id009 !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - "="
151
+ - !ruby/object:Gem::Version
152
+ hash: 21
153
+ segments:
92
154
  - 1
93
- version: 1.4.3.1
94
- type: :runtime
95
- version_requirements: *id005
155
+ - 1
156
+ - 3
157
+ version: 1.1.3
158
+ name: rspec_spinner
159
+ version_requirements: *id009
160
+ - !ruby/object:Gem::Dependency
161
+ prerelease: false
162
+ type: :development
163
+ requirement: &id010 !ruby/object:Gem::Requirement
164
+ none: false
165
+ requirements:
166
+ - - ~>
167
+ - !ruby/object:Gem::Version
168
+ hash: 9
169
+ segments:
170
+ - 2
171
+ - 3
172
+ - 5
173
+ version: 2.3.5
174
+ name: activerecord
175
+ version_requirements: *id010
176
+ - !ruby/object:Gem::Dependency
177
+ prerelease: false
178
+ type: :development
179
+ requirement: &id011 !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ hash: 3
185
+ segments:
186
+ - 0
187
+ version: "0"
188
+ name: flexmock
189
+ version_requirements: *id011
96
190
  description:
97
191
  email: james@floppy.org.uk
98
192
  executables:
99
193
  - ameesh
100
194
  extensions: []
101
195
 
102
- extra_rdoc_files: []
103
-
104
- files:
196
+ extra_rdoc_files:
105
197
  - README
106
- - COPYING
198
+ files:
107
199
  - CHANGELOG
200
+ - COPYING
201
+ - Gemfile
202
+ - README
203
+ - Rakefile
204
+ - VERSION
205
+ - amee-ruby.gemspec
206
+ - amee.example.yml
207
+ - bin/ameesh
208
+ - cacert.pem
209
+ - examples/create_profile.rb
210
+ - examples/create_profile_item.rb
211
+ - examples/list_profiles.rb
212
+ - examples/view_data_category.rb
213
+ - examples/view_data_item.rb
214
+ - examples/view_profile_item.rb
215
+ - init.rb
108
216
  - lib/amee.rb
217
+ - lib/amee/collection.rb
109
218
  - lib/amee/connection.rb
110
- - lib/amee/data_item.rb
111
- - lib/amee/exceptions.rb
112
- - lib/amee/profile.rb
113
- - lib/amee/profile_object.rb
114
- - lib/amee/profile_category.rb
115
- - lib/amee/profile_item.rb
116
- - lib/amee/profile_item_value.rb
117
- - lib/amee/version.rb
118
219
  - lib/amee/data_category.rb
220
+ - lib/amee/data_item.rb
119
221
  - lib/amee/data_item_value.rb
120
222
  - lib/amee/data_item_value_history.rb
121
223
  - lib/amee/data_object.rb
122
- - lib/amee/object.rb
123
- - lib/amee/shell.rb
124
224
  - lib/amee/drill_down.rb
125
- - lib/amee/rails.rb
126
- - lib/amee/pager.rb
225
+ - lib/amee/exceptions.rb
127
226
  - lib/amee/item_definition.rb
128
227
  - lib/amee/item_value_definition.rb
129
- - lib/amee/user.rb
130
- - lib/amee/collection.rb
131
- - lib/amee/parse_helper.rb
132
228
  - lib/amee/logger.rb
133
- - bin/ameesh
134
- - examples/list_profiles.rb
135
- - examples/create_profile.rb
136
- - examples/create_profile_item.rb
137
- - examples/view_data_category.rb
138
- - examples/view_data_item.rb
139
- - init.rb
229
+ - lib/amee/object.rb
230
+ - lib/amee/pager.rb
231
+ - lib/amee/parse_helper.rb
232
+ - lib/amee/profile.rb
233
+ - lib/amee/profile_category.rb
234
+ - lib/amee/profile_item.rb
235
+ - lib/amee/profile_item_value.rb
236
+ - lib/amee/profile_object.rb
237
+ - lib/amee/rails.rb
238
+ - lib/amee/shell.rb
239
+ - lib/amee/user.rb
140
240
  - rails/init.rb
141
- - amee.example.yml
142
- - cacert.pem
241
+ - spec/amee_spec.rb
242
+ - spec/cache_spec.rb
243
+ - spec/connection_spec.rb
244
+ - spec/data_category_spec.rb
245
+ - spec/data_item_spec.rb
246
+ - spec/data_item_value_history_spec.rb
247
+ - spec/data_item_value_spec.rb
248
+ - spec/data_object_spec.rb
249
+ - spec/drill_down_spec.rb
250
+ - spec/fixtures/AD63A83B4D41.json
251
+ - spec/fixtures/AD63A83B4D41.xml
252
+ - spec/fixtures/create_item.json
253
+ - spec/fixtures/create_item.xml
254
+ - spec/fixtures/data.json
255
+ - spec/fixtures/data.xml
256
+ - spec/fixtures/data_home_energy_quantity.xml
257
+ - spec/fixtures/data_home_energy_quantity_biodiesel.xml
258
+ - spec/fixtures/data_transport_car_generic_drill_fuel_diesel.xml
259
+ - spec/fixtures/empty.json
260
+ - spec/fixtures/empty.xml
261
+ - spec/fixtures/parse_test.xml
262
+ - spec/fixtures/v0_data_transport_transport_drill_transportType_Car1.xml
263
+ - spec/item_definition_spec.rb
264
+ - spec/item_value_definition_spec.rb
265
+ - spec/logger_spec.rb
266
+ - spec/object_spec.rb
267
+ - spec/parse_helper_spec.rb
268
+ - spec/profile_category_spec.rb
269
+ - spec/profile_item_spec.rb
270
+ - spec/profile_item_value_spec.rb
271
+ - spec/profile_object_spec.rb
272
+ - spec/profile_spec.rb
273
+ - spec/rails_spec.rb
274
+ - spec/spec.opts
275
+ - spec/spec_helper.rb
276
+ - spec/user_spec.rb
143
277
  has_rdoc: true
144
- homepage: http://github.com/Floppy/amee-ruby
145
- licenses: []
146
-
278
+ homepage: http://github.com/AMEE/amee-ruby
279
+ licenses:
280
+ - MIT
147
281
  post_install_message:
148
282
  rdoc_options: []
149
283
 
@@ -170,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
304
  requirements: []
171
305
 
172
306
  rubyforge_project:
173
- rubygems_version: 1.3.7
307
+ rubygems_version: 1.6.2
174
308
  signing_key:
175
309
  specification_version: 3
176
310
  summary: Ruby interface to the AMEE carbon calculator
@@ -1,10 +0,0 @@
1
- module AMEE
2
-
3
- module VERSION #:nodoc:
4
- MAJOR = 2
5
- MINOR = 6
6
- TINY = 0
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
- end
9
-
10
- end