euston-daemons 1.2.5-java → 1.2.6-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-daemons'
3
- s.version = '1.2.5'
3
+ s.version = '1.2.6'
4
4
  s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
5
5
  s.authors = ['Lee Henson', 'Guy Boertje']
6
6
  s.email = ['lee.m.henson@gmail.com', 'guyboertje@gmail.com']
@@ -18,6 +18,12 @@ module Euston
18
18
  # Callable. Receives the daemon environment object to allow the user to perform other related config operations.
19
19
  attr_accessor :post_setup_callback
20
20
 
21
+ # Defaults to the task name with underscores converted to dashes
22
+ attr_accessor :log_filename
23
+
24
+ # Defaults to the task name with underscores converted to dashes
25
+ attr_accessor :pid_filename
26
+
21
27
  # Use verbose output. If this is set to true, the task will print the
22
28
  # executed command to stdout.
23
29
  #
@@ -27,6 +33,7 @@ module Euston
27
33
 
28
34
  def initialize environment, name = :euston_daemon
29
35
  @name = name
36
+ @log_filename = @pid_filename = name.to_s.gsub(/_/, '-')
30
37
  @verbose = true
31
38
  @environment = validate_environment environment
32
39
  @data = { :environment => @environment }
@@ -59,7 +66,7 @@ module Euston
59
66
 
60
67
  raise "Required log path does not exist: #{log_path}" unless Dir.exist? log_path
61
68
 
62
- @data[:logger] = @logger = Logger.new(File.join log_path, "#{@name}.#{@environment}.log")
69
+ @data[:logger] = @logger = Logger.new(File.join log_path, "#{@log_filename}.#{@environment}.log")
63
70
 
64
71
  begin
65
72
  @logger.level = Logger.const_get config[:log_level].upcase.to_sym
@@ -127,7 +134,7 @@ module Euston
127
134
 
128
135
  raise "Required pid path does not exist: #{pid_path}" unless Dir.exist? pid_path
129
136
 
130
- @pid_file = File.join pid_path, "#{@name}.#{@environment}.pid"
137
+ @pid_file = File.join pid_path, "#{@pid_filename}.#{@environment}.pid"
131
138
 
132
139
  if defined? Java
133
140
  @pid = java.lang.management.ManagementFactory.getRuntimeMXBean().getName().split('@').first
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module Daemons
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: euston-daemons
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.5
5
+ version: 1.2.6
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -10,204 +10,205 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-26 00:00:00.000000000Z
13
+ date: 2011-11-01 00:00:00.000000000 +00:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: activemodel
17
- version_requirements: &2058 !ruby/object:Gem::Requirement
18
+ version_requirements: &2258 !ruby/object:Gem::Requirement
18
19
  requirements:
19
20
  - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: 3.0.10
22
23
  none: false
23
- requirement: *2058
24
+ requirement: *2258
24
25
  prerelease: false
25
26
  type: :runtime
26
27
  - !ruby/object:Gem::Dependency
27
28
  name: activesupport
28
- version_requirements: &2076 !ruby/object:Gem::Requirement
29
+ version_requirements: &2276 !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 3.0.10
33
34
  none: false
34
- requirement: *2076
35
+ requirement: *2276
35
36
  prerelease: false
36
37
  type: :runtime
37
38
  - !ruby/object:Gem::Dependency
38
39
  name: erb-yaml
39
- version_requirements: &2092 !ruby/object:Gem::Requirement
40
+ version_requirements: &2292 !ruby/object:Gem::Requirement
40
41
  requirements:
41
42
  - - ~>
42
43
  - !ruby/object:Gem::Version
43
44
  version: 1.0.0
44
45
  none: false
45
- requirement: *2092
46
+ requirement: *2292
46
47
  prerelease: false
47
48
  type: :runtime
48
49
  - !ruby/object:Gem::Dependency
49
50
  name: euston
50
- version_requirements: &2108 !ruby/object:Gem::Requirement
51
+ version_requirements: &2308 !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ~>
53
54
  - !ruby/object:Gem::Version
54
55
  version: 1.2.0
55
56
  none: false
56
- requirement: *2108
57
+ requirement: *2308
57
58
  prerelease: false
58
59
  type: :runtime
59
60
  - !ruby/object:Gem::Dependency
60
61
  name: euston-eventstore
61
- version_requirements: &2124 !ruby/object:Gem::Requirement
62
+ version_requirements: &2324 !ruby/object:Gem::Requirement
62
63
  requirements:
63
64
  - - ~>
64
65
  - !ruby/object:Gem::Version
65
66
  version: 1.2.0
66
67
  none: false
67
- requirement: *2124
68
+ requirement: *2324
68
69
  prerelease: false
69
70
  type: :runtime
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: euston-rabbitmq
72
- version_requirements: &2140 !ruby/object:Gem::Requirement
73
+ version_requirements: &2340 !ruby/object:Gem::Requirement
73
74
  requirements:
74
75
  - - ~>
75
76
  - !ruby/object:Gem::Version
76
77
  version: 1.2.0
77
78
  none: false
78
- requirement: *2140
79
+ requirement: *2340
79
80
  prerelease: false
80
81
  type: :runtime
81
82
  - !ruby/object:Gem::Dependency
82
83
  name: hollywood
83
- version_requirements: &2156 !ruby/object:Gem::Requirement
84
+ version_requirements: &2356 !ruby/object:Gem::Requirement
84
85
  requirements:
85
86
  - - ~>
86
87
  - !ruby/object:Gem::Version
87
88
  version: 1.0.0
88
89
  none: false
89
- requirement: *2156
90
+ requirement: *2356
90
91
  prerelease: false
91
92
  type: :runtime
92
93
  - !ruby/object:Gem::Dependency
93
94
  name: i18n
94
- version_requirements: &2172 !ruby/object:Gem::Requirement
95
+ version_requirements: &2372 !ruby/object:Gem::Requirement
95
96
  requirements:
96
97
  - - ! '>='
97
98
  - !ruby/object:Gem::Version
98
99
  version: 0.5.0
99
100
  none: false
100
- requirement: *2172
101
+ requirement: *2372
101
102
  prerelease: false
102
103
  type: :runtime
103
104
  - !ruby/object:Gem::Dependency
104
105
  name: macaddr
105
- version_requirements: &2188 !ruby/object:Gem::Requirement
106
+ version_requirements: &2388 !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ~>
108
109
  - !ruby/object:Gem::Version
109
110
  version: 1.4.0
110
111
  none: false
111
- requirement: *2188
112
+ requirement: *2388
112
113
  prerelease: false
113
114
  type: :runtime
114
115
  - !ruby/object:Gem::Dependency
115
116
  name: safely
116
- version_requirements: &2204 !ruby/object:Gem::Requirement
117
+ version_requirements: &2404 !ruby/object:Gem::Requirement
117
118
  requirements:
118
119
  - - ~>
119
120
  - !ruby/object:Gem::Version
120
121
  version: 0.3.0
121
122
  none: false
122
- requirement: *2204
123
+ requirement: *2404
123
124
  prerelease: false
124
125
  type: :runtime
125
126
  - !ruby/object:Gem::Dependency
126
127
  name: hot_bunnies
127
- version_requirements: &2220 !ruby/object:Gem::Requirement
128
+ version_requirements: &2420 !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - ~>
130
131
  - !ruby/object:Gem::Version
131
132
  version: 1.3.0.pre1
132
133
  none: false
133
- requirement: *2220
134
+ requirement: *2420
134
135
  prerelease: false
135
136
  type: :runtime
136
137
  - !ruby/object:Gem::Dependency
137
138
  name: jmongo
138
- version_requirements: &2236 !ruby/object:Gem::Requirement
139
+ version_requirements: &2436 !ruby/object:Gem::Requirement
139
140
  requirements:
140
141
  - - ~>
141
142
  - !ruby/object:Gem::Version
142
143
  version: 1.1.0
143
144
  none: false
144
- requirement: *2236
145
+ requirement: *2436
145
146
  prerelease: false
146
147
  type: :runtime
147
148
  - !ruby/object:Gem::Dependency
148
149
  name: awesome_print
149
- version_requirements: &2252 !ruby/object:Gem::Requirement
150
+ version_requirements: &2452 !ruby/object:Gem::Requirement
150
151
  requirements:
151
152
  - - ~>
152
153
  - !ruby/object:Gem::Version
153
154
  version: 0.4.0
154
155
  none: false
155
- requirement: *2252
156
+ requirement: *2452
156
157
  prerelease: false
157
158
  type: :development
158
159
  - !ruby/object:Gem::Dependency
159
160
  name: cranky
160
- version_requirements: &2270 !ruby/object:Gem::Requirement
161
+ version_requirements: &2470 !ruby/object:Gem::Requirement
161
162
  requirements:
162
163
  - - ~>
163
164
  - !ruby/object:Gem::Version
164
165
  version: 0.2.0
165
166
  none: false
166
- requirement: *2270
167
+ requirement: *2470
167
168
  prerelease: false
168
169
  type: :development
169
170
  - !ruby/object:Gem::Dependency
170
171
  name: ffaker
171
- version_requirements: &2286 !ruby/object:Gem::Requirement
172
+ version_requirements: &2486 !ruby/object:Gem::Requirement
172
173
  requirements:
173
174
  - - ~>
174
175
  - !ruby/object:Gem::Version
175
176
  version: 1.8.0
176
177
  none: false
177
- requirement: *2286
178
+ requirement: *2486
178
179
  prerelease: false
179
180
  type: :development
180
181
  - !ruby/object:Gem::Dependency
181
182
  name: fuubar
182
- version_requirements: &2302 !ruby/object:Gem::Requirement
183
+ version_requirements: &2502 !ruby/object:Gem::Requirement
183
184
  requirements:
184
185
  - - ~>
185
186
  - !ruby/object:Gem::Version
186
187
  version: 0.0.0
187
188
  none: false
188
- requirement: *2302
189
+ requirement: *2502
189
190
  prerelease: false
190
191
  type: :development
191
192
  - !ruby/object:Gem::Dependency
192
193
  name: rabbitmqadmin-cli
193
- version_requirements: &2318 !ruby/object:Gem::Requirement
194
+ version_requirements: &2518 !ruby/object:Gem::Requirement
194
195
  requirements:
195
196
  - - ~>
196
197
  - !ruby/object:Gem::Version
197
198
  version: 1.0.2
198
199
  none: false
199
- requirement: *2318
200
+ requirement: *2518
200
201
  prerelease: false
201
202
  type: :development
202
203
  - !ruby/object:Gem::Dependency
203
204
  name: rspec
204
- version_requirements: &2334 !ruby/object:Gem::Requirement
205
+ version_requirements: &2534 !ruby/object:Gem::Requirement
205
206
  requirements:
206
207
  - - ~>
207
208
  - !ruby/object:Gem::Version
208
209
  version: 2.6.0
209
210
  none: false
210
- requirement: *2334
211
+ requirement: *2534
211
212
  prerelease: false
212
213
  type: :development
213
214
  description: ''
@@ -261,6 +262,7 @@ files:
261
262
  - spec/support/sample_model/counter.rb
262
263
  - spec/support/sample_model/counter2.rb
263
264
  - spec/support/stub_retrying_subscription.rb
265
+ has_rdoc: true
264
266
  homepage: http://github.com/leemhenson/euston-daemons
265
267
  licenses: []
266
268
  post_install_message:
@@ -281,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
283
  none: false
282
284
  requirements: []
283
285
  rubyforge_project:
284
- rubygems_version: 1.8.9
286
+ rubygems_version: 1.5.1
285
287
  signing_key:
286
288
  specification_version: 3
287
289
  summary: Message buffer, command processor and event processor daemons for Euston-RabbitMq