amazon-pricing 0.1.88 → 0.1.89

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2YyZmQ3OTMwN2Y2MzlmMzU3ODBkMjk2ZDk2ZGY0MTVhMmZkNThhZQ==
4
+ M2NjZThjMWM2ODU4MmE1YjBjNDM1OWU5MWFlODBhMzUzNGU1Y2FhZg==
5
5
  data.tar.gz: !binary |-
6
- MWQxNGFjNDg2YmIyNTlhYmQ0NzA5MjFmNDc1ZTMwYzRiY2UzNzU3ZQ==
6
+ YjQ5MjBiNzk2Yzk1Yjg1Y2RiZTEyYTBkNWE3NmRkNWY2ZjBjNTkyOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2UzMGE4Yjk2NmMzYjdmZmJhNmRlZGZmMzczYTE3ODVjYTQ2YmI4ZmYwYWNl
10
- MzZmZmUzNGMxNzY5NzA4Y2I4YjMzYzg3Nzg5ZGFlYmY0MjE2NjJkNDE3MjYx
11
- MTQ5ZjA3MGM1NDRjOTYwZmUxMDQ3N2IyZTUwYjhkMzc0YmM5ZTk=
9
+ MWMwZDQxNGM0OWRjMzk4ZWY5Mzc5Njg5YWY5MGU4MTQ1MjkxMGYwNTdkZGYx
10
+ YTA2ZTRmZDg2MDllODM0Njk0MDYzN2MzZDBmZTVhYWVjMTBlNGJkODBlNjY2
11
+ NjgzMDg4N2NiODRiNjVlNTM4YTg3MDNmNWEzNDJmY2M4NDkyOTE=
12
12
  data.tar.gz: !binary |-
13
- MjBjNWMxNzE0YzQyMzYxMThhZjcxNjQ4ZmJlNjMxMjg2NTc0NzMyMDQ4MWIy
14
- MDllZTliMjlmZTgyOTBkZDM0OThjMWJjMzczMjQ3YmIzNDVjZWM5OTBkOWYy
15
- YjhmM2FkMDFjYzFjNGE0NjA1MjU4YjQ5OGNiNTM4ZGQ0NGE1MDY=
13
+ NTIyMTA2OTcyMzg4N2VhZDM4NzI1M2ZmOTc1ZWQ4Y2E4MmU1MDkwZmY0NDA0
14
+ ZjI4MjUxZjMxMjc3ZGY5NDE5NDg2ZjNmYzVlNGM2NjE3YzhmMjY0Y2Y4NzU1
15
+ ZjhiYjViZGEyMGRjNDRmN2RkYjBkZTc3NjAyZmI0OGU0NWRiYTY=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amazon-pricing (0.1.88)
4
+ amazon-pricing (0.1.89)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,6 +10,10 @@ GEM
10
10
  diff-lcs (1.1.3)
11
11
  method_source (0.8.2)
12
12
  power_assert (0.3.0)
13
+ pry (0.10.4)
14
+ coderay (~> 1.1.0)
15
+ method_source (~> 0.8.1)
16
+ slop (~> 3.4)
13
17
  rake (11.1.2)
14
18
  rspec (2.11.0)
15
19
  rspec-core (~> 2.11.0)
@@ -28,6 +32,7 @@ PLATFORMS
28
32
 
29
33
  DEPENDENCIES
30
34
  amazon-pricing!
35
+ pry
31
36
  rake
32
37
  rspec (~> 2.11.0)
33
38
  test-unit
@@ -21,7 +21,7 @@ module AwsPricing
21
21
 
22
22
  # Creating regions upfront since different json files all use different naming conventions. No more ad-hoc creation.
23
23
  regions = ["eu-west-1", "sa-east-1", "us-east-1", "ap-northeast-1", "us-west-2", "us-west-1", "ap-southeast-1", "ap-southeast-2",
24
- "eu-central-1", "us-gov-west-1", "ap-northeast-2", "ap-south-1"]
24
+ "eu-central-1", "us-gov-west-1", "ap-northeast-2", "ap-south-1", "us-east-2"]
25
25
 
26
26
  regions.each do |name|
27
27
  @_regions[name] = Region.new(name)
@@ -192,6 +192,7 @@ module AwsPricing
192
192
  'cache.r3.8xlarge' => :ten_gigabit,
193
193
  'cache.r3.large' => :moderate,
194
194
  'cache.r3.xlarge' => :moderate,
195
+ 'cache.x1.16xlarge' => :ten_gigabit,
195
196
  'cache.x1.32xlarge' => :ten_gigabit,
196
197
  'cache.t1.micro' => :very_low,
197
198
  'cache.t2.medium' => :low_to_moderate,
@@ -232,6 +233,7 @@ module AwsPricing
232
233
  'db.t2.medium' => :low_to_moderate,
233
234
  'db.t2.micro' => :low,
234
235
  'db.t2.small' => :low_to_moderate,
236
+ 'db.x1.16xlarge' => :ten_gigabit,
235
237
  'db.x1.32xlarge' => :ten_gigabit,
236
238
  'g2.2xlarge' => :high,
237
239
  'g2.8xlarge' => :ten_gigabit,
@@ -272,6 +274,7 @@ module AwsPricing
272
274
  't2.micro' => :low_to_moderate,
273
275
  't2.nano' => :low,
