alicorn 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt ADDED
@@ -0,0 +1,4 @@
1
+ === 0.3.0 / 2012-05-29
2
+
3
+ * Initial changelog documentation
4
+ * First feature-complete release
data/alicorn.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "alicorn"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Somers"]
12
- s.date = "2012-05-29"
12
+ s.date = "2012-06-08"
13
13
  s.description = "Highly configurable dumb auto-scaler for managing unicorn web servers"
14
14
  s.email = "somers.ben@gmail.com"
15
15
  s.executables = ["alicorn", "alicorn-profiler"]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
+ "CHANGELOG.txt",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "LICENSE.txt",
@@ -43,7 +43,7 @@ module Alicorn
43
43
  end
44
44
  rescue StandardError => e
45
45
  logger.error "exception occurred: #{e.class}\n\n#{e.message}"
46
- raise e unless e.is_a?(AmbiguousMasterError) # AmbiguousMasters are fine, usually just indicate a restart
46
+ raise e unless e.is_a?(AmbiguousMasterError) or e.is_a?(NoMasterError) # Master-related errors are fine, usually just indicate a start or restart
47
47
  end
48
48
 
49
49
  def auto_scale(data, worker_count)
@@ -81,7 +81,7 @@ module Alicorn
81
81
  protected
82
82
 
83
83
  def collect_data
84
- logger.debug "Sampling #{sample_count} times"
84
+ logger.debug "Sampling #{sample_count} times at #{delay} second intervals"
85
85
  calling, writing, active, queued = DataSet.new, DataSet.new, DataSet.new, DataSet.new
86
86
  sample_count.times do
87
87
  raindrops = get_raindrops(raindrops_url)
@@ -1,3 +1,3 @@
1
1
  module Alicorn
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/test/test_scaler.rb CHANGED
@@ -40,11 +40,9 @@ class TestScaler < Test::Unit::TestCase
40
40
  @scaler.stubs(:grep_process_list).returns(plist)
41
41
  end
42
42
 
43
- should "raise an error" do
44
- exception = assert_raise(Alicorn::NoMasterError) do
45
- @scaler.scale
46
- end
47
- assert_match /No unicorn master processes/, exception.message
43
+ should "die quietly" do
44
+ @scaler.expects(:auto_scale).never
45
+ @scaler.scale
48
46
  end
49
47
  end
50
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-30 00:00:00.000000000 Z
12
+ date: 2012-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb
16
- requirement: &70222522833040 !ruby/object:Gem::Requirement
16
+ requirement: &70277797703480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70222522833040
24
+ version_requirements: *70277797703480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &70222522832560 !ruby/object:Gem::Requirement
27
+ requirement: &70277797702640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.1
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70222522832560
35
+ version_requirements: *70277797702640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &70222522832080 !ruby/object:Gem::Requirement
38
+ requirement: &70277797701780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.12'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70222522832080
46
+ version_requirements: *70277797701780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70222522831600 !ruby/object:Gem::Requirement
49
+ requirement: &70277797701060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.3
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70222522831600
57
+ version_requirements: *70277797701060
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70222522831120 !ruby/object:Gem::Requirement
60
+ requirement: &70277797700120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.8.3
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70222522831120
68
+ version_requirements: *70277797700120
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
- requirement: &70222522830640 !ruby/object:Gem::Requirement
71
+ requirement: &70277797715880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.11.4
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70222522830640
79
+ version_requirements: *70277797715880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &70222522830160 !ruby/object:Gem::Requirement
82
+ requirement: &70277797715200 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 0.6.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70222522830160
90
+ version_requirements: *70277797715200
91
91
  description: Highly configurable dumb auto-scaler for managing unicorn web servers
92
92
  email: somers.ben@gmail.com
93
93
  executables:
@@ -99,6 +99,7 @@ extra_rdoc_files:
99
99
  - README.rdoc
100
100
  files:
101
101
  - .document
102
+ - CHANGELOG.txt
102
103
  - Gemfile
103
104
  - Gemfile.lock
104
105
  - LICENSE.txt
@@ -135,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
136
  version: '0'
136
137
  segments:
137
138
  - 0
138
- hash: -82603868672489802
139
+ hash: 4049117903748411097
139
140
  required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  none: false
141
142
  requirements: