amee 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.8.7@amee-ruby
data/Appraisals ADDED
@@ -0,0 +1,14 @@
1
+ appraise "rails2.3" do
2
+ gem "activesupport", "~> 2.3.0"
3
+ gem "activerecord", "~> 2.3.0"
4
+ end
5
+
6
+ appraise "rails3.0" do
7
+ gem "activesupport", "~> 3.0.0"
8
+ gem "activerecord", "~> 3.0.0"
9
+ end
10
+
11
+ appraise "rails3.1" do
12
+ gem "activesupport", "~> 3.1.0"
13
+ gem "activerecord", "~> 3.1.0"
14
+ end
data/Gemfile CHANGED
@@ -1,17 +1,18 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "activesupport", "~> 3.0"
3
+ gem "appraisal"
4
+
5
+ gem "activesupport", ">= 2.3.11"
4
6
  gem "json"
5
7
  gem "log4r"
6
8
  gem "nokogiri", "~> 1.4.4"
7
9
 
8
- group :development do
9
- gem "bundler", "~> 1.0.0"
10
- gem "jeweler", "~> 1.6.4"
11
- gem 'rspec', '2.6.0'
12
- gem 'flexmock', '> 0.8.6'
13
- gem 'memcache-client'
14
- gem 'rcov'
15
- gem 'rdoc'
16
- gem 'activerecord', "~> 3.0" # To test Rails integration
17
- end
10
+ # Appraisal doesn't like group blocks, so we add individually for now.
11
+ gem "bundler", "~> 1.0.0", :group => :development
12
+ gem "jeweler", "~> 1.6.4", :group => :development
13
+ gem 'rspec', '2.6.0', :group => :development
14
+ gem 'flexmock', '> 0.8.6', :group => :development
15
+ gem 'memcache-client', :group => :development
16
+ gem 'rcov', :group => :development
17
+ gem 'rdoc', :group => :development
18
+ gem 'activerecord', ">= 2.3.11", :group => :development
data/Gemfile.lock CHANGED
@@ -12,6 +12,9 @@ GEM
12
12
  tzinfo (~> 0.3.29)
13
13
  activesupport (3.1.1)
14
14
  multi_json (~> 1.0)
15
+ appraisal (0.4.0)
16
+ bundler
17
+ rake
15
18
  arel (2.2.1)
16
19
  builder (3.0.0)
17
20
  diff-lcs (1.1.3)
@@ -45,8 +48,9 @@ PLATFORMS
45
48
  ruby
46
49
 
47
50
  DEPENDENCIES
48
- activerecord (~> 3.0)
49
- activesupport (~> 3.0)
51
+ activerecord (>= 2.3.11)
52
+ activesupport (>= 2.3.11)
53
+ appraisal
50
54
  bundler (~> 1.0.0)
51
55
  flexmock (> 0.8.6)
52
56
  jeweler (~> 1.6.4)
data/Rakefile CHANGED
@@ -1,7 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
- require 'bundler'
4
+ require 'bundler/setup'
5
+ require 'appraisal'
6
+
5
7
  begin
6
8
  Bundler.setup(:default, :development)
7
9
  rescue Bundler::BundlerError => e
@@ -72,7 +74,7 @@ require 'rcov/rcovtask'
72
74
  desc "Generate code coverage"
73
75
  RSpec::Core::RakeTask.new(:coverage) do |t|
74
76
  t.rcov = true
75
- t.rcov_opts = ['--exclude', 'spec']
77
+ t.rcov_opts = ['--exclude', 'spec,/*ruby*,/*gems*']
76
78
  end
77
79
 
78
80
  require 'rdoc/task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0
1
+ 4.3.0
data/amee.gemspec CHANGED
@@ -4,20 +4,21 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{amee}
8
- s.version = "4.2.0"
7
+ s.name = "amee"
8
+ s.version = "4.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 Smith", "James Hetherington", "Andrew Hill", "Andrew Berkeley"]
12
- s.date = %q{2011-11-17}
13
- s.default_executable = %q{ameesh}
14
- s.email = %q{james@floppy.org.uk}
12
+ s.date = "2011-12-23"
13
+ s.email = "james@floppy.org.uk"
15
14
  s.executables = ["ameesh"]
16
15
  s.extra_rdoc_files = [
17
16
  "LICENSE.txt",
18
17
  "README.txt"
19
18
  ]
