amee-data-abstraction 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.rvmrc +1 -0
  2. data/CHANGELOG.txt +4 -0
  3. data/Gemfile +16 -0
  4. data/Gemfile.lock +41 -0
  5. data/LICENSE.txt +27 -0
  6. data/README.txt +188 -0
  7. data/Rakefile +102 -0
  8. data/VERSION +1 -0
  9. data/amee-data-abstraction.gemspec +115 -0
  10. data/examples/_calculator_form.erb +27 -0
  11. data/examples/calculation_controller.rb +16 -0
  12. data/init.rb +4 -0
  13. data/lib/amee-data-abstraction.rb +30 -0
  14. data/lib/amee-data-abstraction/calculation.rb +236 -0
  15. data/lib/amee-data-abstraction/calculation_set.rb +101 -0
  16. data/lib/amee-data-abstraction/drill.rb +63 -0
  17. data/lib/amee-data-abstraction/exceptions.rb +47 -0
  18. data/lib/amee-data-abstraction/input.rb +197 -0
  19. data/lib/amee-data-abstraction/metadatum.rb +58 -0
  20. data/lib/amee-data-abstraction/ongoing_calculation.rb +545 -0
  21. data/lib/amee-data-abstraction/output.rb +16 -0
  22. data/lib/amee-data-abstraction/profile.rb +108 -0
  23. data/lib/amee-data-abstraction/prototype_calculation.rb +350 -0
  24. data/lib/amee-data-abstraction/term.rb +506 -0
  25. data/lib/amee-data-abstraction/terms_list.rb +150 -0
  26. data/lib/amee-data-abstraction/usage.rb +90 -0
  27. data/lib/config/amee_units.rb +129 -0
  28. data/lib/core-extensions/class.rb +27 -0
  29. data/lib/core-extensions/hash.rb +43 -0
  30. data/lib/core-extensions/ordered_hash.rb +21 -0
  31. data/lib/core-extensions/proc.rb +15 -0
  32. data/rails/init.rb +32 -0
  33. data/spec/amee-data-abstraction/calculation_set_spec.rb +54 -0
  34. data/spec/amee-data-abstraction/calculation_spec.rb +75 -0
  35. data/spec/amee-data-abstraction/drill_spec.rb +38 -0
  36. data/spec/amee-data-abstraction/input_spec.rb +77 -0
  37. data/spec/amee-data-abstraction/metadatum_spec.rb +17 -0
  38. data/spec/amee-data-abstraction/ongoing_calculation_spec.rb +494 -0
  39. data/spec/amee-data-abstraction/profile_spec.rb +39 -0
  40. data/spec/amee-data-abstraction/prototype_calculation_spec.rb +256 -0
  41. data/spec/amee-data-abstraction/term_spec.rb +385 -0
  42. data/spec/amee-data-abstraction/terms_list_spec.rb +53 -0
  43. data/spec/config/amee_units_spec.rb +71 -0
  44. data/spec/core-extensions/class_spec.rb +25 -0
  45. data/spec/core-extensions/hash_spec.rb +44 -0
  46. data/spec/core-extensions/ordered_hash_spec.rb +12 -0
  47. data/spec/core-extensions/proc_spec.rb +12 -0
  48. data/spec/fixtures/electricity.rb +35 -0
  49. data/spec/fixtures/electricity_and_transport.rb +55 -0
  50. data/spec/fixtures/transport.rb +26 -0
  51. data/spec/spec.opts +2 -0
  52. data/spec/spec_helper.rb +244 -0
  53. metadata +262 -0
