activemessaging 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,12 @@ source "http://rubygems.org"
4
4
  # pulls in this group, Jeweler does not include it when consulting the
5
5
  # Gemfile for dependencies.
6
6
  # The short syntax isn't used because the appraisal gem does not support it.
7
- gem 'reliable-msg', '~>1.1', :group => :test, :platform => :ruby if RUBY_VERSION < '1.9'
7
+ if RUBY_VERSION < '1.9'
8
+ gem 'reliable-msg', '~>1.1', :group => :test, :platform => :ruby
9
+ else
10
+ gem 'celluloid', '~>0.12', :group => :test, :platform => :ruby
11
+ end
12
+
8
13
  gem 'jruby-activemq', :group => :test, :platform => :jruby
9
14
  gem 'appraisal', :group => :test
10
15
 
data/Gemfile.lock CHANGED
@@ -1,24 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activemessaging (0.11.0)
4
+ activemessaging (0.12.1)
5
5
  activemessaging
6
6
  activesupport (>= 2.3.11)
7
- celluloid
8
7
 
9
8
  GEM
10
9
  remote: http://rubygems.org/
11
10
  specs:
12
- activesupport (3.2.7)
11
+ activesupport (3.2.8)
13
12
  i18n (~> 0.6)
14
13
  multi_json (~> 1.0)
15
14
  appraisal (0.4.1)
16
15
  bundler
17
16
  rake
18
- celluloid (0.11.1)
17
+ celluloid (0.12.0)
19
18
  timers (>= 1.0.0)
20
19
  git (1.2.5)
21
- i18n (0.6.0)
20
+ i18n (0.6.1)
22
21
  jeweler (1.8.4)
23
22
  bundler (~> 1.0)
24
23
  git (>= 1.2.5)
@@ -41,6 +40,7 @@ PLATFORMS
41
40
  DEPENDENCIES
42
41
  activemessaging!
43
42
  appraisal
43
+ celluloid (~> 0.12)
44
44
  jeweler
45
45
  jruby-activemq
46
46
  stomp
data/Rakefile CHANGED
@@ -37,41 +37,13 @@ begin
37
37
 
38
38
  # added
39
39
  gemspec.add_dependency('activesupport', '>= 2.3.11')
40
- gemspec.add_dependency('celluloid')
41
40
 
42
41
  gemspec.add_development_dependency('jeweler')
43
42
  gemspec.add_development_dependency('stomp')
44
43
  gemspec.add_development_dependency('appraisal')
45
- #gemspec.add_development_dependency('reliable-msg')
46
44
 
47
45
  end
48
46
  Jeweler::GemcutterTasks.new
49
47
  rescue LoadError
50
48
  puts "Jeweler not available. Install it with: gem install jeweler"
51
49
  end
52
-
53
-
54
- # gem_spec = Gem::Specification.new do |s|
55
- # s.name = %q{activemessaging}
56
- # s.version = "0.6.1"
57
- #
58
- # s.specification_version = 2 if s.respond_to? :specification_version=
59
- #
60
- # s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
61
- # s.authors = ["jon.tirsen", "kookster", "olle.jonsson", "sylvain.perez", "anti.god.botherer", 'uwe.kubosch']
62
- # s.date = %q{2008-08-15}
63
- # s.description = %q{ActiveMessaging is an attempt to bring the simplicity and elegance of rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries, etc.}
64
- # s.email = %q{activemessaging-discuss@googlegroups.com}
65
- # s.files = FileList['generators/**/*', 'lib/**/*', 'tasks/**/*', 'Rakefile', 'messaging.rb.example'].to_a
66
- # s.homepage = %q{http://code.google.com/p/activemessaging/}
67
- # s.require_paths = ["lib"]
68
- # s.rubygems_version = %q{1.2.0}
69
- # s.summary = %q{ActiveMessaging is an attempt to bring the simplicity and elegance of rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries, etc.}
70
- # #s.test_files = ["test"]
71
- # #s.autorequire = 'activemessaging'
72
- # s.has_rdoc = true
73
- #
74
- # s.add_dependency(%q<activesupport>, [">= 1.0.0"])
75
- # s.add_dependency(%q<rubigen>, [">= 1.5.2"])
76
- # #s.add_dependency(%q<common-pool-cliffmoon>, [">= 0.0.3"])
77
- # end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "activemessaging"
8
- s.version = "0.12.0"
8
+ s.version = "0.12.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Tirsen", "Andrew Kuklewicz", "Olle Jonsson", "Sylvain Perez", "Cliff Moon", "Uwe Kubosch", "Lance Cooper", "Matt Campbell"]
12
- s.date = "2012-08-07"
12
+ s.date = "2012-09-28"
13
13
  s.description = "ActiveMessaging is an attempt to bring the simplicity and elegance of rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries, etc. Now supporting Rails 3 as of version 0.8.0."
14
14
  s.email = "activemessaging-discuss@googlegroups.com"
