amazon-pricing 0.1.38 → 0.1.39

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
- NWUxZTEyZTg2NzNhOGEyZmY5ZjQzMjNkNjVjN2U5NjMzYzY0Mzk5NA==
4
+ MzkwMTIxODM4OTk5ZDlmNzUwM2I5ZWVkMGQ3ODcxZGM3Y2U5NmQ5Yw==
5
5
  data.tar.gz: !binary |-
6
- MDE2MDMyMDg0YjQ1NzRlNzUwYWNkYmQ5ZWI5ODc5MDA0NDE1Y2YyYQ==
6
+ MTQ0ODc2YWUzMjA3MzJmNGRkODI5ZDU1NjM2ZmRlN2JjZGNmMDRlZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWJkODY2YjAxOTM4NWU0ODc2OTI2ODJlMzNlNmEwYzlmYTA3N2UzZmEzNGEw
10
- OGRjNzYwY2YwMzQ0NzFjMzc0MDgwNjc4YTE4YzM0YjY4ODkxODFkZDI3ZGJi
11
- NTkxY2E1ZDQzOGNiYmJkOTcwZTU0NjVlY2UxOGQwYmUzZTJlMzI=
9
+ ZmE0NWMwOGFlMGM3NDc3MzkxZTg2MzIzYWFjYjMzN2VlMzQxNzc5OTNiNmY5
10
+ Yjg4MTg0NjM5YThlNzMyNGY2ZmE5NTkwY2FlYTdmMTVjMjc2YWIwYjQ4N2U1
11
+ YmQ2OTg0NDhjZmU4MjZhNTBjODIzZGU0ODc1MmZjZWYwMzFmMDM=
12
12
  data.tar.gz: !binary |-
13
- ZTI5NjRjZDI4Y2FiOTM1ZWE4NDNiMDA5ZjNiM2M3ODdhOGVjYjg2MTgwZTc2
14
- OGM2ODc3YjA3MDNhZDk4YWQ3MGM2NGYxMzg1M2Y1NWRkZGUyZWVjODIwMTA2
15
- ZDE4ZjAxZWQ1ZDMwZmYyMzZlYzI2NWU1YTBiYTExY2VhOWFiM2Q=
13
+ MTk2ZGNhYmExMDE3YmYwNTkwOGVmODRlMDI0OWIxNmFhMDFjM2MzMDMwZDgx
14
+ MDBiMWYzMmM4ZDE5MDhmYmM3YjkzNzBkNWZlYTUzYzc0MGEyYjM1ZDZiM2M3
15
+ YTU1YmQ0OTU3YjA3MWExZjgyMTBhNDkzZDI1ZDczZTdlODYwN2I=
@@ -355,6 +355,13 @@ module AwsPricing
355
355
  @@OS_TYPES.each do |os|
356
356
  @@RES_TYPES.each do |res_type|
357
357
  fetch_ec2_instance_pricing(EC2_BASE_URL + "#{os}-ri-#{res_type}.min.js", res_type, os)
358
+ # Rinse & repeat for legacy instances (note: amazon changed URLs for legacy reserved instances)
359
+ os_rewrite = os
360
+ os_rewrite = "redhatlinux" if os == :rhel
361
+ os_rewrite = "suselinux" if os == :sles
362
+ os_rewrite = "mswinsqlstd" if os == :mswinSQL
363
+ os_rewrite = "mswinsqlweb" if os == :mswinSQLWeb
364
+ fetch_ec2_instance_pricing(EC2_BASE_URL + "previous-generation/#{res_type}_#{os_rewrite}.min.js", res_type, os)
358
365
  end
359
366
  end
360
367
  end
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.38'
11
+ VERSION = '0.1.39'
12
12
  end
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.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby library for retrieving pricing for Amazon Web Services
14
14
  email: