ruote-amqp 2.1.5 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{History.txt → CHANGELOG.txt} +18 -4
- data/CREDITS.txt +29 -0
- data/README.rdoc +6 -6
- data/Rakefile +101 -50
- data/TODO.txt +7 -3
- data/lib/ruote-amqp.rb +8 -3
- data/lib/ruote-amqp/launchitem_listener.rb +10 -76
- data/lib/ruote-amqp/participant.rb +154 -99
- data/lib/ruote-amqp/receiver.rb +147 -0
- data/lib/ruote-amqp/version.rb +6 -0
- data/lib/ruote-amqp/workitem_listener.rb +5 -77
- data/ruote-amqp.gemspec +24 -75
- data/spec/launchitem_listener_spec.rb +49 -11
- data/spec/participant_spec.rb +71 -50
- data/spec/receiver_spec.rb +126 -0
- data/spec/ruote_amqp_spec.rb +9 -3
- data/spec/spec_helper.rb +18 -18
- data/spec/support/ruote_helpers.rb +29 -0
- data/{lib/spec → spec/support}/ruote_matchers.rb +14 -9
- data/spec/workitem_listener_spec.rb +30 -15
- metadata +90 -64
- data/.gitignore +0 -6
- data/Manifest.txt +0 -24
- data/lib/spec/ruote.rb +0 -5
- data/lib/spec/ruote_example_group.rb +0 -8
- data/lib/spec/ruote_helpers.rb +0 -27
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/spec/spec.opts +0 -1
data/Manifest.txt
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
PostInstall.txt
|
4
|
-
README.rdoc
|
5
|
-
Rakefile
|
6
|
-
TODO.txt
|
7
|
-
lib/ruote-amqp.rb
|
8
|
-
lib/ruote-amqp/launchitem_listener.rb
|
9
|
-
lib/ruote-amqp/workitem_listener.rb
|
10
|
-
lib/ruote-amqp/participant.rb
|
11
|
-
lib/spec/ruote.rb
|
12
|
-
lib/spec/ruote_example_group.rb
|
13
|
-
lib/spec/ruote_helpers.rb
|
14
|
-
lib/spec/ruote_matchers.rb
|
15
|
-
script/console
|
16
|
-
script/destroy
|
17
|
-
script/generate
|
18
|
-
spec/launchitem_listener_spec.rb
|
19
|
-
spec/workitem_listener_spec.rb
|
20
|
-
spec/participant_spec.rb
|
21
|
-
spec/ruote_amqp_spec.rb
|
22
|
-
spec/spec.opts
|
23
|
-
spec/spec_helper.rb
|
24
|
-
tasks/rspec.rake
|
data/lib/spec/ruote.rb
DELETED
data/lib/spec/ruote_helpers.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
|
2
|
-
module RuoteSpecHelpers
|
3
|
-
|
4
|
-
def purge_engine
|
5
|
-
|
6
|
-
#@engine.context.values.each do |s|
|
7
|
-
# s.purge if s.respond_to?(:purge)
|
8
|
-
#end
|
9
|
-
end
|
10
|
-
|
11
|
-
def run_definition( pdef )
|
12
|
-
|
13
|
-
wfid = @engine.launch( pdef )
|
14
|
-
|
15
|
-
@engine.context.logger.wait_for( wfid )
|
16
|
-
|
17
|
-
@engine.should_not have_errors
|
18
|
-
@engine.should_not have_remaining_expressions
|
19
|
-
|
20
|
-
purge_engine
|
21
|
-
end
|
22
|
-
|
23
|
-
def noisy( on = true )
|
24
|
-
@engine.context.logger.noisy = on
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/ruote-amqp.rb'}"
|
9
|
-
puts "Loading ruote-amqp gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|