save-your-dosh 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ private
28
28
  # a little wrapper to avoid problems with setting/getting
29
29
  # a wrong thing
30
30
  def mangle!(what, &block)
31
- qty = @heroku.get_app(@config.heroku['app_id']).body[0][what.to_s]
31
+ qty = @heroku.get_app(@config.heroku['app_id']).body[what.to_s]
32
32
  new_qty = yield(qty)
33
33
 
34
34
  min_qty = @config.send(what)['min']
@@ -22,7 +22,7 @@ describe SaveYourDosh::Mangler do
22
22
  before do
23
23
  @heroku.should_receive(:get_app).
24
24
  with(@config.heroku['app_id']).
25
- and_return(Struct.new(:body).new([{'dynos' => 2, 'workers' => 1}]))
25
+ and_return(Struct.new(:body).new({'dynos' => 2, 'workers' => 1}))
26
26
 
27
27
  SaveYourDosh::NewRelic.should_receive(:get_dynos_load).
28
28
  and_return(40)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: save-your-dosh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-16 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku-api