qwirk_active_mq_adapter 0.1.1-java → 0.2.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Qwirk Changelog
2
2
  =====================
3
3
 
4
+ 0.2.0
5
+ -----
6
+
7
+ - Various fixes and improving of the shutdown logic.
8
+
4
9
  0.1.1
5
10
  -----
6
11
 
@@ -3,6 +3,11 @@ module Qwirk
3
3
  module Adapter
4
4
  module ActiveMQ
5
5
  class WorkerConfig < JMS::WorkerConfig
6
+ def self.in_process?(config)
7
+ broker_url = config[:broker_url]
8
+ return !!(broker_url && broker_url.start_with?('vm://'))
9
+ end
10
+
6
11
  def init
7
12
  if self.topic_name
8
13
  self.queue_name = "Consumer.#{self.name}.VirtualTopic.#{topic_name}"
@@ -2,8 +2,6 @@ require 'activemq'
2
2
  require 'qwirk/adapter/active_mq/publisher'
3
3
  require 'qwirk/adapter/active_mq/worker_config'
4
4
 
5
- puts 'loading active_mq'
6
-
7
5
  ::Qwirk.register_adapter(:active_mq, ::Qwirk::Adapter::ActiveMQ::Publisher, ::Qwirk::Adapter::ActiveMQ::WorkerConfig) do |config|
8
6
  ::Qwirk::Adapter::JMS::Connection.new(config)
9
7
  end
metadata CHANGED
@@ -2,57 +2,57 @@
2
2
  name: qwirk_active_mq_adapter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.2.0
6
6
  platform: java
7
7
  authors:
8
8
  - Brad Pardee
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-31 00:00:00.000000000Z
12
+ date: 2012-09-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: qwirk_jms_adapter
16
- version_requirements: &4248 !ruby/object:Gem::Requirement
16
+ version_requirements: &4260 !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 0.1.0
20
+ version: 0.2.0
21
21
  none: false
22
- requirement: *4248
22
+ requirement: *4260
23
23
  prerelease: false
24
24
  type: :runtime
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jruby-activemq
27
- version_requirements: &4266 !ruby/object:Gem::Requirement
27
+ version_requirements: &4278 !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ! '>='
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0'
32
32
  none: false
33
- requirement: *4266
33
+ requirement: *4278
34
34
  prerelease: false
35
35
  type: :runtime
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- version_requirements: &4282 !ruby/object:Gem::Requirement
38
+ version_requirements: &4294 !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  none: false
44
- requirement: *4282
44
+ requirement: *4294
45
45
  prerelease: false
46
46
  type: :development
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- version_requirements: &4300 !ruby/object:Gem::Requirement
49
+ version_requirements: &4312 !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  none: false
55
- requirement: *4300
55
+ requirement: *4312
56
56
  prerelease: false
57
57
  type: :development
58
58
  description: Provides an ActiveMQ adapter as a communication interface for the qwirk library