20
19
  s.files = [
20
+ ".rvmrc",
21
+ "Appraisals",
21
22
  "CHANGELOG.txt",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
@@ -25,7 +26,6 @@ Gem::Specification.new do |s|
25
26
  "README.txt",
26
27
  "Rakefile",
27
28
  "VERSION",
28
- "amee-ruby.gemspec",
29
29
  "amee.example.yml",
30
30
  "amee.gemspec",
31
31
  "bin/ameesh",
@@ -36,6 +36,13 @@ Gem::Specification.new do |s|
36
36
  "examples/view_data_category.rb",
37
37
  "examples/view_data_item.rb",
38
38
  "examples/view_profile_item.rb",
39
+ "gemfiles/rails2.3.gemfile",
40
+ "gemfiles/rails2.3.gemfile.lock",
41
+ "gemfiles/rails3.0.gemfile",
42
+ "gemfiles/rails3.0.gemfile.lock",
43
+ "gemfiles/rails3.1.gemfile",
44
+ "gemfiles/rails3.1.gemfile.lock",
45
+ "init.rb",
39
46
  "lib/amee.rb",
40
47
  "lib/amee/collection.rb",
41
48
  "lib/amee/config.rb",
@@ -70,6 +77,7 @@ Gem::Specification.new do |s|
70
77
  "lib/amee/v3/item_value_definition_list.rb",
71
78
  "lib/amee/v3/meta_helper.rb",
72
79
  "lib/amee/v3/return_value_definition.rb",
80
+ "rails/init.rb",
73
81
  "spec/amee_config_spec.rb",
74
82
  "spec/amee_spec.rb",
75
83
  "spec/cache_spec.rb",
@@ -83,6 +91,7 @@ Gem::Specification.new do |s|
83
91
  "spec/fixtures/AD63A83B4D41.json",
84
92
  "spec/fixtures/AD63A83B4D41.xml",
85
93
  "spec/fixtures/BD88D30D1214.xml",
94
+ "spec/fixtures/config/amee.yml",
86
95
  "spec/fixtures/create_item.json",
87
96
  "spec/fixtures/create_item.xml",
88
97
  "spec/fixtures/data.json",
@@ -95,10 +104,12 @@ Gem::Specification.new do |s|
95
104
  "spec/fixtures/empty_return_value_definition_list.xml",
96
105
  "spec/fixtures/itemdef.xml",
97
106
  "spec/fixtures/itemdef_441BF4BEA15B.xml",
107
+ "spec/fixtures/itemdef_B4DA9E4AD5F2.xml",
98
108
  "spec/fixtures/itemdef_no_usages.xml",
99
109
  "spec/fixtures/itemdef_one_usage.xml",
100
110
  "spec/fixtures/ivdlist.xml",
101
111
  "spec/fixtures/ivdlist_BD88D30D1214.xml",
112
+ "spec/fixtures/ivdlist_one_usage.xml",
102
113
  "spec/fixtures/parse_test.xml",
103
114
  "spec/fixtures/rails_config.yml",
104
115
  "spec/fixtures/return_value_definition.xml",
@@ -124,17 +135,18 @@ Gem::Specification.new do |s|
124
135
  "spec/v3/item_value_definition_spec.rb",
125
136
  "spec/v3/return_value_definition_spec.rb"
126
137
  ]
