save-your-dosh 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Save Your Dosh
2
2
 
3
3
  This is a little gem for [heroku](http://heroku.com) that automatically scales
4
- dynos in your heroku based app.
4
+ dynos in your heroku/rails based app.
5
5
 
6
6
  ## Prerequisites
7
7
 
@@ -35,7 +35,7 @@ new relic will kick your ass)
35
35
 
36
36
  ## Configuration
37
37
 
38
- You can mangle with the settings by creating a file like that in your rails app `config/save-your-dosh.yaml`
38
+ You can mangle with the settings by creating a file like that in your rails app `config/save-your-dosh.yml`
39
39
 
40
40
  ```yml
41
41
  dynos:
@@ -48,7 +48,7 @@ dynos:
48
48
  ## How It Works
49
49
 
50
50
  It's pretty simple, every time you kick the `rake save:your:dosh` task via cron or scheduler,
51
- it will make a request to the new relic servers for the data on your application business. If
51
+ it will make a request to the new relic servers for the data on your application busyness. If
52
52
  it goes over the threshold, it will increase the amount of dynos until reaches the max number
53
53
  from the config. Otherwise it will try to switch dynos off until reaches the minimal amount.
54
54
 
@@ -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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-22 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: heroku-api
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.3.7
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.3.7
30
+ - !ruby/object:Gem::Dependency
31
+ name: json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.7.5
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.7.5
14
46
  description: This gem can automatically scale the dynos amount on your heroku app
15
47
  depending on your system busyness
16
48
  email: nemshilov@gmail.com