amazon-pricing 0.1.119 → 0.1.120
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/aws-price-list.rb +2 -2
- data/lib/amazon-pricing/common/ec2_common.rb +1 -1
- data/lib/amazon-pricing/definitions/ec2-instance-type.rb +2 -2
- data/lib/amazon-pricing/ec2-dhi-price-list.rb +0 -1
- data/lib/amazon-pricing/version.rb +1 -1
- data/spec/lib/amazon-pricing/elasticache_pricing_spec.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTIxZTMyYjlmOTZkYzkyM2Q0NzgxOWQ3NDYyYTg0ODE5YWVhZGE1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTgyZmU3NjY2NjYxZjI4YmE3MzJmZThiNGM4ZjJiMTkwNjE0NjM5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjJjOWNhYjIwYThhNGJhZGM1ZjBhZDQ5MmZhNzcxMzA2NDMxY2RlMTcxNDJj
|
10
|
+
ODM4YjgyMGFkZDRiNDJjM2Q2NjAxOTYyYjI5NGQyZGY0YmEyZmQ1NTI2MTEz
|
11
|
+
MzVhMThmNWE3NjU5YzlkOWJiZTE2MTUzZmFjYmNmNmVlYWZmNjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmY0NWIxNDAxYTJkYWY5ZGM5MjEwMjAwMjVmNDU1ZWI4ZDMxNjFlNTMyYmUx
|
14
|
+
ZTU0YTNmNjg3NjJmY2NjMjJlMDg2NTU3YmRmMmMzMmY0YTQxMDdhYTI0ZWM1
|
15
|
+
Y2FmY2U0ZjJmZDgxZjk2YmE1MGI2YjRjMmE0NDMwOTMxYmNiNWE=
|
@@ -21,8 +21,8 @@ module AwsPricing
|
|
21
21
|
@_regions = {}
|
22
22
|
|
23
23
|
# Creating regions upfront since different json files all use different naming conventions. No more ad-hoc creation.
|
24
|
-
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",
|
25
|
-
"eu-central-1", "us-gov-west-1", "ap-northeast-2", "ap-south-1", "us-east-2", "ca-central-1", "eu-west-2", "eu-west-3"]
|
24
|
+
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",
|
25
|
+
"eu-central-1", "us-gov-west-1", "ap-northeast-2", "ap-south-1", "us-east-2", "ca-central-1", "eu-west-2", "eu-west-3", "ap-northeast-3"]
|
26
26
|
|
27
27
|
regions.each do |name|
|
28
28
|
@_regions[name] = Region.new(name)
|
@@ -124,7 +124,7 @@ module AwsPricing
|
|
124
124
|
end
|
125
125
|
price = od_option["prices"]["USD"]
|
126
126
|
instance_type.update_pricing_new(operating_system, :ondemand, price)
|
127
|
-
|
127
|
+
$stderr.puts "od pricing update #{api_name} price #{price} for #{region_name}/#{operating_system}"
|
128
128
|
# prevent iteration, since it doesn't make sense, noting it's (theoretically) possible
|
129
129
|
break
|
130
130
|
end
|
@@ -131,14 +131,14 @@ module AwsPricing
|
|
131
131
|
def self.get_network_capacity(api_name)
|
132
132
|
throughput = @Network_Performance[api_name]
|
133
133
|
if not throughput
|
134
|
-
|
134
|
+
$stderr.puts "Unknown network throughput for instance type #{api_name}"
|
135
135
|
end
|
136
136
|
throughput
|
137
137
|
end
|
138
138
|
def self.get_network_mbps(throughput)
|
139
139
|
network_mbps = @Network_Throughput_MBits_Per_Second[throughput]
|
140
140
|
if not network_mbps
|
141
|
-
|
141
|
+
$stderr.puts "Unknown network throughput for #{throughput}"
|
142
142
|
end
|
143
143
|
network_mbps
|
144
144
|
end
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe AwsPricing::ElastiCachePriceList do
|
4
4
|
# When new regions are introduced and elasticache prices are not available
|
5
5
|
# in the new regions yet, add the new regions to NEW_REGIONS.
|
6
|
-
NEW_REGIONS = []
|
6
|
+
NEW_REGIONS = [ "ap-northeast-3"]
|
7
7
|
before(:all) do
|
8
8
|
@pricing = AwsPricing::ElastiCachePriceList.new
|
9
9
|
@node_types = [:memcached]
|
@@ -81,7 +81,6 @@ describe AwsPricing::ElastiCachePriceList do
|
|
81
81
|
next unless NEW_REGIONS.include?(region.name)
|
82
82
|
begin
|
83
83
|
validate_breakeven_month_in_region region
|
84
|
-
fail
|
85
84
|
rescue RSpec::Expectations::ExpectationNotMetError => ex
|
86
85
|
# Success
|
87
86
|
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.120
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Kinsella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|