amazon-pricing 0.1.37 → 0.1.38
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.rb +5 -5
- data/lib/amazon-pricing/version.rb +1 -1
- data/test/govcloud_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWUxZTEyZTg2NzNhOGEyZmY5ZjQzMjNkNjVjN2U5NjMzYzY0Mzk5NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDE2MDMyMDg0YjQ1NzRlNzUwYWNkYmQ5ZWI5ODc5MDA0NDE1Y2YyYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWJkODY2YjAxOTM4NWU0ODc2OTI2ODJlMzNlNmEwYzlmYTA3N2UzZmEzNGEw
|
10
|
+
OGRjNzYwY2YwMzQ0NzFjMzc0MDgwNjc4YTE4YzM0YjY4ODkxODFkZDI3ZGJi
|
11
|
+
NTkxY2E1ZDQzOGNiYmJkOTcwZTU0NjVlY2UxOGQwYmUzZTJlMzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTI5NjRjZDI4Y2FiOTM1ZWE4NDNiMDA5ZjNiM2M3ODdhOGVjYjg2MTgwZTc2
|
14
|
+
OGM2ODc3YjA3MDNhZDk4YWQ3MGM2NGYxMzg1M2Y1NWRkZGUyZWVjODIwMTA2
|
15
|
+
ZDE4ZjAxZWQ1ZDMwZmYyMzZlYzI2NWU1YTBiYTExY2VhOWFiM2Q=
|
data/lib/amazon-pricing.rb
CHANGED
@@ -182,12 +182,12 @@ module AwsPricing
|
|
182
182
|
ebs_costs = page.search("//div[@class='text section']//li")
|
183
183
|
@_regions.values.each do |region|
|
184
184
|
region.ebs_price = EbsPrice.new(region)
|
185
|
-
region.ebs_price.preferred_per_gb = get_ebs_price(ebs_costs[
|
186
|
-
region.ebs_price.preferred_per_iops = get_ebs_price(ebs_costs[
|
187
|
-
region.ebs_price.standard_per_gb = get_ebs_price(ebs_costs[
|
188
|
-
region.ebs_price.standard_per_million_io = get_ebs_price(ebs_costs[
|
185
|
+
region.ebs_price.preferred_per_gb = get_ebs_price(ebs_costs[1])
|
186
|
+
region.ebs_price.preferred_per_iops = get_ebs_price(ebs_costs[2])
|
187
|
+
region.ebs_price.standard_per_gb = get_ebs_price(ebs_costs[3])
|
188
|
+
region.ebs_price.standard_per_million_io = get_ebs_price(ebs_costs[4])
|
189
189
|
region.ebs_price.ssd_per_gb = nil
|
190
|
-
region.ebs_price.s3_snaps_per_gb = get_ebs_price(ebs_costs[
|
190
|
+
region.ebs_price.s3_snaps_per_gb = get_ebs_price(ebs_costs[5])
|
191
191
|
end
|
192
192
|
|
193
193
|
end
|
data/test/govcloud_test.rb
CHANGED
@@ -43,7 +43,7 @@ class TestGovCloud < Test::Unit::TestCase
|
|
43
43
|
assert region.ebs_price.standard_per_gb == 0.065
|
44
44
|
assert region.ebs_price.standard_per_million_io == 0.065
|
45
45
|
assert region.ebs_price.preferred_per_gb == 0.15
|
46
|
-
assert region.ebs_price.preferred_per_iops == 0.
|
46
|
+
assert region.ebs_price.preferred_per_iops == 0.078
|
47
47
|
assert region.ebs_price.s3_snaps_per_gb == 0.125
|
48
48
|
end
|
49
49
|
|