automobile_trip 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/automobile_trip/carbon_model.rb +11 -11
- metadata +3 -3
@@ -31,7 +31,7 @@ module BrighterPlanet
|
|
31
31
|
end
|
32
32
|
|
33
33
|
committee :fuel_consumed do
|
34
|
-
quorum 'from fuel cost and fuel price'
|
34
|
+
quorum 'from fuel cost and fuel price' do
|
35
35
|
fuel_cost / fuel_price
|
36
36
|
end
|
37
37
|
|
@@ -45,42 +45,42 @@ module BrighterPlanet
|
|
45
45
|
#
|
46
46
|
# end
|
47
47
|
|
48
|
-
quorum 'from fuel type'
|
48
|
+
quorum 'from fuel type' do
|
49
49
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
committee :distance do
|
54
|
-
quorum 'from duration and speed'
|
54
|
+
quorum 'from duration and speed' do
|
55
55
|
duration * speed
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
59
|
commitee :average_fuel_efficiency do
|
60
|
-
quorum 'from variant' # variant includes make, year, and model
|
60
|
+
quorum 'from variant' do # variant includes make, year, and model
|
61
61
|
end
|
62
62
|
|
63
|
-
quorum 'from model' # model includes make and year
|
63
|
+
quorum 'from model' do # model includes make and year
|
64
64
|
end
|
65
65
|
|
66
|
-
quorum 'from year' # year includes make
|
66
|
+
quorum 'from year' do # year includes make
|
67
67
|
end
|
68
68
|
|
69
|
-
quorum 'from make'
|
69
|
+
quorum 'from make' do
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
73
|
committee :fuel_type do
|
74
|
-
quorum 'from variant'
|
74
|
+
quorum 'from variant' do
|
75
75
|
end
|
76
76
|
|
77
|
-
quorum 'from model'
|
77
|
+
quorum 'from model' do
|
78
78
|
end
|
79
79
|
|
80
|
-
quorum 'from make'
|
80
|
+
quorum 'from make' do
|
81
81
|
end
|
82
82
|
|
83
|
-
quorum 'default'
|
83
|
+
quorum 'default' do
|
84
84
|
AutomobileTrip.fallback.fuel_type
|
85
85
|
end
|
86
86
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automobile_trip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Rossmeissl
|