amazon-pricing 0.1.61 → 0.1.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amazon-pricing (0.1.61)
4
+ amazon-pricing (0.1.62)
5
5
  mechanize (~> 2.7.2)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  coderay (1.1.0)
11
11
  diff-lcs (1.1.3)
12
- domain_name (0.5.23)
12
+ domain_name (0.5.24)
13
13
  unf (>= 0.0.5, < 1.0.0)
14
14
  http-cookie (1.0.2)
15
15
  domain_name (~> 0.5)
@@ -23,7 +23,7 @@ GEM
23
23
  ntlm-http (~> 0.1, >= 0.1.1)
24
24
  webrobots (>= 0.0.9, < 0.2)
25
25
  method_source (0.8.2)
26
- mime-types (2.4.3)
26
+ mime-types (2.6.1)
27
27
  mini_portile (0.6.2)
28
28
  net-http-digest_auth (1.4)
29
29
  net-http-persistent (2.9.4)
@@ -49,7 +49,7 @@ GEM
49
49
  power_assert
50
50
  unf (0.1.4)
51
51
  unf_ext
52
- unf_ext (0.0.6)
52
+ unf_ext (0.0.7.1)
53
53
  webrobots (0.1.1)
54
54
 
55
55
  PLATFORMS
@@ -165,6 +165,7 @@ module AwsPricing
165
165
  'm1.small' => 'Standard Small', 'm1.medium' => 'Standard Medium', 'm1.large' => 'Standard Large', 'm1.xlarge' => 'Standard Extra Large',
166
166
  'm2.xlarge' => 'Hi-Memory Extra Large', 'm2.2xlarge' => 'Hi-Memory Double Extra Large', 'm2.4xlarge' => 'Hi-Memory Quadruple Extra Large',
167
167
  'm3.medium' => 'M3 Medium Instance', 'm3.large'=>'M3 Large Instance', 'm3.xlarge' => 'M3 Extra Large Instance', 'm3.2xlarge' => 'M3 Double Extra Large Instance',
168
+ 'm4.large' => 'M4 Large Instance', 'm4.xlarge' => 'M4 Extra Large Instance', 'm4.2xlarge' => 'M4 Double Extra Large Instance', 'm4.4xlarge' => 'M4 Quadruple Extra Large Instance', 'm4.10xlarge' => 'M4 Decuple Extra Large Instance',
168
169
  'c1.medium' => 'High-CPU Medium', 'c1.xlarge' => 'High-CPU Extra Large',
169
170
  'hi1.4xlarge' => 'High I/O Quadruple Extra Large',
170
171
  'cg1.4xlarge' => 'Cluster GPU Quadruple Extra Large',
@@ -177,13 +178,14 @@ module AwsPricing
177
178
  'i2.xlarge' => 'High I/O Extra Large', 'i2.2xlarge' => 'High I/O Double Extra Large', 'i2.4xlarge' => 'High I/O Quadruple Extra Large', 'i2.8xlarge' => 'High I/O Eight Extra Large',
178
179
  'd2.xlarge' => 'Dense Storage Extra Large', 'd2.2xlarge' => 'Dense Storage Double Extra Large', 'd2.4xlarge' => 'Dense Storage Quadruple Extra Large', 'd2.8xlarge' => 'Dense Storage Eight Extra Large',
179
180
  'r3.large' => 'Memory Optimized Large', 'r3.xlarge' => 'Memory Optimized Extra Large', 'r3.2xlarge' => 'Memory Optimized Double Extra Large', 'r3.4xlarge' => 'Memory Optimized Quadruple Extra Large', 'r3.8xlarge' => 'Memory Optimized Eight Extra Large',