127
- s.homepage = %q{http://github.com/AMEE/amee-ruby}
138
+ s.homepage = "http://github.com/AMEE/amee-ruby"
128
139
  s.licenses = ["BSD 3-Clause"]
129
140
  s.require_paths = ["lib"]
130
- s.rubygems_version = %q{1.6.2}
131
- s.summary = %q{Ruby interface to the AMEE carbon calculator}
141
+ s.rubygems_version = "1.8.10"
142
+ s.summary = "Ruby interface to the AMEE carbon calculator"
132
143
 
133
144
  if s.respond_to? :specification_version then
134
145
  s.specification_version = 3
135
146
 
136
147
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
137
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
148
+ s.add_runtime_dependency(%q<appraisal>, [">= 0"])
149
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.3.11"])
138
150
  s.add_runtime_dependency(%q<json>, [">= 0"])
139
151
  s.add_runtime_dependency(%q<log4r>, [">= 0"])
140
152
  s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.4"])
@@ -145,9 +157,10 @@ Gem::Specification.new do |s|
145
157
  s.add_development_dependency(%q<memcache-client>, [">= 0"])
146
158
  s.add_development_dependency(%q<rcov>, [">= 0"])
147
159
  s.add_development_dependency(%q<rdoc>, [">= 0"])
148
- s.add_development_dependency(%q<activerecord>, ["~> 3.0"])
160
+ s.add_development_dependency(%q<activerecord>, [">= 2.3.11"])
149
161
  else
150
- s.add_dependency(%q<activesupport>, ["~> 3.0"])
162
+ s.add_dependency(%q<appraisal>, [">= 0"])
163
+ s.add_dependency(%q<activesupport>, [">= 2.3.11"])
151
164
  s.add_dependency(%q<json>, [">= 0"])
152
165
  s.add_dependency(%q<log4r>, [">= 0"])
153
166
  s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
@@ -158,10 +171,11 @@ Gem::Specification.new do |s|
158
171
  s.add_dependency(%q<memcache-client>, [">= 0"])
159
172
  s.add_dependency(%q<rcov>, [">= 0"])
160
173
  s.add_dependency(%q<rdoc>, [">= 0"])
161
- s.add_dependency(%q<activerecord>, ["~> 3.0"])
174
+ s.add_dependency(%q<activerecord>, [">= 2.3.11"])
162
175
  end
163
176
  else
164
- s.add_dependency(%q<activesupport>, ["~> 3.0"])
177
+ s.add_dependency(%q<appraisal>, [">= 0"])
178
+ s.add_dependency(%q<activesupport>, [">= 2.3.11"])
165
179
  s.add_dependency(%q<json>, [">= 0"])
166
180
  s.add_dependency(%q<log4r>, [">= 0"])
167
181
  s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
@@ -172,7 +186,7 @@ Gem::Specification.new do |s|
172
186
  s.add_dependency(%q<memcache-client>, [">= 0"])
173
187
  s.add_dependency(%q<rcov>, [">= 0"])
174
188
  s.add_dependency(%q<rdoc>, [">= 0"])
175
- s.add_dependency(%q<activerecord>, ["~> 3.0"])
189
+ s.add_dependency(%q<activerecord>, [">= 2.3.11"])
176
190
  end
177
191
  end
178
192
 
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "json"
7
+ gem "log4r"
8
+ gem "nokogiri", "~> 1.4.4"
9
+ gem "bundler", "~> 1.0.0", :group=>:development
10
+ gem "jeweler", "~> 1.6.4", :group=>:development
11
+ gem "rspec", "2.6.0", :group=>:development
12
+ gem "flexmock", "> 0.8.6", :group=>:development
13
+ gem "memcache-client", :group=>:development
14
+ gem "rcov", :group=>:development
15
+ gem "rdoc", :group=>:development
16
+ gem "activesupport", "~> 2.3.0"
17
+ gem "activerecord", "~> 2.3.0"
18
+
@@ -0,0 +1,50 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activerecord (2.3.14)
5
+ activesupport (= 2.3.14)
6
+ activesupport (2.3.14)
7
+ appraisal (0.4.0)
8
+ bundler
9
+ rake
10
+ diff-lcs (1.1.3)
11
+ flexmock (0.9.0)
12
+ git (1.2.5)
13
+ jeweler (1.6.4)
14
+ bundler (~> 1.0)
15
+ git (>= 1.2.5)
16
+ rake
17
+ json (1.6.1)
18
+ log4r (1.1.9)
19
+ memcache-client (1.8.5)
20
+ nokogiri (1.4.7)
21
+ rake (0.9.2.2)
22
+ rcov (0.9.11)
23
+ rdoc (3.11)
24
+ json (~> 1.4)
25
+ rspec (2.6.0)
26
+ rspec-core (~> 2.6.0)
27
+ rspec-expectations (~> 2.6.0)
28
+ rspec-mocks (~> 2.6.0)
29
+ rspec-core (2.6.4)
30
+ rspec-expectations (2.6.0)
31
+ diff-lcs (~> 1.1.2)
32
+ rspec-mocks (2.6.0)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ activerecord (~> 2.3.0)
39
+ activesupport (~> 2.3.0)
40
+ appraisal
41
+ bundler (~> 1.0.0)
42
+ flexmock (> 0.8.6)
43
+ jeweler (~> 1.6.4)
44
+ json
45
+ log4r
46
+ memcache-client
47
+ nokogiri (~> 1.4.4)
48
+ rcov
49
+ rdoc
50
+ rspec (= 2.6.0)
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "json"
7
+ gem "log4r"
8
+ gem "nokogiri", "~> 1.4.4"
9
+ gem "bundler", "~> 1.0.0", :group=>:development
10
+ gem "jeweler", "~> 1.6.4", :group=>:development
11
+ gem "rspec", "2.6.0", :group=>:development
12
+ gem "flexmock", "> 0.8.6", :group=>:development
13
+ gem "memcache-client", :group=>:development
14
+ gem "rcov", :group=>:development
15
+ gem "rdoc", :group=>:development
16
+ gem "activesupport", "~> 3.0.0"
17
+ gem "activerecord", "~> 3.0.0"
18
+
@@ -0,0 +1,61 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activemodel (3.0.10)
5
+ activesupport (= 3.0.10)
6
+ builder (~> 2.1.2)
7
+ i18n (~> 0.5.0)
8
+ activerecord (3.0.10)
9
+ activemodel (= 3.0.10)
10
+ activesupport (= 3.0.10)
11
+ arel (~> 2.0.10)
12
+ tzinfo (~> 0.3.23)
13
+ activesupport (3.0.10)
14
+ appraisal (0.4.0)
15
+ bundler
16
+ rake
17
+ arel (2.0.10)
18
+ builder (2.1.2)
19
+ diff-lcs (1.1.3)
20
+ flexmock (0.9.0)
21
+ git (1.2.5)
22
+ i18n (0.5.0)
23
+ jeweler (1.6.4)
24
+ bundler (~> 1.0)
25
+ git (>= 1.2.5)
26
+ rake
27
+ json (1.6.1)
28
+ log4r (1.1.9)
29
+ memcache-client (1.8.5)
30
+ nokogiri (1.4.7)
31
+ rake (0.9.2.2)
32
+ rcov (0.9.11)
33
+ rdoc (3.11)
34
+ json (~> 1.4)
35
+ rspec (2.6.0)
36
+ rspec-core (~> 2.6.0)
37
+ rspec-expectations (~> 2.6.0)
38
+ rspec-mocks (~> 2.6.0)
39
+ rspec-core (2.6.4)
40
+ rspec-expectations (2.6.0)
41
+ diff-lcs (~> 1.1.2)
42
+ rspec-mocks (2.6.0)
43
+ tzinfo (0.3.31)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ activerecord (~> 3.0.0)
50
+ activesupport (~> 3.0.0)
51
+ appraisal
52
+ bundler (~> 1.0.0)
53
+ flexmock (> 0.8.6)
54
+ jeweler (~> 1.6.4)
55
+ json
56
+ log4r
57
+ memcache-client
58
+ nokogiri (~> 1.4.4)
59
+ rcov
60
+ rdoc
61
+ rspec (= 2.6.0)
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "json"
7
+ gem "log4r"
8
+ gem "nokogiri", "~> 1.4.4"
9
+ gem "bundler", "~> 1.0.0", :group=>:development
10
+ gem "jeweler", "~> 1.6.4", :group=>:development
11
+ gem "rspec", "2.6.0", :group=>:development
12
+ gem "flexmock", "> 0.8.6", :group=>:development
13
+ gem "memcache-client", :group=>:development
14
+ gem "rcov", :group=>:development
15
+ gem "rdoc", :group=>:development
16
+ gem "activesupport", "~> 3.1.0"
17
+ gem "activerecord", "~> 3.1.0"
18
+
@@ -0,0 +1,63 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activemodel (3.1.1)
5
+ activesupport (= 3.1.1)
6
+ builder (~> 3.0.0)
7
+ i18n (~> 0.6)
8
+ activerecord (3.1.1)
9
+ activemodel (= 3.1.1)
10
+ activesupport (= 3.1.1)
11
+ arel (~> 2.2.1)
12
+ tzinfo (~> 0.3.29)
13
+ activesupport (3.1.1)
14
+ multi_json (~> 1.0)
15
+ appraisal (0.4.0)
16
+ bundler
17
+ rake
18
+ arel (2.2.1)
19
+ builder (3.0.0)
20
+ diff-lcs (1.1.3)
21
+ flexmock (0.9.0)
22
+ git (1.2.5)
23
+ i18n (0.6.0)
24
+ jeweler (1.6.4)
25
+ bundler (~> 1.0)
26
+ git (>= 1.2.5)
27
+ rake
28
+ json (1.6.1)
29
+ log4r (1.1.9)
30
+ memcache-client (1.8.5)
31
+ multi_json (1.0.3)
32
+ nokogiri (1.4.7)
33
+ rake (0.9.2.2)
34
+ rcov (0.9.11)
35
+ rdoc (3.11)
36
+ json (~> 1.4)
37
+ rspec (2.6.0)
38
+ rspec-core (~> 2.6.0)
39
+ rspec-expectations (~> 2.6.0)
40
+ rspec-mocks (~> 2.6.0)
41
+ rspec-core (2.6.4)
42
+ rspec-expectations (2.6.0)
43
+ diff-lcs (~> 1.1.2)
44
+ rspec-mocks (2.6.0)
45
+ tzinfo (0.3.31)
46
+
47
+ PLATFORMS
48
+ ruby
49
+
50
+ DEPENDENCIES
51
+ activerecord (~> 3.1.0)
52
+ activesupport (~> 3.1.0)
53
+ appraisal
54
+ bundler (~> 1.0.0)
55
+ flexmock (> 0.8.6)
56
+ jeweler (~> 1.6.4)
57
+ json
58
+ log4r
59
+ memcache-client
60
+ nokogiri (~> 1.4.4)
61
+ rcov
62
+ rdoc
63
+ rspec (= 2.6.0)