amazon-pricing 0.1.74 → 0.1.75
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWU5NmE4N2NiY2I0MDAyMzNkZGIwOGRiNDU4YmIyMzI5NzRkNTRkMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmEzYzg0ZGI2Mzk5NDhjYmFiMWVmNTYzYTQ0MjM2NDQ3MzNmM2E0ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWVjOWQwYzIzZjdkYTY2ZWNmNGZjZGIzMTg0MGUyYjQ4OTgxMjNkOTk1ZDgz
|
10
|
+
NWUzOTBjYWRjYzI1MWU5NjA1YjZmNWNkMjU4NzIwY2Q3MDYzMTc5OWU0ZDUw
|
11
|
+
MmZmMWNkYzQzNzEzZjUxMzcwNDUzN2M0ZjU4ZmEwZTdiMTgxYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzI4N2E1NWNhNGEyZmY1ODgzZjVhYzI5ZjAzMzU1N2M3YjUxNzgzM2JiZTZm
|
14
|
+
MGMxMDYzYmI2ZjhlNTdmODE2NWU2NmQ0MGY0Y2YyYjZmNzFmNWZlM2EzNGU5
|
15
|
+
OWQzNWQ5MjllODQzNjI2Zjc1YzIyZmVmOTk0Njg4NzM1Y2E4NDQ=
|
data/Gemfile.lock
CHANGED
@@ -39,6 +39,11 @@ module AwsPricing
|
|
39
39
|
'aurora_standard' => 'Amazon Aurora',
|
40
40
|
'mariadb_standard' => 'MariaDB',
|
41
41
|
'mariadb_multiaz' => 'MariaDB (Multi-AZ)',
|
42
|
+
|
43
|
+
# Oracle SE2 BYOL prices are copied from Enterprise BYOL prices and not collected
|
44
|
+
# (so no need to add rds-price-list.rb)
|
45
|
+
'oracle_se2_byol' => 'Oracle Database Standard Edition Two (BYOL)',
|
46
|
+
'oracle_se2_byol_multiaz' => 'Oracle Database Standard Edition Two (BYOL Multi-AZ)',
|
42
47
|
}
|
43
48
|
|
44
49
|
@@Display_Name_To_Qualified_Database_Name = @@Database_Name_Lookup.invert
|
@@ -71,6 +76,11 @@ module AwsPricing
|
|
71
76
|
'aurora' => 'aurora_standard',
|
72
77
|
'mariadb' => 'mariadb_standard',
|
73
78
|
'mariadb_multiaz' => 'mariadb_multiaz',
|
79
|
+
|
80
|
+
# Oracle SE2 BYOL prices are copied from Enterprise BYOL prices and not collected
|
81
|
+
# (so no need to add rds-price-list.rb)
|
82
|
+
'oracle-se2(byol)' => 'oracle_se2_byol',
|
83
|
+
'oracle-se2(byol)_multiaz' => 'oracle_se2_byol_multiaz',
|
74
84
|
}
|
75
85
|
|
76
86
|
@@DB_Deploy_Types = {
|
@@ -83,6 +93,9 @@ module AwsPricing
|
|
83
93
|
:sqlserver_ee => [:byol, :byol_multiaz, :standard, :multiaz],
|
84
94
|
:aurora => [:standard],
|
85
95
|
:mariadb => [:standard, :multiaz],
|
96
|
+
|
97
|
+
# oracle_se2 prices are copied, not collected
|
98
|
+
:oracle_se2 => [:byol, :byol_multiaz],
|
86
99
|
}
|
87
100
|
|
88
101
|
def self.display_name(name)
|
@@ -90,7 +103,10 @@ module AwsPricing
|
|
90
103
|
end
|
91
104
|
|
92
105
|
def self.get_database_name
|
93
|
-
|
106
|
+
[:mysql, :postgresql, :oracle_se1, :oracle_se, :oracle_ee, :sqlserver_ex, :sqlserver_web,
|
107
|
+
:sqlserver_se, :sqlserver_ee, :aurora, :mariadb,
|
108
|
+
:oracle_se2 # oracle_se2 prices are copied, not collected
|
109
|
+
]
|
94
110
|
end
|
95
111
|
|
96
112
|
def self.get_available_types(db)
|
@@ -85,6 +85,10 @@ module AwsPricing
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
88
|
+
# Copy prices from oracle_se to oracle_se2
|
89
|
+
if database_type == :oracle_se && is_byol
|
90
|
+
update_pricing :oracle_se2, type_of_instance, json, is_multi_az, is_byol
|
91
|
+
end
|
88
92
|
end
|
89
93
|
|
90
94
|
def update_pricing_new(database_type, type_of_instance, prices, term = nil, is_multi_az, is_byol)
|
@@ -120,6 +124,10 @@ module AwsPricing
|
|
120
124
|
# Do nothing for other names
|
121
125
|
end
|
122
126
|
end
|
127
|
+
# Copy prices from oracle_se to oracle_se2
|
128
|
+
if database_type == :oracle_se && is_byol
|
129
|
+
update_pricing_new :oracle_se2, type_of_instance, prices, term, is_multi_az, is_byol
|
130
|
+
end
|
123
131
|
end
|
124
132
|
|
125
133
|
def update_pricing2(database_type, type_of_instance, is_multi_az, is_byol, ondemand_pph = nil, year1_prepay = nil, year3_prepay = nil, year1_pph = nil, year3_pph = nil)
|
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe AwsPricing::ElastiCachePriceList do
|
4
|
-
|
4
|
+
# When new regions are introduced and elasticache prices are not available
|
5
|
+
# in the new regions yet, add the new regions to NEW_REGIONS.
|
6
|
+
NEW_REGIONS = []
|
5
7
|
before(:all) do
|
6
8
|
@pricing = AwsPricing::ElastiCachePriceList.new
|
7
9
|
@node_types = [:memcached]
|
@@ -68,7 +70,7 @@ describe AwsPricing::ElastiCachePriceList do
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
71
|
-
it "should not yet have valid breakeven months for new
|
73
|
+
it "should not yet have valid breakeven months for new regions" do
|
72
74
|
@pricing.regions.each do |region|
|
73
75
|
next unless NEW_REGIONS.include?(region.name)
|
74
76
|
begin
|
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.75
|
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-
|
11
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby library for retrieving pricing for Amazon Web Services
|
14
14
|
email:
|
@@ -96,3 +96,4 @@ test_files:
|
|
96
96
|
- spec/support/.gitignore
|
97
97
|
- test/ec2_instance_types_test.rb
|
98
98
|
- test/helper.rb
|
99
|
+
has_rdoc:
|