180
- 't2.micro' => 'Burstable Performance Instance Micro', 't2.small' => 'Burstable Performance Instance Small', 't2.medium' => 'Burstable Performance Instance Medium',
181
+ 't2.micro' => 'Burstable Performance Instance Micro', 't2.small' => 'Burstable Performance Instance Small', 't2.medium' => 'Burstable Performance Instance Medium', 't2.large' => 'Burstable Performance Instance Large',
181
182
  'c4.large' => 'Compute Optimized Large', 'c4.xlarge' => 'Compute Optimized Extra Large', 'c4.2xlarge' => 'Compute Optimized Double Extra Large', 'c4.4xlarge' => 'Compute Optimized Quadruple Extra Large', 'c4.8xlarge' => 'Compute Optimized Eight Extra Large',
182
183
  }
183
184
  @@Disk_Lookup = {
184
185
  'm1.small' => 160, 'm1.medium' => 410, 'm1.large' =>850, 'm1.xlarge' => 1690,
185
186
  'm2.xlarge' => 420, 'm2.2xlarge' => 850, 'm2.4xlarge' => 1690,
186
187
  'm3.medium' => 4, 'm3.large' => 32, 'm3.xlarge' => 80, 'm3.2xlarge' => 160,
188
+ 'm4.large' => 0, 'm4.xlarge' => 0, 'm4.2xlarge' => 0, 'm4.4xlarge' => 0, 'm4.10xlarge' => 0,
187
189
  'c1.medium' => 350, 'c1.xlarge' => 1690,
188
190
  'hi1.4xlarge' => 2048,
189
191
  'cg1.4xlarge' => 1690,
@@ -199,13 +201,14 @@ module AwsPricing
199
201
  'i2.large' => 360, 'i2.xlarge' => 720, 'i2.2xlarge' => 1440, 'i2.4xlarge' => 2880, 'i2.8xlarge' => 5760,
200
202
  'd2.xlarge' => 6000, 'd2.2xlarge' => 12000, 'd2.4xlarge' => 24000, 'd2.8xlarge' => 48000,
201
203
  'r3.large' => 32, 'r3.xlarge' => 80, 'r3.2xlarge' => 160, 'r3.4xlarge' => 320, 'r3.8xlarge' => 640,
202
- 't2.micro' => 0, 't2.small' => 0, 't2.medium' => 0,
204
+ 't2.micro' => 0, 't2.small' => 0, 't2.medium' => 0, 't2.large' => 0,
203
205
  'c4.large' => 0, 'c4.xlarge' => 0, 'c4.2xlarge' => 0, 'c4.4xlarge' => 0, 'c4.8xlarge' => 0,
204
206
  }
205
207
  @@Platform_Lookup = {
206
208
  'm1.small' => 32, 'm1.medium' => 32, 'm1.large' => 64, 'm1.xlarge' => 64,
207
209
  'm2.xlarge' => 64, 'm2.2xlarge' => 64, 'm2.4xlarge' => 64,
208
210
  'm3.medium' => 64, 'm3.large' => 64, 'm3.xlarge' => 64, 'm3.2xlarge' => 64,
211
+ 'm4.large' => 64, 'm4.xlarge' => 64, 'm4.2xlarge' => 64, 'm4.4xlarge' => 64, 'm4.10xlarge' => 64,
209
212
  'c1.medium' => 32, 'c1.xlarge' => 64,
210
213
  'hi1.4xlarge' => 64,
211
214
  'cg1.4xlarge' => 64,
@@ -221,13 +224,14 @@ module AwsPricing
221
224
  'i2.large' => 64, 'i2.xlarge' => 64, 'i2.2xlarge' => 64, 'i2.4xlarge' => 64, 'i2.8xlarge' => 64,
222
225
  'd2.xlarge' => 64, 'd2.2xlarge' => 64, 'd2.4xlarge' => 64, 'd2.8xlarge' => 64,
223
226
  'r3.large' => 64, 'r3.xlarge' => 64, 'r3.2xlarge' => 64, 'r3.4xlarge' => 64, 'r3.8xlarge' => 64,
224
- 't2.micro' => 64, 't2.small' => 64, 't2.medium' => 64,
227
+ 't2.micro' => 64, 't2.small' => 64, 't2.medium' => 64, 't2.large' => 64,
225
228
  'c4.large' => 64, 'c4.xlarge' => 64, 'c4.2xlarge' => 64, 'c4.4xlarge' => 64, 'c4.8xlarge' => 64,
226
229
  }
