stuffed_bunny 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/HISTORY.md +3 -0
- data/lib/stuffed_bunny/bunny_overrides.rb +6 -3
- data/lib/stuffed_bunny/version.rb +1 -1
- data/spec/spec_helper.rb +1 -3
- data/stuffed_bunny.gemspec +2 -3
- metadata +19 -20
- checksums.yaml +0 -15
data/.gitignore
CHANGED
data/HISTORY.md
ADDED
@@ -36,13 +36,16 @@ module Bunny
|
|
36
36
|
end
|
37
37
|
|
38
38
|
class Exchange
|
39
|
-
attr_accessor :client, :type, :name
|
39
|
+
attr_accessor :client, :type, :name
|
40
40
|
|
41
41
|
def initialize(client, name, options = {})
|
42
42
|
@client, @name = client, name
|
43
|
-
@routed_messages = []
|
44
43
|
@type = options[:type]
|
45
44
|
end
|
45
|
+
|
46
|
+
def routed_messages
|
47
|
+
@routed_messaged ||= []
|
48
|
+
end
|
46
49
|
|
47
50
|
# To facilite testing this adds a Struct containing the data
|
48
51
|
# +message+ and routing +key+ to the +routed_messages+.
|
@@ -60,7 +63,7 @@ module Bunny
|
|
60
63
|
# assert_equal "some message", routed_message.message
|
61
64
|
# assert_equal "some.routing.key", routed_message.key
|
62
65
|
def publish(data, options = {})
|
63
|
-
|
66
|
+
routed_messages << Struct.new(:message, :key).new(data, options[:key])
|
64
67
|
end
|
65
68
|
end
|
66
69
|
|
data/spec/spec_helper.rb
CHANGED
data/stuffed_bunny.gemspec
CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.add_development_dependency 'bunny',
|
21
|
-
gem.add_development_dependency '
|
22
|
-
gem.add_development_dependency 'rake', '10.0.3'
|
20
|
+
gem.add_development_dependency 'bunny', '~> 0.8'
|
21
|
+
gem.add_development_dependency 'rake'
|
23
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stuffed_bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Chris Murphy
|
@@ -9,11 +10,12 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-
|
13
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: bunny
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
20
|
- - ~>
|
19
21
|
- !ruby/object:Gem::Version
|
@@ -21,13 +23,15 @@ dependencies:
|
|
21
23
|
type: :development
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
28
|
- - ~>
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '0.8'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
32
|
+
name: rake
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
36
|
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
@@ -35,24 +39,11 @@ dependencies:
|
|
35
39
|
type: :development
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
44
|
- - ! '>='
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rake
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - '='
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 10.0.3
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - '='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 10.0.3
|
56
47
|
description: Provides stubbing of the Bunny gem.
|
57
48
|
email:
|
58
49
|
- cmurphy@customink.com
|
@@ -62,6 +53,7 @@ extra_rdoc_files: []
|
|
62
53
|
files:
|
63
54
|
- .gitignore
|
64
55
|
- Gemfile
|
56
|
+
- HISTORY.md
|
65
57
|
- LICENSE.txt
|
66
58
|
- README.md
|
67
59
|
- Rakefile
|
@@ -76,26 +68,33 @@ files:
|
|
76
68
|
- stuffed_bunny.gemspec
|
77
69
|
homepage: https://github.com/customink/stuffed_bunny
|
78
70
|
licenses: []
|
79
|
-
metadata: {}
|
80
71
|
post_install_message:
|
81
72
|
rdoc_options: []
|
82
73
|
require_paths:
|
83
74
|
- lib
|
84
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
85
77
|
requirements:
|
86
78
|
- - ! '>='
|
87
79
|
- !ruby/object:Gem::Version
|
88
80
|
version: '0'
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
hash: 1652037308544362369
|
89
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
90
86
|
requirements:
|
91
87
|
- - ! '>='
|
92
88
|
- !ruby/object:Gem::Version
|
93
89
|
version: '0'
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
hash: 1652037308544362369
|
94
93
|
requirements: []
|
95
94
|
rubyforge_project:
|
96
|
-
rubygems_version:
|
95
|
+
rubygems_version: 1.8.23
|
97
96
|
signing_key:
|
98
|
-
specification_version:
|
97
|
+
specification_version: 3
|
99
98
|
summary: Provides stubbing of the Bunny gem.
|
100
99
|
test_files:
|
101
100
|
- spec/bunny_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
ZDk4NWY2MzA1ZDhmZGRjYjljYWRjZjkzNjE2ZGFkYzQ0Y2VhMzcxMQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NDgwMjJmNzA4MmU2YzVhZWM5NWE0MTJmNGQ1YmJkYjY0Yjk0MjI2Zg==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
OTYxYWVkNDA4ZjVlOGY2ZjgyYWY5NTdkZGM3NzZhZmYzNGYwNTNiZjVkOGJm
|
10
|
-
YzhmZDkyNWNkZjEzYTQ3MGM5N2NjODk3NDY2NTg4ZDZlYjA4MGVkNzk4ODhl
|
11
|
-
NmFkMDI4NjAyNDYzMzlhMmZmM2E3YjZhNzM4ODg4OGQwOTJhYmE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzBjMTVkZmIzMmE1YWQ1Njc4MDEwOTY3ZGY3NmRhMzM2NTFiNDE5ODhiMWY2
|
14
|
-
MzRiNjJmYjczYzhhM2EyOTMzNzI2MGZkMTJmNDViYWQ4OWVlNzRiNWM2N2My
|
15
|
-
MjY0ZDdkYmUwNDRmNTA4NjNmNmFhM2Q4OTgwYmY5Y2Y4NzFhMTg=
|