qusion 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/qusion.rb +1 -1
- data/lib/qusion/version.rb +1 -1
- data/qusion.gemspec +2 -3
- data/spec/unit/qusion_spec.rb +4 -4
- metadata +41 -60
data/README.md
CHANGED
@@ -73,7 +73,7 @@ And that's it! This will set up AMQP for any ruby app server (tested on
|
|
73
73
|
mongrel, thin, and passenger). Now, you can use all of AMQP's functionality as
|
74
74
|
normal. In your controllers or models, you might have:
|
75
75
|
|
76
|
-
|
76
|
+
AMQP::Channel.new.queue("my-work-queue").publish("do work, son!")
|
77
77
|
|
78
78
|
and it should just work.
|
79
79
|
|
data/lib/qusion.rb
CHANGED
data/lib/qusion/version.rb
CHANGED
data/qusion.gemspec
CHANGED
@@ -25,8 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.extra_rdoc_files = ["LICENSE", "README.md"]
|
26
26
|
|
27
27
|
#Dependencies
|
28
|
-
s.add_dependency "amqp", "
|
29
|
-
s.
|
30
|
-
s.add_development_dependency "cucumber", ">= 0.9.4"
|
28
|
+
s.add_dependency "amqp", "~> 0.8.0"
|
29
|
+
s.add_development_dependency "cucumber", "~> 0.9.4"
|
31
30
|
s.add_development_dependency "rspec", "~> 1.3.0"
|
32
31
|
end
|
data/spec/unit/qusion_spec.rb
CHANGED
@@ -43,9 +43,9 @@ describe Qusion, 'amqp startup' do
|
|
43
43
|
forked = mock("starting_worker_process_callback_obj")
|
44
44
|
::PhusionPassenger.should_receive(:on_event).with(:starting_worker_process).and_yield(forked)
|
45
45
|
EM.should_receive(:reactor_running?).exactly(3).times.and_return(true)
|
46
|
-
amqp_conn = mock('
|
46
|
+
amqp_conn = mock('amqp_connection')
|
47
47
|
amqp_conn.should_receive(:connected?).and_return(false)
|
48
|
-
AMQP.should_receive(:
|
48
|
+
AMQP.should_receive(:connection).any_number_of_times.and_return(amqp_conn)
|
49
49
|
EM.should_receive(:stop)
|
50
50
|
|
51
51
|
block = proc { nil }
|
@@ -88,9 +88,9 @@ describe Qusion, 'amqp startup' do
|
|
88
88
|
|
89
89
|
it "should be ready to dispatch when the reactor is running and amqp is connected" do
|
90
90
|
EM.should_receive(:reactor_running?).and_return(true)
|
91
|
-
amqp_conn = mock('
|
91
|
+
amqp_conn = mock('amqp_connection')
|
92
92
|
amqp_conn.should_receive(:connected?).and_return(true)
|
93
|
-
AMQP.should_receive(:
|
93
|
+
AMQP.should_receive(:connection).any_number_of_times.and_return(amqp_conn)
|
94
94
|
Qusion.ready_to_dispatch?.should == true
|
95
95
|
end
|
96
96
|
|
metadata
CHANGED
@@ -1,74 +1,59 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: qusion
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.9
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Dan DeLeo
|
9
9
|
- James Tucker
|
10
10
|
- Christopher R. Murphy
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
dependencies:
|
18
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2011-11-28 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
19
17
|
name: amqp
|
20
|
-
|
21
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: &2160872720 !ruby/object:Gem::Requirement
|
22
19
|
none: false
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version:
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.8.0
|
27
24
|
type: :runtime
|
28
|
-
version_requirements: *id001
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: eventmachine
|
31
25
|
prerelease: false
|
32
|
-
|
33
|
-
|
34
|
-
requirements:
|
35
|
-
- - ">="
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: "0.12"
|
38
|
-
type: :runtime
|
39
|
-
version_requirements: *id002
|
40
|
-
- !ruby/object:Gem::Dependency
|
26
|
+
version_requirements: *2160872720
|
27
|
+
- !ruby/object:Gem::Dependency
|
41
28
|
name: cucumber
|
42
|
-
|
43
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
29
|
+
requirement: &2160872220 !ruby/object:Gem::Requirement
|
44
30
|
none: false
|
45
|
-
requirements:
|
46
|
-
- -
|
47
|
-
- !ruby/object:Gem::Version
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
48
34
|
version: 0.9.4
|
49
35
|
type: :development
|
50
|
-
version_requirements: *id003
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: rspec
|
53
36
|
prerelease: false
|
54
|
-
|
37
|
+
version_requirements: *2160872220
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rspec
|
40
|
+
requirement: &2160871720 !ruby/object:Gem::Requirement
|
55
41
|
none: false
|
56
|
-
requirements:
|
42
|
+
requirements:
|
57
43
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
44
|
+
- !ruby/object:Gem::Version
|
59
45
|
version: 1.3.0
|
60
46
|
type: :development
|
61
|
-
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *2160871720
|
62
49
|
description: Makes AMQP work with Ruby on Rails with no fuss.
|
63
50
|
email: chmurph2+git@gmail.com
|
64
51
|
executables: []
|
65
|
-
|
66
52
|
extensions: []
|
67
|
-
|
68
|
-
extra_rdoc_files:
|
53
|
+
extra_rdoc_files:
|
69
54
|
- LICENSE
|
70
55
|
- README.md
|
71
|
-
files:
|
56
|
+
files:
|
72
57
|
- .gemtest
|
73
58
|
- .gitignore
|
74
59
|
- Gemfile
|
@@ -88,35 +73,31 @@ files:
|
|
88
73
|
- spec/unit/amqp_config_spec.rb
|
89
74
|
- spec/unit/channel_pool_spec.rb
|
90
75
|
- spec/unit/qusion_spec.rb
|
91
|
-
has_rdoc: true
|
92
76
|
homepage: https://github.com/customink/qusion
|
93
77
|
licenses: []
|
94
|
-
|
95
78
|
post_install_message:
|
96
79
|
rdoc_options: []
|
97
|
-
|
98
|
-
require_paths:
|
80
|
+
require_paths:
|
99
81
|
- lib
|
100
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
83
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version:
|
106
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
89
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
112
94
|
requirements: []
|
113
|
-
|
114
95
|
rubyforge_project: qusion
|
115
|
-
rubygems_version: 1.
|
96
|
+
rubygems_version: 1.8.10
|
116
97
|
signing_key:
|
117
98
|
specification_version: 3
|
118
99
|
summary: Makes AMQP work with Ruby on Rails with no fuss.
|
119
|
-
test_files:
|
100
|
+
test_files:
|
120
101
|
- spec/fixtures/framework-amqp.yml
|
121
102
|
- spec/fixtures/hardcoded-amqp.yml
|
122
103
|
- spec/spec.opts
|