queueing_rabbit 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/queueing_rabbit/client/amqp.rb +1 -2
- data/lib/queueing_rabbit/version.rb +1 -1
- data/queueing_rabbit.gemspec +2 -2
- data/spec/unit/queueing_rabbit/client/amqp_spec.rb +1 -4
- metadata +9 -26
- data/.rvmrc +0 -48
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZGM2ODNhMTMxNGE4ZWY0MTY1OTE4MzdlODdlOGU1Mzk0MGIxM2I5OQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGM3YjhhYTRhNGZkOWQzZmI0YjQ2MDdjZTg0ODQ0OWNlYjg0YzZjMw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzBiODU5NjAwMDMzN2VjYWRmNzUzNzNjMTE5OGZmMmEzNmM3NGM0ZDU3ZjVi
|
10
|
+
NDE3MzQxNGJhMWNiZWFlODAyMzJmMGRlNGRhYTY2ZmQ1YTNhYjEyZDRhZGZh
|
11
|
+
M2I5MWRmZDc0YjI4Yjk0YjJiOGFlZmYxNmEzYzI3ZmExYWRmMjA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
M2Q4NmQ2MTUwNzM4ZDE2MjkxMGE4NDA4YmI2OTNlMzQ1MzU1OTIzZjA5YjBh
|
14
|
+
OGI1Zjk4NWNiMjQ2OGM2ZDA4MmY4YjJiNWQ2OTY1YjYwMGI3NGEwMWQ5NWU5
|
15
|
+
ODY3MWYzYTA3NjU1NGM3NGQ2ZmZhMGQ1ZjhiYjM4M2Y3YWQzNDI=
|
@@ -107,8 +107,7 @@ module QueueingRabbit
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def open_channel(options = {})
|
110
|
-
|
111
|
-
::AMQP::Channel.new(connection, channel_id, options) do |c, open_ok|
|
110
|
+
::AMQP::Channel.new(connection, nil, options) do |c, open_ok|
|
112
111
|
c.confirm_select if !!options[:use_publisher_confirms]
|
113
112
|
c.on_error(&self.class.callback(:on_channel_error))
|
114
113
|
yield c, open_ok
|
data/queueing_rabbit.gemspec
CHANGED
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
|
18
18
|
gem.rdoc_options = ["--charset=UTF-8"]
|
19
19
|
|
20
|
-
gem.add_dependency "amqp", "~> 1.
|
21
|
-
gem.add_dependency "bunny", "~> 0.
|
20
|
+
gem.add_dependency "amqp", "~> 1.1.0"
|
21
|
+
gem.add_dependency "bunny", "~> 1.0.0"
|
22
22
|
gem.add_dependency "rake", ">= 0"
|
23
23
|
gem.add_dependency "json", ">= 0"
|
24
24
|
|
@@ -181,16 +181,13 @@ describe QueueingRabbit::Client::AMQP do
|
|
181
181
|
end
|
182
182
|
|
183
183
|
describe "#open_channel" do
|
184
|
-
let(:next_channel_id) { mock }
|
185
184
|
let(:options) { {:use_publisher_confirms => true} }
|
186
185
|
let(:channel) { mock }
|
187
186
|
let(:open_ok) { mock }
|
188
187
|
|
189
188
|
before do
|
190
|
-
AMQP::Channel.should_receive(:next_channel_id).
|
191
|
-
and_return(next_channel_id)
|
192
189
|
AMQP::Channel.should_receive(:new).
|
193
|
-
with(connection,
|
190
|
+
with(connection, nil, options).
|
194
191
|
and_yield(channel, open_ok)
|
195
192
|
channel.should_receive(:on_error)
|
196
193
|
channel.should_receive(:confirm_select)
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queueing_rabbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Artem Chistyakov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: amqp
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
19
|
+
version: 1.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
26
|
+
version: 1.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bunny
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
40
|
+
version: 1.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: json
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -94,7 +85,6 @@ extra_rdoc_files:
|
|
94
85
|
- README.md
|
95
86
|
files:
|
96
87
|
- .gitignore
|
97
|
-
- .rvmrc
|
98
88
|
- .travis.yml
|
99
89
|
- Gemfile
|
100
90
|
- LICENSE
|
@@ -154,34 +144,27 @@ files:
|
|
154
144
|
- spec/unit/queueing_rabbit_spec.rb
|
155
145
|
homepage: https://github.com/temochka/queueing_rabbit
|
156
146
|
licenses: []
|
147
|
+
metadata: {}
|
157
148
|
post_install_message:
|
158
149
|
rdoc_options:
|
159
150
|
- --charset=UTF-8
|
160
151
|
require_paths:
|
161
152
|
- lib
|
162
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
154
|
requirements:
|
165
155
|
- - ! '>='
|
166
156
|
- !ruby/object:Gem::Version
|
167
157
|
version: '0'
|
168
|
-
segments:
|
169
|
-
- 0
|
170
|
-
hash: 3868838367172199305
|
171
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
159
|
requirements:
|
174
160
|
- - ! '>='
|
175
161
|
- !ruby/object:Gem::Version
|
176
162
|
version: '0'
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
hash: 3868838367172199305
|
180
163
|
requirements: []
|
181
164
|
rubyforge_project:
|
182
|
-
rubygems_version: 1.
|
165
|
+
rubygems_version: 2.1.11
|
183
166
|
signing_key:
|
184
|
-
specification_version:
|
167
|
+
specification_version: 4
|
185
168
|
summary: QueueingRabbit is an AMQP-based queueing system
|
186
169
|
test_files:
|
187
170
|
- spec/integration/asynchronous_publishing_and_consuming_spec.rb
|
data/.rvmrc
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
-
# development environment upon cd'ing into the directory
|
5
|
-
|
6
|
-
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
-
# Only full ruby name is supported here, for short names use:
|
8
|
-
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
-
environment_id="ruby-1.9.3-p392@queueing_rabbit"
|
10
|
-
|
11
|
-
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
-
# rvmrc_rvm_version="1.18.18 (latest)" # 1.10.1 seams as a safe start
|
13
|
-
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
-
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
-
# return 1
|
16
|
-
# }
|
17
|
-
|
18
|
-
# First we attempt to load the desired environment directly from the environment
|
19
|
-
# file. This is very fast and efficient compared to running through the entire
|
20
|
-
# CLI and selector. If you want feedback on which environment was used then
|
21
|
-
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
-
then
|
25
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
-
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
-
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
-
else
|
29
|
-
# If the environment file has not yet been created, use the RVM CLI to select.
|
30
|
-
rvm --create "$environment_id" || {
|
31
|
-
echo "Failed to create RVM environment '${environment_id}'."
|
32
|
-
return 1
|
33
|
-
}
|
34
|
-
fi
|
35
|
-
|
36
|
-
# If you use bundler, this might be useful to you:
|
37
|
-
# if [[ -s Gemfile ]] && {
|
38
|
-
# ! builtin command -v bundle >/dev/null ||
|
39
|
-
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
|
40
|
-
# }
|
41
|
-
# then
|
42
|
-
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
43
|
-
# gem install bundler
|
44
|
-
# fi
|
45
|
-
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
46
|
-
# then
|
47
|
-
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
|
48
|
-
# fi
|