amazon-pricing 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/amazon-pricing/rds-instance-type.rb +8 -1
- 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
|
+
YWEyNTk2NzExMjdlZTFlZmI4NDBmODEwOWI2OGI3OTcyZWNlOTExZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmIzYjBlMGU3ODI0OGM1MmI5MDRhZjY0Y2YzMzRiYjhjYzUzZjI2Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGYxNGI4ZGNjMmM4NDUwN2U5YzFkMTg3MDZmZjM3OTYwNGI4NzRhYWZkY2Ix
|
10
|
+
NWY1Yjk1NGFmODYyZmFkNDg5YzExYjc2NjZlNDkxMTE4OTY4ODEyZWMzYzU5
|
11
|
+
ZTlmZTZkMWY5OTIwNGI2ZmIyZTBlNWNlNjhlZjQ0OTZiN2M4NmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjcyYmUwNDczZTIzNThkZTZjOTgxYTdmY2VlZjZhOWJjOTNjNjlhZmNiMTMy
|
14
|
+
NDQ0MzJmOWVlNmNkNGQxYTQ5Y2U5OTM2ZjNjODAyYzI1MDM1NWUzYTY3ODE2
|
15
|
+
M2EwMmE5ZWE2NzQ4OWIzYjM2MWY2NDkxYjBlNTkwYzU0ZjczYTM=
|
@@ -34,7 +34,7 @@ module AwsPricing
|
|
34
34
|
db = get_category_type(database_type, is_multi_az, is_byol)
|
35
35
|
if db.nil?
|
36
36
|
db = DatabaseType.new(self, database_type)
|
37
|
-
|
37
|
+
|
38
38
|
if is_multi_az == true and is_byol == true
|
39
39
|
@category_types["#{database_type}_byol_multiaz"] = db
|
40
40
|
elsif is_multi_az == true and is_byol == false
|
@@ -52,6 +52,13 @@ module AwsPricing
|
|
52
52
|
price = coerce_price(values[database_type.to_s])
|
53
53
|
db.set_price_per_hour(type_of_instance, nil, price)
|
54
54
|
else
|
55
|
+
# Amazon has another data error where they are still exposing reserved instance types when they do not actually exist (e.g. SQL Server t1.micro).
|
56
|
+
# Just warn and continue.
|
57
|
+
if db.ondemand_price_per_hour.nil?
|
58
|
+
$stderr.puts "WARNING: Skipping RDS instance type #{api_name}:#{database_type}:#{type_of_instance}:#{is_multi_az}:#{is_byol} due to lack of on-demand pricing"
|
59
|
+
return
|
60
|
+
end
|
61
|
+
|
55
62
|
json['valueColumns'].each do |val|
|
56
63
|
# As of 2014-04-02 we see entries w/o pricing, e.g. sqlserver_web heavy 1 year reservation = {"prices"=>{"USD"=>{}}, "name"=>"yrTerm1"}
|
57
64
|
if val['prices']['USD'].empty?
|
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.45
|
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-08-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|