trident 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzQ4Zjg1MWU4YjFiMjc2Y2JiZWI0OGJkYzVlODk1NWJlOTdmNmMzNw==
5
- data.tar.gz: !binary |-
6
- NmQwNjFjMmQ4MzM3MGFhMDM3ZDc3ZmJkMjc5MDhjNzAzZjdlNTYxNg==
2
+ SHA1:
3
+ metadata.gz: 368b964b09f272043b062c0220aa86140d69fd90
4
+ data.tar.gz: 83985e089b57fed096b1880f7a854383e4d2233d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDE0ZmY2MGE1ZWY5NjRiODk4ZTc3M2U0MDRmMWU5NzljNGVkNDFlNGNkMzJj
10
- NWY4N2QxN2E2ODI0ODAzZGQzMDdhZTFjZmJjYmY3YTE5NjRjN2E1OWMyMzRi
11
- OTUzOThmMTliMmJjM2U0M2FiZWU4MTkxNTM2MzJhNTU0ODE1OWI=
12
- data.tar.gz: !binary |-
13
- MDk2YWZmYWFlNzMxZjQxOTk4YmMyNjIyMzQ5ZWVlYThiMjRiMWRkZDJkYmNh
14
- MzljZjU0NDliNmQ1ZTYyMjA0ZDZiOGFhMTdkMmU3NDgzYWRjNWZmNTExNjM1
15
- NjlmODkyNzUxMjhiMDU0NWM5ZDg4OGUyNjEwZTUwYmZjN2ZlZmI=
6
+ metadata.gz: 9d87f08599ae67424158561c90292075bd2db709dcff5e49abd5de61b66e66e982c7cb3ff9051dea975bba527d028f674693c7096331ba0774b9b9dcf95a6d6f
7
+ data.tar.gz: 5e4b5003ae49958e13f3a0527f44b7214bb4c0301a261ea51149070da089e9161314dff36965f43f1a4dbf58f3c72a63abe26600e713310c41de14b4abd8c50d
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.2 (11/20/2013)
2
+ ------------------
3
+
4
+ include app name in procline <5b144ce> [Matt Conway]
5
+
1
6
  0.4.1 (11/20/2013)
2
7
  ------------------
3
8
 
@@ -19,7 +19,7 @@ module Trident
19
19
  pools.each do |pool|
20
20
  pool.start
21
21
  end
22
- procline "manager", "managing #{procline_display}"
22
+ procline "manager-#{name}", "managing #{procline_display}"
23
23
  end
24
24
 
25
25
  def stop_forcefully
@@ -33,7 +33,7 @@ module Trident
33
33
  # waits for children to exit
34
34
  def wait
35
35
  logger.info "Waiting for pools to exit"
36
- procline "manager", "waiting #{procline_display}"
36
+ procline "manager-#{name}", "waiting #{procline_display}"
37
37
  pools.each do |pool|
38
38
  pool.wait
39
39
  end
@@ -44,22 +44,17 @@ module Trident
44
44
  pools.each do |pool|
45
45
  pool.update
46
46
  end
47
- procline "manager", "managing #{procline_display}"
47
+ procline "manager-#{name}", "managing #{procline_display}"
48
48
  end
49
49
 
50
50
  private
51
51
 
52
52
  def procline_display
53
- display = ""
54
- pools.each_with_index do |pool, i|
55
- display << "#{pool.name}#{pool.workers.to_a.inspect}"
56
- display << " " if i + 1 < pools.size
57
- end
58
- display
53
+ pools.collect {|pool| "#{pool.name}#{pool.workers.to_a.inspect}" }.join(" ")
59
54
  end
60
55
 
61
56
  def load_handlers
62
- procline "manager", "preforking #{procline_display}"
57
+ procline "manager-#{name}", "preforking #{procline_display}"
63
58
  pools.each do |pool|
64
59
  pool.handler.load
65
60
  end
@@ -68,7 +63,7 @@ module Trident
68
63
  # tells all children to stop using action
69
64
  def stop(action)
70
65
  logger.info "Stopping pools: #{action}"
71
- procline "manager", "stopping #{procline_display}"
66
+ procline "manager-#{name}", "stopping #{procline_display}"
72
67
  pools.each do |pool|
73
68
  pool.stop(action)
74
69
  end
@@ -1,3 +1,3 @@
1
1
  module Trident
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trident
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Conway
@@ -14,28 +14,28 @@ dependencies:
14
14
  name: gem_logger
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: clamp
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
@@ -56,56 +56,56 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest_should
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest-reporters
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Manages pools of forked ruby processes
@@ -156,17 +156,17 @@ require_paths:
156
156
  - lib
157
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ! '>='
159
+ - - '>='
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ! '>='
164
+ - - '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.1.11
169
+ rubygems_version: 2.0.6
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Manages pools of forked ruby processes
@@ -181,3 +181,4 @@ test_files:
181
181
  - test/unit/trident/pool_test.rb
182
182
  - test/unit/trident/signal_handler_test.rb
183
183
  - test/unit/trident/utils_test.rb
184
+ has_rdoc: