msgr 0.14.1 → 0.14.1.1.b110
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +28 -18
- data/lib/msgr/binding.rb +4 -0
- data/lib/msgr/client.rb +10 -0
- data/lib/msgr/connection.rb +7 -0
- data/msgr.gemspec +2 -0
- metadata +20 -21
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjY4MTk1YjkzNjhhZjVlZjIxYzQxNDliZTU0OWNmZTg0Njk5NTM0NA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
Mjg4MzdlNzQzMWYwN2UzZWMyMmY0NWI3ZWNlOTQyYTg1OTMxOTQ3NA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGI5Y2Q1MTRmY2ExNGJmYzY3N2RjOGZiZjY1NjE0ZWU5ZDNkOWYxMTczZDlk
|
10
|
+
YjdmOGFiMDc4NDc1NzNjMTQ3Yjc4NjBmNDlmNTAxYTdiZTY0N2IwZmYxN2Rl
|
11
|
+
OTg5NzMwYTU2NTE0MjM4MWFkN2Y5ZDc4MGMxZWFlODUxMDdiZWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTNhNzVmNDJiNjBlZDkwZGI0NDkxYjU2MDQ1ZDEzMTkwYzQxOGYzOGYxNDY0
|
14
|
+
ODE5YzkwMjZhZDRlNjU1ODlhMjVlNTM0YTNjMzljOWIzMjZlYjgyYWJlYWMw
|
15
|
+
MGU2ZTg2NjE0N2MzNTdjNjQ4NTgxYmYwNjA5NzM4MWM1ZGVkOGE=
|
data/.travis.yml
CHANGED
@@ -1,26 +1,36 @@
|
|
1
|
-
sudo
|
1
|
+
sudo: false
|
2
2
|
language: ruby
|
3
|
-
bundler_args: --without development
|
3
|
+
bundler_args: "--without development"
|
4
4
|
services:
|
5
|
-
|
5
|
+
- rabbitmq
|
6
6
|
rvm:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
- '2.3.1'
|
8
|
+
- 2.2.5
|
9
|
+
- 2.1.10
|
10
|
+
- '2.0'
|
11
|
+
- jruby
|
12
|
+
- rbx
|
12
13
|
gemfile:
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
- gemfiles/Gemfile.rails-4-2
|
15
|
+
- gemfiles/Gemfile.rails-4-1
|
16
|
+
- gemfiles/Gemfile.rails-4-0
|
16
17
|
env:
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
- BUNNY_VERSION="~> 2.0"
|
19
|
+
- BUNNY_VERSION="~> 1.5"
|
20
|
+
- BUNNY_VERSION="~> 1.4.0"
|
20
21
|
matrix:
|
21
22
|
allow_failures:
|
22
|
-
|
23
|
-
|
23
|
+
- rvm: jruby
|
24
|
+
- rvm: rbx
|
24
25
|
script:
|
25
|
-
|
26
|
-
|
26
|
+
- bundle exec rake spec:msgr
|
27
|
+
- bundle exec rake spec:integration
|
28
|
+
deploy:
|
29
|
+
provider: rubygems
|
30
|
+
api_key:
|
31
|
+
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
|
32
|
+
gem: msgr
|
33
|
+
on:
|
34
|
+
branch: master
|
35
|
+
repo: jgraichen/msgr
|
36
|
+
rvm: 2.3.1
|
data/lib/msgr/binding.rb
CHANGED
data/lib/msgr/client.rb
CHANGED
@@ -71,6 +71,16 @@ module Msgr
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
def purge
|
75
|
+
mutex.synchronize do
|
76
|
+
check_process!
|
77
|
+
|
78
|
+
log(:debug) { "Purge all queues on #{uri}..." }
|
79
|
+
|
80
|
+
connection.purge
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
74
84
|
def publish(payload, opts = {})
|
75
85
|
mutex.synchronize do
|
76
86
|
check_process!
|
data/lib/msgr/connection.rb
CHANGED
@@ -58,6 +58,13 @@ module Msgr
|
|
58
58
|
bindings.each { |binding| binding.delete }
|
59
59
|
end
|
60
60
|
|
61
|
+
def purge
|
62
|
+
return if bindings.empty?
|
63
|
+
log(:debug) { "Purge bindings (#{bindings.size})..." }
|
64
|
+
|
65
|
+
bindings.each(&:purge)
|
66
|
+
end
|
67
|
+
|
61
68
|
def bindings
|
62
69
|
@bindings ||= []
|
63
70
|
end
|
data/msgr.gemspec
CHANGED
metadata
CHANGED
@@ -1,86 +1,86 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.1
|
4
|
+
version: 0.14.1.1.b110
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bunny
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.4'
|
34
|
-
- -
|
34
|
+
- - <
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '3.0'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ! '>='
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '1.4'
|
44
|
-
- -
|
44
|
+
- - <
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: multi_json
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ! '>='
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bundler
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '1.3'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.3'
|
75
|
-
description: 'Msgr: Rails-like Messaging Framework'
|
75
|
+
description: ! 'Msgr: Rails-like Messaging Framework'
|
76
76
|
email:
|
77
77
|
- jg@altimos.de
|
78
78
|
executables: []
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
-
-
|
83
|
-
-
|
82
|
+
- .gitignore
|
83
|
+
- .travis.yml
|
84
84
|
- CHANGELOG.md
|
85
85
|
- Gemfile
|
86
86
|
- Guardfile
|
@@ -173,20 +173,20 @@ require_paths:
|
|
173
173
|
- lib
|
174
174
|
required_ruby_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- -
|
176
|
+
- - ! '>='
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
|
-
- -
|
181
|
+
- - ! '>'
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
183
|
+
version: 1.3.1
|
184
184
|
requirements: []
|
185
185
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.5
|
186
|
+
rubygems_version: 2.4.5
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
|
-
summary: 'Msgr: Rails-like Messaging Framework'
|
189
|
+
summary: ! 'Msgr: Rails-like Messaging Framework'
|
190
190
|
test_files:
|
191
191
|
- spec/fixtures/msgr-routes-test-1.rb
|
192
192
|
- spec/integration/dummy/README.rdoc
|
@@ -245,4 +245,3 @@ test_files:
|
|
245
245
|
- spec/msgr/spec_helper.rb
|
246
246
|
- spec/msgr/support/.keep
|
247
247
|
- spec/support/setup.rb
|
248
|
-
has_rdoc:
|