amee-data-abstraction 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +5 -0
- data/Gemfile +3 -3
- data/README.txt +7 -0
- data/Rakefile +1 -8
- data/VERSION +1 -1
- data/amee-data-abstraction.gemspec +19 -18
- data/lib/amee-data-abstraction.rb +2 -0
- data/lib/amee-data-abstraction/calculation_set.rb +1 -0
- data/lib/amee-data-abstraction/ongoing_calculation.rb +1 -1
- data/lib/amee-data-abstraction/railtie.rb +13 -0
- data/lib/config/amee_units.rb +1 -1
- data/lib/core-extensions/hash.rb +3 -2
- data/lib/tasks/amee_data_abstraction.rake +24 -0
- data/spec/amee-data-abstraction/calculation_set_spec.rb +2 -2
- data/spec/amee-data-abstraction/prototype_calculation_spec.rb +6 -6
- data/spec/amee-data-abstraction/term_spec.rb +3 -2
- data/spec/core-extensions/hash_spec.rb +12 -12
- data/spec/spec_helper.rb +3 -1
- metadata +91 -146
- data/Gemfile.lock +0 -51
data/CHANGELOG.txt
CHANGED
data/Gemfile
CHANGED
@@ -2,15 +2,15 @@ source "http://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "amee", "~> 4.1.5"
|
4
4
|
gem 'uuidtools', '2.1.2'
|
5
|
-
gem 'quantify', '~>
|
5
|
+
gem 'quantify', '~> 3.1.2'
|
6
6
|
|
7
7
|
group :development do
|
8
|
-
gem "bundler", "~> 1.
|
8
|
+
gem "bundler", "~> 1.1.0"
|
9
9
|
gem "jeweler", "~> 1.6.4"
|
10
10
|
gem 'rspec', '2.6.0'
|
11
11
|
gem 'flexmock', '> 0.8.6'
|
12
|
-
gem 'rcov'
|
13
12
|
gem 'rdoc'
|
13
|
+
gem 'pry'
|
14
14
|
end
|
15
15
|
|
16
16
|
group :test do
|
data/README.txt
CHANGED
@@ -174,6 +174,13 @@ From this global calculation set, initialize a new calculation
|
|
174
174
|
|
175
175
|
#=> <AMEE::DataAbstraction::OngoingCalculation ... >
|
176
176
|
|
177
|
+
=== Locking the calculation configuration
|
178
|
+
Depending on the nature of the configuration file(s) used a call to the AMEE platform may be required in order to retrieve all of the information required to represent the specified calculations. This might be the case for example, when using the terms_from_amee and similar convenience methods: details such as term names, paths, units and default values are collected from the platform once at start up. In order to avoid this call every time an application is started, a .lock file can be generated which contains a complete description of the configuration information. To generate lock files use:
|
179
|
+
|
180
|
+
rake amee:calculations:lock[<filename>]
|
181
|
+
|
182
|
+
rake amee:calculations:lock_all
|
183
|
+
|
177
184
|
=== Configuring a connection to AMEE
|
178
185
|
|
179
186
|
The AMEE::DataAbstraction module uses the 'amee' ruby gem to interact with AMEE.
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
# encoding: utf-8
|
5
5
|
|
6
|
-
|
6
|
+
|
7
7
|
require 'bundler'
|
8
8
|
begin
|
9
9
|
Bundler.setup(:default, :development)
|
@@ -72,13 +72,6 @@ Jeweler::Tasks.new do |gem|
|
|
72
72
|
end
|
73
73
|
Jeweler::RubygemsDotOrgTasks.new
|
74
74
|
|
75
|
-
require 'rcov/rcovtask'
|
76
|
-
desc "Generate code coverage"
|
77
|
-
RSpec::Core::RakeTask.new(:coverage) do |t|
|
78
|
-
t.rcov = true
|
79
|
-
t.rcov_opts = ['--exclude', 'spec']
|
80
|
-
end
|
81
|
-
|
82
75
|
require 'rdoc/task'
|
83
76
|
RDoc::Task.new do |rd|
|
84
77
|
rd.title = "AMEE Data Abstraction"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "2.
|
7
|
+
s.name = "amee-data-abstraction"
|
8
|
+
s.version = "2.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Hetherington", "Andrew Berkeley", "James Smith", "George Palmer"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2012-05-01"
|
13
|
+
s.description = "Part of the AMEEappkit this gem provides a data abstraction layer, decreasing the amount and detail of development required"
|
14
|
+
s.email = "help@amee.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.txt"
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
".rvmrc",
|
21
21
|
"CHANGELOG.txt",
|
22
22
|
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
23
|
"LICENSE.txt",
|
25
24
|
"README.txt",
|
26
25
|
"Rakefile",
|
@@ -39,6 +38,7 @@ Gem::Specification.new do |s|
|
|
39
38
|
"lib/amee-data-abstraction/output.rb",
|
40
39
|
"lib/amee-data-abstraction/profile.rb",
|
41
40
|
"lib/amee-data-abstraction/prototype_calculation.rb",
|
41
|
+
"lib/amee-data-abstraction/railtie.rb",
|
42
42
|
"lib/amee-data-abstraction/term.rb",
|
43
43
|
"lib/amee-data-abstraction/terms_list.rb",
|
44
44
|
"lib/amee-data-abstraction/usage.rb",
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/core-extensions/hash.rb",
|
48
48
|
"lib/core-extensions/ordered_hash.rb",
|
49
49
|
"lib/core-extensions/proc.rb",
|
50
|
+
"lib/tasks/amee_data_abstraction.rake",
|
50
51
|
"spec/amee-data-abstraction/calculation_set_spec.rb",
|
51
52
|
"spec/amee-data-abstraction/calculation_spec.rb",
|
52
53
|
"spec/amee-data-abstraction/drill_spec.rb",
|
@@ -70,11 +71,11 @@ Gem::Specification.new do |s|
|
|
70
71
|
"spec/spec.opts",
|
71
72
|
"spec/spec_helper.rb"
|
72
73
|
]
|
73
|
-
s.homepage =
|
74
|
+
s.homepage = "http://github.com/AMEE/amee-data-abstraction"
|
74
75
|
s.licenses = ["BSD 3-Clause"]
|
75
76
|
s.require_paths = ["lib"]
|
76
|
-
s.rubygems_version =
|
77
|
-
s.summary =
|
77
|
+
s.rubygems_version = "1.8.17"
|
78
|
+
s.summary = "Calculation and form building tool hiding details of AMEEconnect"
|
78
79
|
|
79
80
|
if s.respond_to? :specification_version then
|
80
81
|
s.specification_version = 3
|
@@ -82,34 +83,34 @@ Gem::Specification.new do |s|
|
|
82
83
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
83
84
|
s.add_runtime_dependency(%q<amee>, ["~> 4.1.5"])
|
84
85
|
s.add_runtime_dependency(%q<uuidtools>, ["= 2.1.2"])
|
85
|
-
s.add_runtime_dependency(%q<quantify>, ["~>
|
86
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.
|
86
|
+
s.add_runtime_dependency(%q<quantify>, ["~> 3.1.2"])
|
87
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
|
87
88
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
88
89
|
s.add_development_dependency(%q<rspec>, ["= 2.6.0"])
|
89
90
|
s.add_development_dependency(%q<flexmock>, ["> 0.8.6"])
|
90
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
91
91
|
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
92
|
+
s.add_development_dependency(%q<pry>, [">= 0"])
|
92
93
|
else
|
93
94
|
s.add_dependency(%q<amee>, ["~> 4.1.5"])
|
94
95
|
s.add_dependency(%q<uuidtools>, ["= 2.1.2"])
|
95
|
-
s.add_dependency(%q<quantify>, ["~>
|
96
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
96
|
+
s.add_dependency(%q<quantify>, ["~> 3.1.2"])
|
97
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
|
97
98
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
98
99
|
s.add_dependency(%q<rspec>, ["= 2.6.0"])
|
99
100
|
s.add_dependency(%q<flexmock>, ["> 0.8.6"])
|
100
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
101
101
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
102
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
102
103
|
end
|
103
104
|
else
|
104
105
|
s.add_dependency(%q<amee>, ["~> 4.1.5"])
|
105
106
|
s.add_dependency(%q<uuidtools>, ["= 2.1.2"])
|
106
|
-
s.add_dependency(%q<quantify>, ["~>
|
107
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
107
|
+
s.add_dependency(%q<quantify>, ["~> 3.1.2"])
|
108
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
|
108
109
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
109
110
|
s.add_dependency(%q<rspec>, ["= 2.6.0"])
|
110
111
|
s.add_dependency(%q<flexmock>, ["> 0.8.6"])
|
111
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
112
112
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
113
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
113
114
|
end
|
114
115
|
end
|
115
116
|
|
@@ -144,7 +144,7 @@ module AMEE
|
|
144
144
|
def choose_without_validation!(choice)
|
145
145
|
# Make sure choice keys are symbols since they are mapped to term labels
|
146
146
|
# Uses extension methods for Hash defined in /core_extensions
|
147
|
-
choice.recursive_symbolize_keys
|
147
|
+
choice = choice.recursive_symbolize_keys
|
148
148
|
|
149
149
|
new_profile_uid= choice.delete(:profile_uid)
|
150
150
|
self.profile_uid=new_profile_uid if new_profile_uid
|
data/lib/config/amee_units.rb
CHANGED
data/lib/core-extensions/hash.rb
CHANGED
@@ -20,11 +20,12 @@ class Hash
|
|
20
20
|
# sub-hashes - in to symbols
|
21
21
|
#
|
22
22
|
def recursive_symbolize_keys!
|
23
|
+
items = {}
|
23
24
|
self.each_pair do |k,v|
|
24
25
|
value = delete(k)
|
25
|
-
|
26
|
+
items[k] = value_or_symbolize_value(value)
|
26
27
|
end
|
27
|
-
|
28
|
+
items
|
28
29
|
end
|
29
30
|
|
30
31
|
private
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Copyright (C) 2008-2012 AMEE UK Ltd. - http://www.amee.com
|
2
|
+
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.
|
3
|
+
|
4
|
+
namespace :amee do
|
5
|
+
|
6
|
+
namespace :calculations do
|
7
|
+
|
8
|
+
# Performs application setup
|
9
|
+
desc 'Regenerates a lock file for a specified calculations config file. Run as: rake "amee:calculations:lock[<file>]"'
|
10
|
+
task :lock, [:file] => [:environment] do |t, args|
|
11
|
+
AMEE::DataAbstraction::CalculationSet.regenerate_lock_file(args[:file])
|
12
|
+
end
|
13
|
+
|
14
|
+
# Performs application setup
|
15
|
+
desc 'Regenerates all locks files. Run as: rake "amee:calculations:lock_all"'
|
16
|
+
task :lock_all => [:environment] do |t, args|
|
17
|
+
$sheet_types.each_key do |key|
|
18
|
+
AMEE::DataAbstraction::CalculationSet.regenerate_lock_file(key.to_s)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -319,8 +319,8 @@ describe CalculationSet do
|
|
319
319
|
mocker=AMEEMocker.new(self,:path=>'something')
|
320
320
|
mocker.item_value_definitions.usages(['bybob','byfrank']).
|
321
321
|
item_definition.data_category.
|
322
|
-
item_value_definition('first',['bybob'],[],'byfrank',[],nil,nil,true,false,nil,"TEXT").
|
323
|
-
item_value_definition('second',['bybob'],[],'byfrank',[],nil,nil,true,false,nil,"TEXT").
|
322
|
+
item_value_definition('first',['bybob'],[], ['byfrank'],[],nil,nil,true,false,nil,"TEXT").
|
323
|
+
item_value_definition('second',['bybob'],[],['byfrank'],[],nil,nil,true,false,nil,"TEXT").
|
324
324
|
item_value_definition('third',['byfrank'],[],['bybob'],[],nil,nil,true,false,nil,"TEXT")
|
325
325
|
cs=CalculationSet.new('my_set') {
|
326
326
|
calculations_all_usages('/something') { |usage|
|
@@ -149,8 +149,8 @@ describe PrototypeCalculation do
|
|
149
149
|
mocker=AMEEMocker.new(self,:path=>'something')
|
150
150
|
mocker.item_value_definitions.
|
151
151
|
item_definition.data_category.
|
152
|
-
item_value_definition('first',['bybob'],[],'byfrank',[],nil,nil,true,false,nil,"TEXT").
|
153
|
-
item_value_definition('second',['bybob'],[],'byfrank',[],nil,nil,true,false,nil,"TEXT").
|
152
|
+
item_value_definition('first',['bybob'],[],['byfrank'],[],nil,nil,true,false,nil,"TEXT").
|
153
|
+
item_value_definition('second',['bybob'],[],['byfrank'],[],nil,nil,true,false,nil,"TEXT").
|
154
154
|
item_value_definition('third',['byfrank'],[],['bybob'],[],nil,nil,true,false,nil,"TEXT")
|
155
155
|
pc=PrototypeCalculation.new {path '/something'; all_profiles ; fixed_usage 'bybob'}
|
156
156
|
pc.profiles.in_use.labels.should eql [:first,:second]
|
@@ -163,8 +163,8 @@ describe PrototypeCalculation do
|
|
163
163
|
mocker=AMEEMocker.new(self,:path=>'something')
|
164
164
|
mocker.item_value_definitions.
|
165
165
|
item_definition.data_category.
|
166
|
-
item_value_definition('first',['bybob'],[],'byfrank',[],:kg,:mi,true,false,nil,"TEXT").
|
167
|
-
item_value_definition('second',['bybob'],[],'byfrank',[],:km,nil,true,false,nil,"TEXT").
|
166
|
+
item_value_definition('first',['bybob'],[],['byfrank'],[],:kg,:mi,true,false,nil,"TEXT").
|
167
|
+
item_value_definition('second',['bybob'],[],['byfrank'],[],:km,nil,true,false,nil,"TEXT").
|
168
168
|
item_value_definition('third',['byfrank'],[],['bybob'],[],:lb,:h,true,false,nil,"TEXT")
|
169
169
|
pc=PrototypeCalculation.new {path '/something'; usage{ value 'bybob'}}
|
170
170
|
pc.profiles.labels.should eql [:first,:second,:third]
|
@@ -203,8 +203,8 @@ describe PrototypeCalculation do
|
|
203
203
|
item_value_definition('first',['bybob','byfrank'],[],[],[],nil,nil,false,true,nil,"TEXT").
|
204
204
|
item_value_definition('second',['bybob','byfrank'],[],[],[],nil,nil,false,true,nil,"TEXT").
|
205
205
|
item_value_definition('third',['bybob','byfrank'],[],[],[],nil,nil,false,true,nil,"TEXT").
|
206
|
-
item_value_definition('fourth',['bybob'],[],'byfrank',[],nil,nil,true,false,nil,"TEXT").
|
207
|
-
item_value_definition('fifth',['bybob'],[],'byfrank',[],:lb,nil,true,false,nil,"TEXT").
|
206
|
+
item_value_definition('fourth',['bybob'],[],['byfrank'],[],nil,nil,true,false,nil,"TEXT").
|
207
|
+
item_value_definition('fifth',['bybob'],[],['byfrank'],[],:lb,nil,true,false,nil,"TEXT").
|
208
208
|
item_value_definition('sixth',['byfrank'],[],['bybob'],[],nil,nil,true,false,nil,"TEXT").
|
209
209
|
return_value_definition('seventh').
|
210
210
|
return_value_definition('eighth').
|
@@ -105,8 +105,9 @@ describe Term do
|
|
105
105
|
end
|
106
106
|
|
107
107
|
it "should respond to unit methods" do
|
108
|
-
|
109
|
-
|
108
|
+
[ "unit", "per_unit", "default_unit", "default_per_unit", "alternative_units", "alternative_per_units" ].each do |meth|
|
109
|
+
Term.new.methods.should include meth.to_sym
|
110
|
+
end
|
110
111
|
end
|
111
112
|
|
112
113
|
it "has no default unit if none declared" do
|
@@ -27,17 +27,17 @@ describe Hash do
|
|
27
27
|
new_hash[:interests][0][:movie].should eql 'Birds'
|
28
28
|
end
|
29
29
|
|
30
|
-
it "should symbolize keys in place, returning self" do
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
end
|
30
|
+
# it "should symbolize keys in place, returning self" do
|
31
|
+
# @hash = @hash.recursive_symbolize_keys
|
32
|
+
# @hash.keys.size.should eql 5
|
33
|
+
# @hash.keys.each { |k| k.should be_a Symbol }
|
34
|
+
# @hash[:first_name].should eql 'Kenny'
|
35
|
+
# @hash[:date_of_birth].should be_a Hash
|
36
|
+
# @hash[:date_of_birth].keys.each { |k| k.should be_a Symbol }
|
37
|
+
# @hash[:date_of_birth][:month].should eql 'April'
|
38
|
+
# @hash[:interests].should be_a Array
|
39
|
+
# @hash[:interests][0].keys.each { |k| k.should be_a Symbol }
|
40
|
+
# @hash[:interests][0][:movie].should eql 'Birds'
|
41
|
+
# end
|
42
42
|
end
|
43
43
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: amee-data-abstraction
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 2
|
10
|
-
version: 2.2.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- James Hetherington
|
14
9
|
- Andrew Berkeley
|
15
10
|
- James Smith
|
@@ -17,164 +12,119 @@ authors:
|
|
17
12
|
autorequire:
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
dependencies:
|
24
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
date: 2012-05-01 00:00:00.000000000Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
25
18
|
name: amee
|
26
|
-
|
19
|
+
requirement: &24275060 !ruby/object:Gem::Requirement
|
27
20
|
none: false
|
28
|
-
requirements:
|
21
|
+
requirements:
|
29
22
|
- - ~>
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
hash: 49
|
32
|
-
segments:
|
33
|
-
- 4
|
34
|
-
- 1
|
35
|
-
- 5
|
23
|
+
- !ruby/object:Gem::Version
|
36
24
|
version: 4.1.5
|
37
|
-
prerelease: false
|
38
25
|
type: :runtime
|
39
|
-
|
40
|
-
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: *24275060
|
28
|
+
- !ruby/object:Gem::Dependency
|
41
29
|
name: uuidtools
|
42
|
-
|
30
|
+
requirement: &24274060 !ruby/object:Gem::Requirement
|
43
31
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
hash: 15
|
48
|
-
segments:
|
49
|
-
- 2
|
50
|
-
- 1
|
51
|
-
- 2
|
32
|
+
requirements:
|
33
|
+
- - =
|
34
|
+
- !ruby/object:Gem::Version
|
52
35
|
version: 2.1.2
|
53
|
-
prerelease: false
|
54
36
|
type: :runtime
|
55
|
-
|
56
|
-
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: *24274060
|
39
|
+
- !ruby/object:Gem::Dependency
|
57
40
|
name: quantify
|
58
|
-
|
41
|
+
requirement: &24273080 !ruby/object:Gem::Requirement
|
59
42
|
none: false
|
60
|
-
requirements:
|
43
|
+
requirements:
|
61
44
|
- - ~>
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
segments:
|
65
|
-
- 2
|
66
|
-
- 0
|
67
|
-
- 0
|
68
|
-
version: 2.0.0
|
69
|
-
prerelease: false
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.1.2
|
70
47
|
type: :runtime
|
71
|
-
|
72
|
-
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: *24273080
|
50
|
+
- !ruby/object:Gem::Dependency
|
73
51
|
name: bundler
|
74
|
-
|
52
|
+
requirement: &24272360 !ruby/object:Gem::Requirement
|
75
53
|
none: false
|
76
|
-
requirements:
|
54
|
+
requirements:
|
77
55
|
- - ~>
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
|
80
|
-
segments:
|
81
|
-
- 1
|
82
|
-
- 0
|
83
|
-
- 0
|
84
|
-
version: 1.0.0
|
85
|
-
prerelease: false
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.1.0
|
86
58
|
type: :development
|
87
|
-
|
88
|
-
|
59
|
+
prerelease: false
|
60
|
+
version_requirements: *24272360
|
61
|
+
- !ruby/object:Gem::Dependency
|
89
62
|
name: jeweler
|
90
|
-
|
63
|
+
requirement: &24271620 !ruby/object:Gem::Requirement
|
91
64
|
none: false
|
92
|
-
requirements:
|
65
|
+
requirements:
|
93
66
|
- - ~>
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
hash: 7
|
96
|
-
segments:
|
97
|
-
- 1
|
98
|
-
- 6
|
99
|
-
- 4
|
67
|
+
- !ruby/object:Gem::Version
|
100
68
|
version: 1.6.4
|
101
|
-
prerelease: false
|
102
69
|
type: :development
|
103
|
-
|
104
|
-
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: *24271620
|
72
|
+
- !ruby/object:Gem::Dependency
|
105
73
|
name: rspec
|
106
|
-
|
74
|
+
requirement: &24271060 !ruby/object:Gem::Requirement
|
107
75
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
hash: 23
|
112
|
-
segments:
|
113
|
-
- 2
|
114
|
-
- 6
|
115
|
-
- 0
|
76
|
+
requirements:
|
77
|
+
- - =
|
78
|
+
- !ruby/object:Gem::Version
|
116
79
|
version: 2.6.0
|
117
|
-
prerelease: false
|
118
80
|
type: :development
|
119
|
-
|
120
|
-
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *24271060
|
83
|
+
- !ruby/object:Gem::Dependency
|
121
84
|
name: flexmock
|
122
|
-
|
85
|
+
requirement: &24270320 !ruby/object:Gem::Requirement
|
123
86
|
none: false
|
124
|
-
requirements:
|
125
|
-
- -
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
hash: 51
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
- 8
|
131
|
-
- 6
|
87
|
+
requirements:
|
88
|
+
- - ! '>'
|
89
|
+
- !ruby/object:Gem::Version
|
132
90
|
version: 0.8.6
|
133
|
-
prerelease: false
|
134
91
|
type: :development
|
135
|
-
requirement: *id007
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: rcov
|
138
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
hash: 3
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
147
92
|
prerelease: false
|
148
|
-
|
149
|
-
|
150
|
-
- !ruby/object:Gem::Dependency
|
93
|
+
version_requirements: *24270320
|
94
|
+
- !ruby/object:Gem::Dependency
|
151
95
|
name: rdoc
|
152
|
-
|
96
|
+
requirement: &24248600 !ruby/object:Gem::Requirement
|
153
97
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
|
159
|
-
- 0
|
160
|
-
version: "0"
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
161
103
|
prerelease: false
|
104
|
+
version_requirements: *24248600
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: pry
|
107
|
+
requirement: &24247960 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
162
113
|
type: :development
|
163
|
-
|
164
|
-
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: *24247960
|
116
|
+
description: Part of the AMEEappkit this gem provides a data abstraction layer, decreasing
|
117
|
+
the amount and detail of development required
|
165
118
|
email: help@amee.com
|
166
119
|
executables: []
|
167
|
-
|
168
120
|
extensions: []
|
169
|
-
|
170
|
-
extra_rdoc_files:
|
121
|
+
extra_rdoc_files:
|
171
122
|
- LICENSE.txt
|
172
123
|
- README.txt
|
173
|
-
files:
|
124
|
+
files:
|
174
125
|
- .rvmrc
|
175
126
|
- CHANGELOG.txt
|
176
127
|
- Gemfile
|
177
|
-
- Gemfile.lock
|
178
128
|
- LICENSE.txt
|
179
129
|
- README.txt
|
180
130
|
- Rakefile
|
@@ -193,6 +143,7 @@ files:
|
|
193
143
|
- lib/amee-data-abstraction/output.rb
|
194
144
|
- lib/amee-data-abstraction/profile.rb
|
195
145
|
- lib/amee-data-abstraction/prototype_calculation.rb
|
146
|
+
- lib/amee-data-abstraction/railtie.rb
|
196
147
|
- lib/amee-data-abstraction/term.rb
|
197
148
|
- lib/amee-data-abstraction/terms_list.rb
|
198
149
|
- lib/amee-data-abstraction/usage.rb
|
@@ -201,6 +152,7 @@ files:
|
|
201
152
|
- lib/core-extensions/hash.rb
|
202
153
|
- lib/core-extensions/ordered_hash.rb
|
203
154
|
- lib/core-extensions/proc.rb
|
155
|
+
- lib/tasks/amee_data_abstraction.rake
|
204
156
|
- spec/amee-data-abstraction/calculation_set_spec.rb
|
205
157
|
- spec/amee-data-abstraction/calculation_spec.rb
|
206
158
|
- spec/amee-data-abstraction/drill_spec.rb
|
@@ -223,39 +175,32 @@ files:
|
|
223
175
|
- spec/fixtures/config/electricity.rb
|
224
176
|
- spec/spec.opts
|
225
177
|
- spec/spec_helper.rb
|
226
|
-
has_rdoc: true
|
227
178
|
homepage: http://github.com/AMEE/amee-data-abstraction
|
228
|
-
licenses:
|
179
|
+
licenses:
|
229
180
|
- BSD 3-Clause
|
230
181
|
post_install_message:
|
231
182
|
rdoc_options: []
|
232
|
-
|
233
|
-
require_paths:
|
183
|
+
require_paths:
|
234
184
|
- lib
|
235
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
236
186
|
none: false
|
237
|
-
requirements:
|
238
|
-
- -
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
|
241
|
-
segments:
|
187
|
+
requirements:
|
188
|
+
- - ! '>='
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
segments:
|
242
192
|
- 0
|
243
|
-
|
244
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
hash: 147379724933155284
|
194
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
195
|
none: false
|
246
|
-
requirements:
|
247
|
-
- -
|
248
|
-
- !ruby/object:Gem::Version
|
249
|
-
|
250
|
-
segments:
|
251
|
-
- 0
|
252
|
-
version: "0"
|
196
|
+
requirements:
|
197
|
+
- - ! '>='
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
253
200
|
requirements: []
|
254
|
-
|
255
201
|
rubyforge_project:
|
256
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.8.17
|
257
203
|
signing_key:
|
258
204
|
specification_version: 3
|
259
205
|
summary: Calculation and form building tool hiding details of AMEEconnect
|
260
206
|
test_files: []
|
261
|
-
|
data/Gemfile.lock
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activesupport (3.0.10)
|
5
|
-
amee (4.1.5)
|
6
|
-
activesupport (~> 3.0.10)
|
7
|
-
json
|
8
|
-
log4r
|
9
|
-
nokogiri (~> 1.4.4)
|
10
|
-
builder (3.0.0)
|
11
|
-
diff-lcs (1.1.3)
|
12
|
-
flexmock (0.9.0)
|
13
|
-
git (1.2.5)
|
14
|
-
i18n (0.6.0)
|
15
|
-
jeweler (1.6.4)
|
16
|
-
bundler (~> 1.0)
|
17
|
-
git (>= 1.2.5)
|
18
|
-
rake
|
19
|
-
json (1.6.1)
|
20
|
-
log4r (1.1.9)
|
21
|
-
nokogiri (1.4.7)
|
22
|
-
quantify (2.0.0)
|
23
|
-
activesupport (~> 3.0.10)
|
24
|
-
i18n
|
25
|
-
rake (0.9.2)
|
26
|
-
rcov (0.9.10)
|
27
|
-
rdoc (3.9.4)
|
28
|
-
rspec (2.6.0)
|
29
|
-
rspec-core (~> 2.6.0)
|
30
|
-
rspec-expectations (~> 2.6.0)
|
31
|
-
rspec-mocks (~> 2.6.0)
|
32
|
-
rspec-core (2.6.4)
|
33
|
-
rspec-expectations (2.6.0)
|
34
|
-
diff-lcs (~> 1.1.2)
|
35
|
-
rspec-mocks (2.6.0)
|
36
|
-
uuidtools (2.1.2)
|
37
|
-
|
38
|
-
PLATFORMS
|
39
|
-
ruby
|
40
|
-
|
41
|
-
DEPENDENCIES
|
42
|
-
amee (~> 4.1.5)
|
43
|
-
builder
|
44
|
-
bundler (~> 1.0.0)
|
45
|
-
flexmock (> 0.8.6)
|
46
|
-
jeweler (~> 1.6.4)
|
47
|
-
quantify (~> 2.0.0)
|
48
|
-
rcov
|
49
|
-
rdoc
|
50
|
-
rspec (= 2.6.0)
|
51
|
-
uuidtools (= 2.1.2)
|