227
230
  @@Disk_Type_Lookup = {
228
231
  'm1.small' => :ephemeral, 'm1.medium' => :ephemeral, 'm1.large' => :ephemeral, 'm1.xlarge' => :ephemeral,
229
232
  'm2.xlarge' => :ephemeral, 'm2.2xlarge' => :ephemeral, 'm2.4xlarge' => :ephemeral,
230
233
  'm3.medium' => :ssd, 'm3.large' => :ssd, 'm3.xlarge' => :ssd, 'm3.2xlarge' => :ssd,
234
+ 'm4.large' => :ebs, 'm4.xlarge' => :ebs, 'm4.2xlarge' => :ebs, 'm4.4xlarge' => :ebs, 'm4.10xlarge' => :ebs,
231
235
  'c1.medium' => :ephemeral, 'c1.xlarge' => :ephemeral,
232
236
  'hi1.4xlarge' => :ssd,
233
237
  'cg1.4xlarge' => :ephemeral,
@@ -244,7 +248,7 @@ module AwsPricing
244
248
  'i2.large' => :ssd, 'i2.xlarge' => :ssd, 'i2.2xlarge' => :ssd, 'i2.4xlarge' => :ssd, 'i2.8xlarge' => :ssd,
245
249
  'd2.xlarge' => :ephemeral, 'd2.2xlarge' => :ephemeral, 'd2.4xlarge' => :ephemeral, 'd2.8xlarge' => :ephemeral,
246
250
  'r3.large' => :ssd, 'r3.xlarge' => :ssd, 'r3.2xlarge' => :ssd, 'r3.4xlarge' => :ssd, 'r3.8xlarge' => :ssd,
247
- 't2.micro' => :ebs, 't2.small' => :ebs, 't2.medium' => :ebs,
251
+ 't2.micro' => :ebs, 't2.small' => :ebs, 't2.medium' => :ebs, 't2.large' => :ebs,
248
252
  'c4.large' => :ebs, 'c4.xlarge' => :ebs, 'c4.2xlarge' => :ebs, 'c4.4xlarge' => :ebs, 'c4.8xlarge' => :ebs,
249
253
  }
250
254
 
@@ -252,11 +256,11 @@ module AwsPricing
252
256
  # But... AWS does not always provide memory info (e.g. t2, r3), so those are hardcoded below
253
257
  @@Memory_Lookup = {
254
258
  'r3.large' => 15250, 'r3.xlarge' => 30500, 'r3.2xlarge' => 61000, 'r3.4xlarge' => 122000, 'r3.8xlarge' => 244000,
255
- 't2.micro' => 1000, 't2.small' => 2000, 't2.medium' => 4000,
259
+ 't2.micro' => 1000, 't2.small' => 2000, 't2.medium' => 4000, 't2.large' => 8000,
256
260
  }
257
261
  @@Virtual_Cores_Lookup = {
258
262
  'r3.large' => 2, 'r3.xlarge' => 4, 'r3.2xlarge' => 8, 'r3.4xlarge' => 16, 'r3.8xlarge' => 32,
259
- 't2.micro' => 1, 't2.small' => 1, 't2.medium' => 2,
263
+ 't2.micro' => 1, 't2.small' => 1, 't2.medium' => 2, 't2.large' => 2,
260
264
  }
261
265
 
262
266
  # Due to fact AWS pricing API only reports these for EC2, we will fetch from EC2 and keep around for lookup