274
276
  't2.small' => :low_to_moderate,
277
+ 'x1.16xlarge' => :ten_gigabit,
275
278
  'x1.32xlarge' => :ten_gigabit,
276
279
  }
277
280
 
@@ -198,6 +198,7 @@ module AwsPricing
198
198
  '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',
199
199
  't2.nano' => 'Burstable Performance Instance Nano', 't2.micro' => 'Burstable Performance Instance Micro', 't2.small' => 'Burstable Performance Instance Small', 't2.medium' => 'Burstable Performance Instance Medium', 't2.large' => 'Burstable Performance Instance Large',
200
200
  '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',
201
+ 'x1.16xlarge' => 'Memory Optimized Hextuple Large-scale Enterprise-class',
201
202
  'x1.32xlarge' => 'Memory Optimized Large-scale Enterprise-class',
202
203
  }
203
204
  @@Disk_Lookup = {
@@ -222,7 +223,7 @@ module AwsPricing
222
223
  'r3.large' => 32, 'r3.xlarge' => 80, 'r3.2xlarge' => 160, 'r3.4xlarge' => 320, 'r3.8xlarge' => 640,
223
224
  't2.nano' => 0, 't2.micro' => 0, 't2.small' => 0, 't2.medium' => 0, 't2.large' => 0,
224
225
  'c4.large' => 0, 'c4.xlarge' => 0, 'c4.2xlarge' => 0, 'c4.4xlarge' => 0, 'c4.8xlarge' => 0,
225
- 'x1.32xlarge' => 3840,
226
+ 'x1.16xlarge' => 3840, 'x1.32xlarge' => 3840,
226
227
  'p2.xlarge' => 0, 'p2.8xlarge' => 0, 'p2.16xlarge' => 0,
227
228
  }
228
229
  @@Platform_Lookup = {
@@ -247,7 +248,7 @@ module AwsPricing
247
248
  'r3.large' => 64, 'r3.xlarge' => 64, 'r3.2xlarge' => 64, 'r3.4xlarge' => 64, 'r3.8xlarge' => 64,
248
249
  't2.nano' => 64, 't2.micro' => 64, 't2.small' => 64, 't2.medium' => 64, 't2.large' => 64,
249
250
  'c4.large' => 64, 'c4.xlarge' => 64, 'c4.2xlarge' => 64, 'c4.4xlarge' => 64, 'c4.8xlarge' => 64,
250
- 'x1.32xlarge' => 64,
251
+ 'x1.16xlarge' => 64, 'x1.32xlarge' => 64,
251
252
  'p2.xlarge' => 64, 'p2.8xlarge' => 64, 'p2.16xlarge' => 64,
252
253
  }
253
254
  @@Disk_Type_Lookup = {
@@ -273,7 +274,7 @@ module AwsPricing
273
274
  'r3.large' => :ssd, 'r3.xlarge' => :ssd, 'r3.2xlarge' => :ssd, 'r3.4xlarge' => :ssd, 'r3.8xlarge' => :ssd,
274
275
  't2.nano' => :ebs, 't2.micro' => :ebs, 't2.small' => :ebs, 't2.medium' => :ebs, 't2.large' => :ebs,
275
276
  'c4.large' => :ebs, 'c4.xlarge' => :ebs, 'c4.2xlarge' => :ebs, 'c4.4xlarge' => :ebs, 'c4.8xlarge' => :ebs,
276
- 'x1.32xlarge' => :ssd,
277
+ 'x1.16xlarge' => :ssd, 'x1.32xlarge' => :ssd,
277
278
  'p2.xlarge' => :ebs, 'p2.8xlarge' => :ebs, 'p2.16xlarge' => :ebs,
278
279
  }
279
280
 
@@ -407,6 +408,7 @@ module AwsPricing
407
408
  # t2.micro is EBS-only
408
409
  # t2.nano is EBS-only
409
410
  # t2.small is EBS-only
411
+ 'x1.16xlarge' => [940, 105123],
410
412
  'x1.32xlarge' => [940, 105123],
411
413
  }
412
414
  end
@@ -30,7 +30,7 @@ module AwsPricing
30
30
  'MemoryOptimized' => {
31
31
  'CurrentGen' => {
32
32
  'R3' => ['r3.large', 'r3.xlarge', 'r3.2xlarge', 'r3.4xlarge', 'r3.8xlarge'],
33
- 'X1' => ['x1.32xlarge']
33
+ 'X1' => ['x1.16xlarge', 'x1.32xlarge']
34
34
  },
35
35
  'PreviousGen' => {
36
36
  'M2' => ['m2.xlarge', 'm2.2xlarge', 'm2.4xlarge'],
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.88'
11
+ VERSION = '0.1.89'
12
12
  end
@@ -49,6 +49,7 @@ class TestEc2InstanceTypes < Test::Unit::TestCase
49
49
  # Validate instance types in specific regions are available
50
50
  region = @@ec2_pricing.get_region('us-east')
51
51
  assert !region.instance_type_available?('x1.99xlarge') #bogus x1
52
+ assert region.instance_type_available?('x1.16xlarge') #test valid x1 available
52
53
  assert region.instance_type_available?('x1.32xlarge') #test valid x1 available
53
54
  end
54
55
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.88
4
+ version: 0.1.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby library for retrieving pricing for Amazon Web Services
14
14
  email: