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 +8 -8
- data/lib/amazon-pricing.rb +7 -0
- data/lib/amazon-pricing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzkwMTIxODM4OTk5ZDlmNzUwM2I5ZWVkMGQ3ODcxZGM3Y2U5NmQ5Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTQ0ODc2YWUzMjA3MzJmNGRkODI5ZDU1NjM2ZmRlN2JjZGNmMDRlZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmE0NWMwOGFlMGM3NDc3MzkxZTg2MzIzYWFjYjMzN2VlMzQxNzc5OTNiNmY5
|
10
|
+
Yjg4MTg0NjM5YThlNzMyNGY2ZmE5NTkwY2FlYTdmMTVjMjc2YWIwYjQ4N2U1
|
11
|
+
YmQ2OTg0NDhjZmU4MjZhNTBjODIzZGU0ODc1MmZjZWYwMzFmMDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTk2ZGNhYmExMDE3YmYwNTkwOGVmODRlMDI0OWIxNmFhMDFjM2MzMDMwZDgx
|
14
|
+
MDBiMWYzMmM4ZDE5MDhmYmM3YjkzNzBkNWZlYTUzYzc0MGEyYjM1ZDZiM2M3
|
15
|
+
YTU1YmQ0OTU3YjA3MWExZjgyMTBhNDkzZDI1ZDczZTdlODYwN2I=
|
data/lib/amazon-pricing.rb
CHANGED
@@ -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
|
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.
|
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-
|
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:
|