@@ -5,7 +5,8 @@ module AwsPricing
5
5
  @@INSTANCE_TYPES_BY_CLASSIFICATION = {
6
6
  'GeneralPurpose' => {
7
7
  'CurrentGen' => {
8
- 'M3' => ['m3.medium', 'm3.large', 'm3.xlarge', 'm3.2xlarge']
8
+ 'M3' => ['m3.medium', 'm3.large', 'm3.xlarge', 'm3.2xlarge'],
9
+ 'M4' => ['m4.large', 'm4.xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.10xlarge']
9
10
  },
10
11
  'PreviousGen' => {
11
12
  'M1' => ['m1.small', 'm1.medium', 'm1.large', 'm1.xlarge']
@@ -13,7 +14,7 @@ module AwsPricing
13
14
  },
14
15
  'BurstableInstances' => {
15
16
  'CurrentGen' => {
16
- 'T2' => ['t2.micro', 't2.small', 't2.medium']
17
+ 'T2' => ['t2.micro', 't2.small', 't2.medium', 't2.large']
17
18
  }
18
19
  },
19
20
  'ComputeOptimized' => {
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.61'
11
+ VERSION = '0.1.62'
12
12
  end
@@ -63,7 +63,7 @@ class TestEc2InstanceTypes < Test::Unit::TestCase
63
63
  region = @@ec2_pricing.get_region('us-east')
64
64
  instance = region.get_ec2_instance_type('m3.large')
65
65
  bem = instance.get_breakeven_month(:linux, :heavy, :year1)
66
- assert bem == 6
66
+ assert bem == 7
67
67
  end
68
68
 
69
69
  def test_memory
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Joe Kinsella
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
12
+ date: 2015-06-22 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: mechanize
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -70,7 +73,6 @@ files:
70
73
  homepage: http://github.com/CloudHealth/amazon-pricing
71
74
  licenses:
72
75
  - MIT
73
- metadata: {}
74
76
  post_install_message:
75
77
  rdoc_options:
76
78
  - --title
@@ -81,20 +83,28 @@ rdoc_options:
81
83
  require_paths:
82
84
  - lib
83
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
+ none: false
84
87
  requirements:
85
88
  - - ! '>='
86
89
  - !ruby/object:Gem::Version
87
90
  version: '0'
88
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
+ none: false
89
93
  requirements:
90
94
  - - ! '>='
91
95
  - !ruby/object:Gem::Version
92
96
  version: '0'
93
97
  requirements: []
94
98
  rubyforge_project: amazon-pricing
95
- rubygems_version: 2.3.0
99
+ rubygems_version: 1.8.25
96
100
  signing_key:
97
- specification_version: 4
101
+ specification_version: 3
98
102
  summary: Amazon Web Services Pricing Ruby gem
99
- test_files: []
103
+ test_files:
104
+ - spec/lib/amazon-pricing/definitions/database-type_spec.rb
105
+ - spec/lib/amazon-pricing/rds_pricing_spec.rb
106
+ - spec/spec_helper.rb
107
+ - spec/support/.gitignore
108
+ - test/ec2_instance_types_test.rb
109
+ - test/helper.rb
100
110
  has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Mzc1MGNkZGJlNTRiY2UyZWVjMTg1ZTIyNTFhYmMzMzg2ZmY2NjkzZQ==
5
- data.tar.gz: !binary |-
6
- NmE0MWU3ZmVhYWNlMzc3NGZhMzA0N2IzMWYyNTYzMjk1MThlZDc1Mw==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MjViZTdlYWZjMzkxM2JiY2JlNzY1YjI3NmEwYjIzYTM2ZjI0N2I2YzY5ZTA3
10
- ZDcyNjEyZjM0MzE4NTk1NzUyMzM3MTlmOTI2Y2Q2NzQzNDFhODdjNjRhYzdk
11
- YzhlNzhkN2ZiNjUxZjI1NWFhOWE5NmQ5OWYyNDEyNTlkMThlMmU=
12
- data.tar.gz: !binary |-
13
- MWU5ZTUyYjRmMWEzYjk3MWNjZGFkMTNlZjhmZTRmNzM0YTkzZmFmYzg3YmUw
14
- NzcxZDdjYzdhYThlMGZjNGVmNGIzY2U2NWY4NDk0OTAwZWEyZWRiM2E0OGE0
15
- OTg3OTYxZGVjNDhlYWVhMWJmNTQ1ZTIyNGFkMThjMjMzYzVlZDU=