modern_times 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/modern_times/jms/worker.rb +3 -10
  3. metadata +8 -19
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -139,21 +139,15 @@ module ModernTimes
139
139
  end
140
140
  end
141
141
  ModernTimes.logger.info {"#{self}::on_message (#{('%.1f' % (@time_track.last_time*1000.0))}ms)"} if ModernTimes::JMS::Connection.log_times?
142
+ ModernTimes.logger.flush if ModernTimes.logger.respond_to?(:flush)
142
143
  end
143
144
  @status = 'Exited'
144
145
  ModernTimes.logger.info "#{self}: Exiting"
145
- # rescue javax.jms.IllegalStateException => e
146
- # #if e.cause.code == Java::org.jms.api.core.JMSException::OBJECT_CLOSED
147
- # # Normal exit
148
- # @status = 'Exited'
149
- # ModernTimes.logger.info "#{self}: Exiting due to possible close: #{e.message}\n\t#{e.backtrace.join("\n\t")}"
150
- # #else
151
- # # @status = "Exited with JMS exception #{e.message}"
152
- # # ModernTImes.logger.error "#{self} JMSException: #{e.message}\n#{e.backtrace.join("\n")}"
153
- # #end
154
146
  rescue Exception => e
155
147
  @status = "Exited with exception #{e.message}"
156
148
  ModernTimes.logger.error "#{self}: Exception, thread terminating: #{e.message}\n\t#{e.backtrace.join("\n\t")}"
149
+ ensure
150
+ ModernTimes.logger.flush if ModernTimes.logger.respond_to?(:flush)
157
151
  end
158
152
 
159
153
  def stop
@@ -191,7 +185,6 @@ module ModernTimes
191
185
  on_exception(e)
192
186
  ensure
193
187
  ModernTimes.logger.debug {"#{self}: Finished processing message"}
194
- ModernTimes.logger.flush if ModernTimes.logger.respond_to?(:flush)
195
188
  end
196
189
 
197
190
  def increment_error_count
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modern_times
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 7
9
- version: 0.3.7
4
+ prerelease:
5
+ version: 0.3.8
10
6
  platform: ruby
11
7
  authors:
12
8
  - Brad Pardee
@@ -15,20 +11,17 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-07-23 00:00:00 -04:00
14
+ date: 2011-09-28 00:00:00 -04:00
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
22
18
  name: jruby-jms
23
19
  prerelease: false
24
20
  requirement: &id001 !ruby/object:Gem::Requirement
21
+ none: false
25
22
  requirements:
26
23
  - - ">="
27
24
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 11
31
- - 2
32
25
  version: 0.11.2
33
26
  type: :runtime
34
27
  version_requirements: *id001
@@ -36,12 +29,10 @@ dependencies:
36
29
  name: jmx
37
30
  prerelease: false
38
31
  requirement: &id002 !ruby/object:Gem::Requirement
32
+ none: false
39
33
  requirements:
40
34
  - - ">="
41
35
  - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 6
45
36
  version: "0.6"
46
37
  type: :runtime
47
38
  version_requirements: *id002
@@ -129,23 +120,21 @@ rdoc_options: []
129
120
  require_paths:
130
121
  - lib
131
122
  required_ruby_version: !ruby/object:Gem::Requirement
123
+ none: false
132
124
  requirements:
133
125
  - - ">="
134
126
  - !ruby/object:Gem::Version
135
- segments:
136
- - 0
137
127
  version: "0"
138
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
+ none: false
139
130
  requirements:
140
131
  - - ">="
141
132
  - !ruby/object:Gem::Version
142
- segments:
143
- - 0
144
133
  version: "0"
145
134
  requirements: []
146
135
 
147
136
  rubyforge_project:
148
- rubygems_version: 1.3.6
137
+ rubygems_version: 1.5.1
149
138
  signing_key:
150
139
  specification_version: 3
151
140
  summary: Asynchronous task library