metadata ADDED
@@ -0,0 +1,262 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amee-data-abstraction
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - James Hetherington
14
+ - Andrew Berkeley
15
+ - James Smith
16
+ - George Palmer
17
+ autorequire:
18
+ bindir: bin
19
+ cert_chain: []
20
+
21
+ date: 2011-08-11 00:00:00 +01:00
22
+ default_executable:
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
25
+ prerelease: false
26
+ type: :runtime
27
+ requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ hash: 7
33
+ segments:
34
+ - 3
35
+ - 0
36
+ version: "3.0"
37
+ name: amee
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
40
+ prerelease: false
41
+ type: :runtime
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - "="
46
+ - !ruby/object:Gem::Version
47
+ hash: 15
48
+ segments:
49
+ - 2
50
+ - 1
51
+ - 2
52
+ version: 2.1.2
53
+ name: uuidtools
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
56
+ prerelease: false
57
+ type: :runtime
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - "="
62
+ - !ruby/object:Gem::Version
63
+ hash: 19
64
+ segments:
65
+ - 1
66
+ - 1
67
+ - 0
68
+ version: 1.1.0
69
+ name: quantify
70
+ version_requirements: *id003
71
+ - !ruby/object:Gem::Dependency
72
+ prerelease: false
73
+ type: :development
74
+ requirement: &id004 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ hash: 23
80
+ segments:
81
+ - 1
82
+ - 0
83
+ - 0
84
+ version: 1.0.0
85
+ name: bundler
86
+ version_requirements: *id004
87
+ - !ruby/object:Gem::Dependency
88
+ prerelease: false
89
+ type: :development
90
+ requirement: &id005 !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ hash: 7
96
+ segments:
97
+ - 1
98
+ - 6
99
+ - 4
100
+ version: 1.6.4
101
+ name: jeweler
102
+ version_requirements: *id005
103
+ - !ruby/object:Gem::Dependency
104
+ prerelease: false
105
+ type: :development
106
+ requirement: &id006 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - "="
110
+ - !ruby/object:Gem::Version
111
+ hash: 27
112
+ segments:
113
+ - 1
114
+ - 3
115
+ - 0
116
+ version: 1.3.0
117
+ name: rspec
118
+ version_requirements: *id006
119
+ - !ruby/object:Gem::Dependency
120
+ prerelease: false
121
+ type: :development
122
+ requirement: &id007 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ name: rcov
132
+ version_requirements: *id007
133
+ - !ruby/object:Gem::Dependency
134
+ prerelease: false
135
+ type: :development
136
+ requirement: &id008 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - "="
140
+ - !ruby/object:Gem::Version
141
+ hash: 21
142
+ segments:
143
+ - 1
144
+ - 1
145
+ - 3
146
+ version: 1.1.3
147
+ name: rspec_spinner
148
+ version_requirements: *id008
149
+ - !ruby/object:Gem::Dependency
150
+ prerelease: false
151
+ type: :development
152
+ requirement: &id009 !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ">"
156
+ - !ruby/object:Gem::Version
157
+ hash: 51
158
+ segments:
159
+ - 0
160
+ - 8
161
+ - 6
162
+ version: 0.8.6
163
+ name: flexmock
164
+ version_requirements: *id009
165
+ description: Part of the AMEEappkit this gem provides a data abstraction layer, decreasing the amount and detail of development required
166
+ email: help@amee.com
167
+ executables: []
168
+
169
+ extensions: []
170
+
171
+ extra_rdoc_files:
172
+ - LICENSE.txt
173
+ - README.txt
174
+ files:
175
+ - .rvmrc
176
+ - CHANGELOG.txt
177
+ - Gemfile
178
+ - Gemfile.lock
179
+ - LICENSE.txt
180
+ - README.txt
181
+ - Rakefile
182
+ - VERSION
183
+ - amee-data-abstraction.gemspec
184
+ - examples/_calculator_form.erb
185
+ - examples/calculation_controller.rb
186
+ - init.rb
187
+ - lib/amee-data-abstraction.rb
188
+ - lib/amee-data-abstraction/calculation.rb
189
+ - lib/amee-data-abstraction/calculation_set.rb
190
+ - lib/amee-data-abstraction/drill.rb
191
+ - lib/amee-data-abstraction/exceptions.rb
192
+ - lib/amee-data-abstraction/input.rb
193
+ - lib/amee-data-abstraction/metadatum.rb
194
+ - lib/amee-data-abstraction/ongoing_calculation.rb
195
+ - lib/amee-data-abstraction/output.rb
196
+ - lib/amee-data-abstraction/profile.rb
197
+ - lib/amee-data-abstraction/prototype_calculation.rb
198
+ - lib/amee-data-abstraction/term.rb
199
+ - lib/amee-data-abstraction/terms_list.rb
200
+ - lib/amee-data-abstraction/usage.rb
201
+ - lib/config/amee_units.rb
202
+ - lib/core-extensions/class.rb
203
+ - lib/core-extensions/hash.rb
204
+ - lib/core-extensions/ordered_hash.rb
205
+ - lib/core-extensions/proc.rb
206
+ - rails/init.rb
207
+ - spec/amee-data-abstraction/calculation_set_spec.rb
208
+ - spec/amee-data-abstraction/calculation_spec.rb
209
+ - spec/amee-data-abstraction/drill_spec.rb
210
+ - spec/amee-data-abstraction/input_spec.rb
211
+ - spec/amee-data-abstraction/metadatum_spec.rb
212
+ - spec/amee-data-abstraction/ongoing_calculation_spec.rb
213
+ - spec/amee-data-abstraction/profile_spec.rb
214
+ - spec/amee-data-abstraction/prototype_calculation_spec.rb
215
+ - spec/amee-data-abstraction/term_spec.rb
216
+ - spec/amee-data-abstraction/terms_list_spec.rb
217
+ - spec/config/amee_units_spec.rb
218
+ - spec/core-extensions/class_spec.rb
219
+ - spec/core-extensions/hash_spec.rb
220
+ - spec/core-extensions/ordered_hash_spec.rb
221
+ - spec/core-extensions/proc_spec.rb
222
+ - spec/fixtures/electricity.rb
223
+ - spec/fixtures/electricity_and_transport.rb
224
+ - spec/fixtures/transport.rb
225
+ - spec/spec.opts
226
+ - spec/spec_helper.rb
227
+ has_rdoc: true
228
+ homepage: http://github.com/AMEE/amee-data-abstraction
229
+ licenses:
230
+ - BSD 3-Clause
231
+ post_install_message:
232
+ rdoc_options: []
233
+
234
+ require_paths:
235
+ - lib
236
+ required_ruby_version: !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ hash: 3
242
+ segments:
243
+ - 0
244
+ version: "0"
245
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
+ none: false
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ hash: 3
251
+ segments:
252
+ - 0
253
+ version: "0"
254
+ requirements: []
255
+
256
+ rubyforge_project:
257
+ rubygems_version: 1.6.2
258
+ signing_key:
259
+ specification_version: 3
260
+ summary: Calculation and form building tool hiding details of AMEEconnect
261
+ test_files: []
262
+