amee_rails_layer 0.3.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -17,5 +17,7 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
+ nbproject
21
+ *.gem
20
22
 
21
23
  ## PROJECT::SPECIFIC
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{amee_rails_layer}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["George Palmer"]
12
- s.date = %q{2010-03-30}
13
- s.description = %q{We need a longer description of your gem}
14
- s.email = %q{george.palmer@gmail.com}
11
+ s.authors = ["George Palmer", "James Smith"]
12
+ s.date = %q{2010-04-14}
13
+ s.description = %q{An abstraction layer for building applications around the AMEE API}
14
+ s.email = %q{help@amee.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  "test/helper.rb",
33
33
  "test/test_amee-abstraction-layer-gem.rb"
34
34
  ]
35
- s.homepage = %q{http://github.com/georgepalmer/amee-abstraction-layer-gem}
35
+ s.homepage = %q{http://github.com/AMEE/amee_rails_layer}
36
36
  s.rdoc_options = ["--charset=UTF-8"]
37
37
  s.require_paths = ["lib"]
38
38
  s.rubygems_version = %q{1.3.6}
@@ -36,15 +36,17 @@ class AmeeCategory
36
36
  CATEGORY_TYPES = {
37
37
  :distance => [:distance],
38
38
  :journey_distance => [:distancePerJourney],
39
- :weight => [:mass],
39
+ :weight => [:massPerTime],
40
40
  :energy => [:energyConsumption],
41
- :volumable_energy => [:volumePerTime, :energyConsumption]
41
+ :volumable_energy => [:volumePerTime, :energyConsumption],
42
+ :volume => [:volumePerTime],
43
+ :weight_or_volume => [:massPerTime, :volumePerTime]
42
44
  }
43
45
 
44
46
  CATEGORY_TYPES_TO_UNITS = {
45
47
  :distance => [Unit.km, Unit.miles],
46
48
  :distancePerJourney => [Unit.km, Unit.miles],
47
- :mass => [Unit.kg, Unit.tonnes],
49
+ :massPerTime => [Unit.kg, Unit.tonnes],
48
50
  :energyConsumption => [Unit.kwh],
49
51
  :volumePerTime => [Unit.litres],
50
52
  }
metadata CHANGED
@@ -5,16 +5,17 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - George Palmer
13
+ - James Smith
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-30 00:00:00 +01:00
18
+ date: 2010-04-14 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -29,8 +30,8 @@ dependencies:
29
30
  version: "0"
30
31
  type: :development
31
32
  version_requirements: *id001
32
- description: We need a longer description of your gem
33
- email: george.palmer@gmail.com
33
+ description: An abstraction layer for building applications around the AMEE API
34
+ email: help@amee.com
34
35
  executables: []
35
36
 
36
37
  extensions: []
@@ -54,7 +55,7 @@ files:
54
55
  - test/helper.rb
55
56
  - test/test_amee-abstraction-layer-gem.rb
56
57
  has_rdoc: true
57
- homepage: http://github.com/georgepalmer/amee-abstraction-layer-gem
58
+ homepage: http://github.com/AMEE/amee_rails_layer
58
59
  licenses: []
59
60
 
60
61
  post_install_message: