amazon-pricing 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -1
- data/Gemfile.lock +1 -22
- data/lib/amazon-pricing/instance-type.rb +8 -1
- data/lib/amazon-pricing/version.rb +1 -1
- data/spec/spec_helper.rb +1 -4
- data/test/helper.rb +0 -3
- metadata +30 -19
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,24 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
amazon-pricing (0.1.
|
4
|
+
amazon-pricing (0.1.18)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
coveralls (0.7.0)
|
10
|
-
multi_json (~> 1.3)
|
11
|
-
rest-client
|
12
|
-
simplecov (>= 0.7)
|
13
|
-
term-ansicolor
|
14
|
-
thor
|
15
9
|
diff-lcs (1.1.3)
|
16
|
-
docile (1.1.0)
|
17
|
-
mime-types (2.0)
|
18
|
-
multi_json (1.8.2)
|
19
10
|
rake (10.1.0)
|
20
|
-
rest-client (1.6.7)
|
21
|
-
mime-types (>= 1.16)
|
22
11
|
rspec (2.11.0)
|
23
12
|
rspec-core (~> 2.11.0)
|
24
13
|
rspec-expectations (~> 2.11.0)
|
@@ -27,23 +16,13 @@ GEM
|
|
27
16
|
rspec-expectations (2.11.3)
|
28
17
|
diff-lcs (~> 1.1.3)
|
29
18
|
rspec-mocks (2.11.3)
|
30
|
-
simplecov (0.8.2)
|
31
|
-
docile (~> 1.1.0)
|
32
|
-
multi_json
|
33
|
-
simplecov-html (~> 0.8.0)
|
34
|
-
simplecov-html (0.8.0)
|
35
|
-
term-ansicolor (1.2.2)
|
36
|
-
tins (~> 0.8)
|
37
19
|
test-unit (2.5.5)
|
38
|
-
thor (0.18.1)
|
39
|
-
tins (0.13.1)
|
40
20
|
|
41
21
|
PLATFORMS
|
42
22
|
ruby
|
43
23
|
|
44
24
|
DEPENDENCIES
|
45
25
|
amazon-pricing!
|
46
|
-
coveralls
|
47
26
|
rake
|
48
27
|
rspec (~> 2.11.0)
|
49
28
|
test-unit
|
@@ -127,6 +127,7 @@ module AwsPricing
|
|
127
127
|
'db.m2.xlarge' => 17100, 'db.m2.2xlarge' => 34000, 'db.m2.4xlarge' => 68000, 'db.cr1.8xlarge' => 244000,
|
128
128
|
'db.t1.micro' => 613,
|
129
129
|
'c3.large' => 3750, 'c3.xlarge' => 7000, 'c3.2xlarge' => 15000, 'c3.4xlarge' => 30000, 'c3.8xlarge' => 60000,
|
130
|
+
'i2.large' => 15000, 'i2.xlarge' => 30500, 'i2.2xlarge' => 61000, 'i2.4xlarge' => 122000, 'i2.8xlarge' => 244000,
|
130
131
|
}
|
131
132
|
@@Disk_Lookup = {
|
132
133
|
'm1.small' => 160, 'm1.medium' => 410, 'm1.large' =>850, 'm1.xlarge' => 1690,
|
@@ -145,6 +146,7 @@ module AwsPricing
|
|
145
146
|
'db.m2.xlarge' => 420, 'db.m2.2xlarge' => 850, 'db.m2.4xlarge' => 1690, 'db.cr1.8xlarge' => 1690,
|
146
147
|
'db.t1.micro' => 160,
|
147
148
|
'c3.large' => 32, 'c3.xlarge' => 80, 'c3.2xlarge' => 160, 'c3.4xlarge' => 320, 'c3.8xlarge' => 640,
|
149
|
+
'i2.large' => 360, 'i2.xlarge' => 720, 'i2.2xlarge' => 1440, 'i2.4xlarge' => 2880, 'i2.8xlarge' => 5760,
|
148
150
|
}
|
149
151
|
@@Platform_Lookup = {
|
150
152
|
'm1.small' => 32, 'm1.medium' => 32, 'm1.large' => 64, 'm1.xlarge' => 64,
|
@@ -163,10 +165,11 @@ module AwsPricing
|
|
163
165
|
'db.m2.xlarge' => 64, 'db.m2.2xlarge' => 64, 'db.m2.4xlarge' => 64, 'db.cr1.8xlarge' => 64,
|
164
166
|
'db.t1.micro' => 64,
|
165
167
|
'c3.large' => 64, 'c3.xlarge' => 64, 'c3.2xlarge' => 64, 'c3.4xlarge' => 64, 'c3.8xlarge' => 64,
|
168
|
+
'i2.large' => 64, 'i2.xlarge' => 64, 'i2.2xlarge' => 64, 'i2.4xlarge' => 64, 'i2.8xlarge' => 64,
|
166
169
|
}
|
167
170
|
@@Compute_Units_Lookup = {
|
168
171
|
'm1.small' => 1, 'm1.medium' => 2, 'm1.large' => 4, 'm1.xlarge' => 8,
|
169
|
-
'm2.xlarge' => 6, 'm2.2xlarge' => 13, 'm2.4xlarge' => 26,
|
172
|
+
'm2.xlarge' => 6.5, 'm2.2xlarge' => 13, 'm2.4xlarge' => 26,
|
170
173
|
'm3.xlarge' => 13, 'm3.2xlarge' => 26,
|
171
174
|
'c1.medium' => 5, 'c1.xlarge' => 20,
|
172
175
|
'hi1.4xlarge' => 35,
|
@@ -181,6 +184,8 @@ module AwsPricing
|
|
181
184
|
'db.m2.xlarge' => 6.5, 'db.m2.2xlarge' => 13, 'db.m2.4xlarge' => 26, 'db.cr1.8xlarge' => 88,
|
182
185
|
'db.t1.micro' => 1,
|
183
186
|
'c3.large' => 7, 'c3.xlarge' => 14, 'c3.2xlarge' => 28, 'c3.4xlarge' => 55, 'c3.8xlarge' => 108,
|
187
|
+
# Since I2 is not released, the cpmpute units are not yet published, so this is estimate
|
188
|
+
'i2.large' => 6.5, 'i2.xlarge' => 13, 'i2.2xlarge' => 26, 'i2.4xlarge' => 52, 'i2.8xlarge' => 104,
|
184
189
|
}
|
185
190
|
@@Virtual_Cores_Lookup = {
|
186
191
|
'm1.small' => 1, 'm1.medium' => 1, 'm1.large' => 2, 'm1.xlarge' => 4,
|
@@ -199,6 +204,7 @@ module AwsPricing
|
|
199
204
|
'db.m2.xlarge' => 2, 'db.m2.2xlarge' => 4, 'db.m2.4xlarge' => 8, 'db.cr1.8xlarge' => 16,
|
200
205
|
'db.t1.micro' => 0,
|
201
206
|
'c3.large' => 2, 'c3.xlarge' => 4, 'c3.2xlarge' => 8, 'c3.4xlarge' => 16, 'c3.8xlarge' => 32,
|
207
|
+
'i2.large' => 2, 'i2.xlarge' => 4, 'i2.2xlarge' => 8, 'i2.4xlarge' => 16, 'i2.8xlarge' => 32,
|
202
208
|
}
|
203
209
|
@@Disk_Type_Lookup = {
|
204
210
|
'm1.small' => :ephemeral, 'm1.medium' => :ephemeral, 'm1.large' => :ephemeral, 'm1.xlarge' => :ephemeral,
|
@@ -217,6 +223,7 @@ module AwsPricing
|
|
217
223
|
'db.m2.xlarge' => :ephemeral, 'db.m2.2xlarge' => :ephemeral, 'db.m2.4xlarge' => :ephemeral, 'db.cr1.8xlarge' => :ephemeral,
|
218
224
|
'db.t1.micro' => :ebs,
|
219
225
|
'c3.large' => :ssd, 'c3.xlarge' => :ssd, 'c3.2xlarge' => :ssd, 'c3.4xlarge' => :ssd, 'c3.8xlarge' => :ssd,
|
226
|
+
'i2.large' => :ssd, 'i2.xlarge' => :ssd, 'i2.2xlarge' => :ssd, 'i2.4xlarge' => :ssd, 'i2.8xlarge' => :ssd,
|
220
227
|
}
|
221
228
|
end
|
222
229
|
|
data/spec/spec_helper.rb
CHANGED
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon-pricing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.18
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Joe Kinsella
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
15
15
|
email:
|
@@ -47,33 +47,44 @@ files:
|
|
47
47
|
homepage: http://github.com/CloudHealth/amazon-pricing
|
48
48
|
licenses:
|
49
49
|
- MIT
|
50
|
-
post_install_message:
|
50
|
+
post_install_message:
|
51
51
|
rdoc_options:
|
52
|
-
-
|
52
|
+
- --title
|
53
53
|
- amazon-pricing documentation
|
54
|
-
-
|
55
|
-
-
|
54
|
+
- --line-numbers
|
55
|
+
- --main
|
56
56
|
- README.md
|
57
57
|
require_paths:
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
60
61
|
requirements:
|
61
|
-
- -
|
62
|
+
- - ! '>='
|
62
63
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
-
|
65
|
-
|
64
|
+
version: '0'
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
hash: 762838413106018042
|
66
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
67
70
|
requirements:
|
68
|
-
- -
|
71
|
+
- - ! '>='
|
69
72
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
71
|
-
|
72
|
-
|
73
|
+
version: '0'
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
hash: 762838413106018042
|
73
77
|
requirements: []
|
74
78
|
rubyforge_project: amazon-pricing
|
75
|
-
rubygems_version: 1.8.
|
76
|
-
signing_key:
|
79
|
+
rubygems_version: 1.8.25
|
80
|
+
signing_key:
|
77
81
|
specification_version: 3
|
78
82
|
summary: Amazon Web Services Pricing Ruby gem
|
79
|
-
test_files:
|
83
|
+
test_files:
|
84
|
+
- spec/instance_type_spec.rb
|
85
|
+
- spec/price_list_spec.rb
|
86
|
+
- spec/rds_pricing_spec.rb
|
87
|
+
- spec/spec_helper.rb
|
88
|
+
- spec/support/.gitignore
|
89
|
+
- test/ec2_instance_types_test.rb
|
90
|
+
- test/helper.rb
|