amazon-pricing 0.1.80 → 0.1.81

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b5ff36ef9d065335f01c797f71e0f94c133403a7
4
- data.tar.gz: ff0dd6b03824b91e55635338252c7b81090a297a
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDdiNmY0NmY1YWI4Y2ZiYjcyMTcyN2E4MDRiMjdhZWU0ZmQ2NzYzYg==
5
+ data.tar.gz: !binary |-
6
+ MGNkODYxMGRjMGVjYWI5NTI0OTMzNjVkMmZlMjY1ZjE5MGM1NDExMA==
5
7
  SHA512:
6
- metadata.gz: 77d7a74737d375018197cb1387193e3eed503d118c0d1178e9cbc1e4000bcdfe4970632060b9fcf9a7702b4542fd457561ecb9f59d4f9ba54749486beaa61b1e
7
- data.tar.gz: 76c4cd522a0438b13de357832d0f7b7250e7a672693740a6b7d854e9fc08b0f82e5332545898d60a7b97d7138b3184f868bb4959f01a516b47fc7c8b1dae3115
8
+ metadata.gz: !binary |-
9
+ NjEwNzAxZDY4NWE3YjYwZmJmMjU1M2IyZTBhOWYxMmJiYTFiZjc0MDk1ZmFk
10
+ Y2IzYjU4NmIyMzUzZjZhMzEwNjY5MzZhNzg1YmU0MWQ0MTljNGMwYjg5YmQ0
11
+ ZTM3ODkwNGJjYjA1MmE0NGM3ZjRmNDI0NDIxOGM1MzEwZTRmOWY=
12
+ data.tar.gz: !binary |-
13
+ MjY1M2RkNDhkY2I0OTE5ZTI0NzEwNmJlNGY5OGM5YWE2NGIwYTQ2ZTE5ODJi
14
+ OWM2MTBlYjNkM2E4ZGU4M2NjZmFmM2EwOGRjOWUzNDQ2MzJiNTUwOGE5OTE1
15
+ OTkxNThkOGI5YzIxYWY5YTliNzJkNjc1YzNmNDc1YTQ0YmE4YWE=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amazon-pricing (0.1.80)
4
+ amazon-pricing (0.1.81)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,7 +14,7 @@ module AwsPricing
14
14
  },
15
15
  'BurstableInstances' => {
16
16
  'CurrentGen' => {
17
- 'T2' => ['t2.micro', 't2.small', 't2.medium', 't2.large']
17
+ 'T2' => ['t2.nano', 't2.micro', 't2.small', 't2.medium', 't2.large']
18
18
  }
19
19
  },
20
20
  'ComputeOptimized' => {
@@ -23,7 +23,7 @@ module AwsPricing
23
23
  'C4' => ['c4.large', 'c4.xlarge', 'c4.2xlarge', 'c4.4xlarge', 'c4.8xlarge']
24
24
  },
25
25
  'PreviousGen' => {
26
- 'C1' => ['c1.medium', 'c1.xlarge'],
26
+ 'C1' => ['c1.medium', 'c1.xlarge', 'cc1.4xlarge'],
27
27
  'C2' => ['cc2.8xlarge']
28
28
  }
29
29
  },
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.80'
11
+ VERSION = '0.1.81'
12
12
  end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+ require 'amazon-pricing/helpers/instance-type'
3
+ require 'amazon-pricing/definitions/ec2-instance-type'
4
+
5
+ describe 'AwsPricing::Helper::InstanceType' do
6
+ let(:dummy_class) { Class.new { include AwsPricing::Helper::InstanceType } }
7
+ let(:helper) {dummy_class.new }
8
+
9
+ context 'family_members' do
10
+
11
+ # get a list of supported instance types, and filter out anything with more than 2 parts to its name (to get
12
+ # rif of alias-y things like cache.m3.large and db.m3.large)
13
+ types = AwsPricing::Ec2InstanceType.instance_eval("@Network_Performance").keys.reject {|k| k =~ /.*\..*\..*/}
14
+
15
+ # test that we can get the family member for each type
16
+ types.each do |type|
17
+ it "should be able to get family members for #{type}" do
18
+ helper.family_members(type).should_not eq(nil)
19
+ end
20
+ end
21
+ end
22
+ 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.80
4
+ version: 0.1.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby library for retrieving pricing for Amazon Web Services
14
14
  email:
@@ -19,7 +19,7 @@ extra_rdoc_files:
19
19
  - LICENSE
20
20
  - README.md
21
21
  files:
22
- - ".gitignore"
22
+ - .gitignore
23
23
  - CHANGELOG.md
24
24
  - Gemfile
25
25
  - Gemfile.lock
@@ -53,6 +53,7 @@ files:
53
53
  - lib/amazon-pricing/version.rb
54
54
  - spec/lib/amazon-pricing/definitions/database-type_spec.rb
55
55
  - spec/lib/amazon-pricing/elasticache_pricing_spec.rb
56
+ - spec/lib/amazon-pricing/helpers/instance-type-spec.rb
56
57
  - spec/lib/amazon-pricing/rds_pricing_spec.rb
57
58
  - spec/spec_helper.rb
58
59
  - spec/support/.gitignore
@@ -64,21 +65,21 @@ licenses:
64
65
  metadata: {}
65
66
  post_install_message:
66
67
  rdoc_options:
67
- - "--title"
68
+ - --title
68
69
  - amazon-pricing documentation
69
- - "--line-numbers"
70
- - "--main"
70
+ - --line-numbers
71
+ - --main
71
72
  - README.md
72
73
  require_paths:
73
74
  - lib
74
75
  required_ruby_version: !ruby/object:Gem::Requirement
75
76
  requirements:
76
- - - ">="
77
+ - - ! '>='
77
78
  - !ruby/object:Gem::Version
78
79
  version: '0'
79
80
  required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  requirements:
81
- - - ">="
82
+ - - ! '>='
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  requirements: []