amazon-pricing 0.1.22 → 0.1.23

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amazon-pricing (0.1.22)
4
+ amazon-pricing (0.1.23)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -143,6 +143,8 @@ module AwsPricing
143
143
 
144
144
  on_demand = 0
145
145
  reserved = prepay(type_of_instance, term)
146
+ return nil if reserved.nil?
147
+
146
148
  for i in 1..36 do
147
149
  on_demand += ondemand_pph * 24 * 30.4
148
150
  reserved += reserved_pph * 24 * 30.4
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.22'
11
+ VERSION = '0.1.23'
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  segments:
66
66
  - 0
67
- hash: 1817073564314149900
67
+ hash: -4471370739960301886
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: 1817073564314149900
76
+ hash: -4471370739960301886
77
77
  requirements: []
78
78
  rubyforge_project: amazon-pricing
79
79
  rubygems_version: 1.8.25