15
15
  s.extra_rdoc_files = [
@@ -118,14 +118,12 @@ Gem::Specification.new do |s|
118
118
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
119
119
  s.add_runtime_dependency(%q<activemessaging>, [">= 0"])
120
120
  s.add_runtime_dependency(%q<activesupport>, [">= 2.3.11"])
121
- s.add_runtime_dependency(%q<celluloid>, [">= 0"])
122
121
  s.add_development_dependency(%q<jeweler>, [">= 0"])
123
122
  s.add_development_dependency(%q<stomp>, [">= 0"])
124
123
  s.add_development_dependency(%q<appraisal>, [">= 0"])
125
124
  else
126
125
  s.add_dependency(%q<activemessaging>, [">= 0"])
127
126
  s.add_dependency(%q<activesupport>, [">= 2.3.11"])
128
- s.add_dependency(%q<celluloid>, [">= 0"])
129
127
  s.add_dependency(%q<jeweler>, [">= 0"])
130
128
  s.add_dependency(%q<stomp>, [">= 0"])
131
129
  s.add_dependency(%q<appraisal>, [">= 0"])
@@ -133,7 +131,6 @@ Gem::Specification.new do |s|
133
131
  else
134
132
  s.add_dependency(%q<activemessaging>, [">= 0"])
135
133
  s.add_dependency(%q<activesupport>, [">= 2.3.11"])
136
- s.add_dependency(%q<celluloid>, [">= 0"])
137
134
  s.add_dependency(%q<jeweler>, [">= 0"])
138
135
  s.add_dependency(%q<stomp>, [">= 0"])
139
136
  s.add_dependency(%q<appraisal>, [">= 0"])
@@ -2,9 +2,9 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "reliable-msg", "~>1.1", :group=>:test, :platform=>:ruby
5
+ gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
6
6
  gem "jruby-activemq", :group=>:test, :platform=>:jruby
7
7
  gem "appraisal", :group=>:test
8
8
  gem "activesupport", "~> 2.3.11"
9
9
 
10
- gemspec :path=>"../", :development_group=>:test
10
+ gemspec :development_group=>:test, :path=>"../"
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "reliable-msg", "~>1.1", :group=>:test, :platform=>:ruby
5
+ gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
6
6
  gem "jruby-activemq", :group=>:test, :platform=>:jruby
7
7
  gem "appraisal", :group=>:test
8
8
  gem "activesupport", "~> 3.0.8"
9
9
  gem "i18n"
10
10
 
11
- gemspec :path=>"../", :development_group=>:test
11
+ gemspec :development_group=>:test, :path=>"../"
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "reliable-msg", "~>1.1", :group=>:test, :platform=>:ruby
5
+ gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
6
6
  gem "jruby-activemq", :group=>:test, :platform=>:jruby
7
7
  gem "appraisal", :group=>:test
8
8
  gem "activesupport", "~> 3.1.2"
9
9
  gem "i18n"
10
10
 
11
- gemspec :path=>"../", :development_group=>:test
11
+ gemspec :development_group=>:test, :path=>"../"
@@ -2,9 +2,9 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "reliable-msg", "~>1.1", :group=>:test, :platform=>:ruby
5
+ gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
6
6
  gem "jruby-activemq", :group=>:test, :platform=>:jruby
7
7
  gem "appraisal", :group=>:test
8
8
  gem "activesupport", "~> 3.2.2"
9
9
 
10
- gemspec :path=>"../", :development_group=>:test
10
+ gemspec :development_group=>:test, :path=>"../"
@@ -28,7 +28,7 @@ module ActiveMessaging
28
28
  @configuration = cfg
29
29
 
30
30
  # create a new stomp connection
31
- connect_headers = {}
31
+ connect_headers = cfg[:connect_headers] || {}
32
32
  connect_headers['client-id'] = cfg[:clientId] if cfg[:clientId]
33
33
  @stomp_connection = ::Stomp::Connection.new(cfg[:login],cfg[:passcode],cfg[:host],cfg[:port].to_i,cfg[:reliable],cfg[:reconnectDelay], connect_headers)
34
34
  end
@@ -8,21 +8,21 @@ module ActiveMessaging
8
8
  def self.included(included_by)
9
9
  class << included_by
10
10
  def publishes_to destination_name
11
- Gateway.find_destination destination_name
11
+ ActiveMessaging::Gateway.find_destination(destination_name)
12
12
  end
13
13
 
14
14
  def receives_from destination_name
15
- Gateway.find_destination destination_name
15
+ ActiveMessaging::Gateway.find_destination(destination_name)
16
16
  end
17
17
  end
18
18
  end
19
19
 
20
20
  def publish destination_name, message, headers={}, timeout=10
21
- Gateway.publish(destination_name, message, self.class, headers, timeout)
21
+ ActiveMessaging::Gateway.publish(destination_name, message, self.class, headers, timeout)
22
22
  end
23
23
 
24
24
  def receive destination_name, headers={}, timeout=10
25
- Gateway.receive(destination_name, self.class, headers, timeout)
25
+ ActiveMessaging::Gateway.receive(destination_name, self.class, headers, timeout)
26
26
  end
27
27
 
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemessaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2012-08-07 00:00:00.000000000 Z
19
+ date: 2012-09-28 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activemessaging
@@ -50,22 +50,6 @@ dependencies:
50
50
  - - ! '>='
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.3.11
53
- - !ruby/object:Gem::Dependency
54
- name: celluloid
55
- requirement: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :runtime
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
53
  - !ruby/object:Gem::Dependency
70
54
  name: jeweler
71
55
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
213
  version: '0'
230
214
  segments:
231
215
  - 0
232
- hash: 115054191085730340
216
+ hash: 2900052431742468498
233
217
  required_rubygems_version: !ruby/object:Gem::Requirement
234
218
  none: false
235
219
  requirements: