heroku-scalr 0.2.0 → 0.2.1
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.
- data/Gemfile.lock +4 -4
- data/heroku-scalr.gemspec +1 -1
- data/lib/heroku/scalr/app.rb +5 -0
- data/lib/heroku/scalr/runner.rb +1 -0
- data/spec/heroku/scalr/app_spec.rb +6 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heroku-scalr (0.1
|
4
|
+
heroku-scalr (0.2.1)
|
5
5
|
heroku-api (~> 0.3.8)
|
6
6
|
timers
|
7
7
|
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
addressable (2.3.4)
|
12
12
|
crack (0.3.2)
|
13
13
|
diff-lcs (1.2.4)
|
14
|
-
excon (0.
|
15
|
-
heroku-api (0.3.
|
16
|
-
excon (~> 0.
|
14
|
+
excon (0.21.0)
|
15
|
+
heroku-api (0.3.10)
|
16
|
+
excon (~> 0.21.0)
|
17
17
|
rake (10.0.4)
|
18
18
|
rspec (2.13.0)
|
19
19
|
rspec-core (~> 2.13.0)
|
data/heroku-scalr.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.name = File.basename(__FILE__, '.gemspec')
|
8
8
|
s.summary = "Watch and scale your dynos!"
|
9
9
|
s.description = "Issues recurring 'pings' to your Heroku apps and scales dynos up or down depending on pre-defined rules"
|
10
|
-
s.version = "0.2.
|
10
|
+
s.version = "0.2.1"
|
11
11
|
|
12
12
|
s.authors = ["Black Square Media"]
|
13
13
|
s.email = "info@blacksquaremedia.com"
|
data/lib/heroku/scalr/app.rb
CHANGED
data/lib/heroku/scalr/runner.rb
CHANGED
@@ -53,6 +53,12 @@ describe Heroku::Scalr::App do
|
|
53
53
|
subject.scale!.should be_nil
|
54
54
|
end
|
55
55
|
|
56
|
+
it "should log errors" do
|
57
|
+
subject.api.should_receive(:get_app).and_raise(RuntimeError, "API Error")
|
58
|
+
Heroku::Scalr.logger.should_receive(:error)
|
59
|
+
subject.scale!.should be_nil
|
60
|
+
end
|
61
|
+
|
56
62
|
it "should determine scale through metric" do
|
57
63
|
subject.metric.should_receive(:by).and_return(-1)
|
58
64
|
subject.scale!.should == 1
|