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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDlmOWFkNzkyY2I3MGIwMTI2MTdkNTA0NmViN2U0NzY1ODkzNzBhMw==
4
+ MTIxZTMyYjlmOTZkYzkyM2Q0NzgxOWQ3NDYyYTg0ODE5YWVhZGE1ZA==
5
5
  data.tar.gz: !binary |-
6
- ZDNiOTZlNTE1NTRlZGJiNmYyYzlhMDBmZTI4MzE5NTIyZGE2Mjk3NQ==
6
+ MTgyZmU3NjY2NjYxZjI4YmE3MzJmZThiNGM4ZjJiMTkwNjE0NjM5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODg1YTliODg1MzI1OTQzNTk1ZWI5Mjc3NDc5OTM4OTk4ZTZlNTJlNTc1NTUx
10
- YjRlYjM5YTQ5Yjg2YzEyOGRjMmIxZTYzZTE4MzJjMjhiZTU1YWU4Mzk2MjUz
11
- MzRkNzY1MjY2N2UxMGQ5YmE4MWIwNDEzNmIwMzlhN2I1OGQ2OTQ=
9
+ MjJjOWNhYjIwYThhNGJhZGM1ZjBhZDQ5MmZhNzcxMzA2NDMxY2RlMTcxNDJj
10
+ ODM4YjgyMGFkZDRiNDJjM2Q2NjAxOTYyYjI5NGQyZGY0YmEyZmQ1NTI2MTEz
11
+ MzVhMThmNWE3NjU5YzlkOWJiZTE2MTUzZmFjYmNmNmVlYWZmNjg=
12
12
  data.tar.gz: !binary |-
13
- NmQyZDE1NDA3MDgwODc4Y2Y0MGJiMmI1N2M3ZTg4YzUzNzFkOWFjZjU4MTE2
14
- NGEwOTdmODNiNzc2MGJlM2Y3ODgxOTRkYzk5N2QwZTFiYmVhYWVkYTU3OTdk
15
- NTQzN2RkOGNhNzI4NmZlMTRkN2RkNGRjOTk3ZDhkNDE5Zjg1ZmY=
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
- logger.debug "od pricing update #{api_name} price #{price} for #{region_name}/#{operating_system}"
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
- logger.warn "Unknown network throughput for instance type #{api_name}"
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
- logger.warn "Unknown network throughput for #{throughput}"
141
+ $stderr.puts "Unknown network throughput for #{throughput}"
142
142
  end
143
143
  network_mbps
144
144
  end
@@ -13,7 +13,6 @@ module AwsPricing
13
13
  end
14
14
 
15
15
  protected
16
-
17
16
  @@OS_TYPES = [ 'linux', 'rhel', 'sles', 'mswin',
18
17
  'mswinSQL', 'mswinSQLWeb', 'mswinSQLEnterprise',
19
18
  'linuxSQL', 'linuxSQLWeb', 'linuxSQLEnterprise',
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.119' # [major,minor.fix]: adding f1.4xlarge instances
11
+ VERSION = '0.1.120' # [major,minor.fix]: adding osaka region
12
12
  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.119
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 00:00:00.000000000 Z
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: