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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDdiNmY0NmY1YWI4Y2ZiYjcyMTcyN2E4MDRiMjdhZWU0ZmQ2NzYzYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MGNkODYxMGRjMGVjYWI5NTI0OTMzNjVkMmZlMjY1ZjE5MGM1NDExMA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
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
@@ -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
|
},
|
@@ -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.
|
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-
|
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
|
-
-
|
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
|
-
-
|
68
|
+
- --title
|
68
69
|
- amazon-pricing documentation
|
69
|
-
-
|
70
|
-
-
|
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: []
|