dynobattery 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
4
4
  require 'net/http'
5
5
  require 'heroku'
6
6
 
7
- Echoe.new('dynobattery', '0.1.4') do |p|
7
+ Echoe.new('dynobattery', '0.1.5') do |p|
8
8
  p.description = "Submit request operations for dyno calculations on Heroku"
9
9
  p.url = "http://github.com/fedesoria/dynobattery"
10
10
  p.author = "Federico Soria"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dynobattery}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Federico Soria"]
@@ -35,27 +35,22 @@ class DynoBattery
35
35
 
36
36
 
37
37
 
38
- # deprecated for env["HTTP_X_HEROKU_DYNOS_IN_USE"]
39
- def get_dynos
40
- setup_heroku_client
41
- @heroku_app = @heroku.info(DYNO_DOMAIN)
42
- end
38
+
43
39
 
44
40
 
45
41
  def add_dyno
46
42
  setup_heroku_client
47
- get_dynos
48
43
  @heroku.set_dynos(@heroku_app[:name],@heroku_app[:dynos] + 1)
49
44
  end
50
45
 
51
46
  def remove_dyno
52
47
  setup_heroku_client
53
- get_dynos
54
48
  @heroku.set_dynos(@heroku_app[:name],@heroku_app[:dynos] - 1)
55
49
  end
56
50
 
57
51
  def setup_heroku_client
58
52
  @heroku = Heroku::Client.new(DYNO_USER, DYNO_PASSWORD)
53
+ @heroku_app = @heroku.info(DYNO_DOMAIN)
59
54
  end
60
55
 
61
56
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Federico Soria