amazon-pricing 0.1.46 → 0.1.47

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
- OGUyODcyODBiMTVhNGUxNTY5MDgwMzdjODkxNGMwOGFmNGY0ODA4OA==
4
+ NmNiNmQ3MDE4Zjc2MWUxYjg1ZTUxMjI0YTkwOGJhZjBjOGJlNzE2Ng==
5
5
  data.tar.gz: !binary |-
6
- YjRlZjY1YWQ3YzVmZDgyN2EwZDE5N2Q3ZGRmMmFkYzJlZDA1NTA2Mg==
6
+ ZDRmZjc5ZWVjMzEyYjY1NzYxOGU0YmM2OTIyNTcyODRkOWRkY2M1Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWEyYjkwYmFhNDU5Y2I0ZjI5ZGVjZWMxODI4YTllYmZmNWQ4MjRhMmNiY2Q4
10
- ZTdlYzM5YzkyZGIyMWE5OGNkMTcxN2QwNGQ2NWNiZmYyNDQ0ZTAwN2RkNjYw
11
- MDIyZGJkYmQ0ZjU1NWQ2NDkyNzhmOTFiZjZiZDU3ZTExNjJjMzI=
9
+ MjY3YWQ5NjNhZWI0ZmUxZjFmOWY2MjhmYjNmNDAwNTI1YzU5NjA1NzQ3Yjhh
10
+ NjhhMTdlZjI2ZmJlZTA0ZjhmOTA4N2E4YTNjMWY1ZjM3Y2VmOGVlYzQ5Yzcw
11
+ NDBhMDcxNzY3NGRjZTg4NjQ4NjYxYmYyNWU2YmIzYjRhMDA3MTU=
12
12
  data.tar.gz: !binary |-
13
- MmE2ZTk3NzczODU1OTJjZmIxYmQ5NTYyNWEzNjEzNmE1MGRkY2I0MzZkOTNh
14
- YTUxMTk4YzU1NjM0NGUzMWU2MTE2MGI3ZDQxYzVhN2ExODU2NTdkODQwMDIz
15
- NjE3ZmM3NDkwYTY4ODMyYmQ0MGVjNjRkM2IyZjFlOTk1OTcwNmU=
13
+ MzU1ZTc0MWYwMzUwNjBmNTQxMjVjNTM5YTQ0NWI1MDgxNzVlNzA3NGRlOTRm
14
+ MmMzMmIyNTYwZWViOGRkNjhiZjJkMDM0Zjk4NTlkMGM5MmU4YjAwNDAyYzMx
15
+ NjdkNjU5YTk0ZjE1Yjg4MjNhMjQ5YWNmNDQ1MzY0OTIwYTQwNzE=
@@ -151,6 +151,6 @@ module AwsPricing
151
151
  [api_name, name]
152
152
  end
153
153
 
154
- end
154
+ end
155
155
 
156
156
  end
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.46'
11
+ VERSION = '0.1.47'
12
12
  end
@@ -51,6 +51,14 @@ module AwsPricing
51
51
  elsif db == :sqlserver
52
52
  fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/sqlserver-#{dp_type}-ondemand.min.js",:ondemand, db_type, is_byol, is_multi_az)
53
53
  end
54
+
55
+ # Now repeat for legacy instances
56
+ if [:mysql, :postgresql, :oracle].include? db
57
+ fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{dp_type}-deployments.min.js",:ondemand, db_type, is_byol, is_multi_az)
58
+ elsif db == :sqlserver
59
+ fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/sqlserver-#{dp_type}-ondemand.min.js",:ondemand, db_type, is_byol, is_multi_az)
60
+ end
61
+
54
62
  end
55
63
  }
56
64
  end
@@ -65,6 +73,13 @@ module AwsPricing
65
73
  elsif db == :mysql
66
74
  fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
67
75
  end
76
+
77
+ # Now repeat for legacy instances
78
+ if db == :postgresql and res_type == :heavy
79
+ fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
80
+ elsif db == :mysql
81
+ fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
82
+ end
68
83
  end
69
84
  else
70
85
  @@RESERVED_DB_DEPLOY_TYPE[db].each {|db_type, db_instance|
@@ -76,6 +91,14 @@ module AwsPricing
76
91
  elsif db == :sqlserver
77
92
  fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/sqlserver-#{dp_type}-#{res_type}-ri.min.js", res_type, db_type, is_byol)
78
93
  end
94
+
95
+ # Now repeat for legacy instances
96
+ if db == :oracle
97
+ fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{dp_type}-#{res_type}-utilization-reserved-instances.min.js", res_type, db_type, is_byol)
98
+ elsif db == :sqlserver
99
+ fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/sqlserver-#{dp_type}-#{res_type}-ri.min.js", res_type, db_type, is_byol)
100
+ end
101
+
79
102
  end
80
103
  end
81
104
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.46
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella