bunny-publisher 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -5
- data/README.md +20 -0
- data/lib/bunny_publisher.rb +2 -2
- data/lib/bunny_publisher/mandatory.rb +1 -1
- data/lib/bunny_publisher/version.rb +1 -1
- metadata +24 -31
- data/.gitignore +0 -14
- data/.rspec +0 -3
- data/.rubocop.yml +0 -16
- data/.travis.yml +0 -16
- data/Gemfile +0 -10
- data/Rakefile +0 -8
- data/bunny-publisher.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c4e95e3345fc0e7b14bbcc857e1eb068683aa71195f5c4ec12cb9c41cb502b
|
4
|
+
data.tar.gz: f36375e9fa92be24efe78621aba3dfb055d0ef0c3ee9c786f6d9ce66d130e2c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac5bee9428495e5db8850e8b62af15c85ec127724ce34abb6efaa00e4e33c319a3f8f6efc381b9e6f4b334479c9c76602eb2df48a3fb972795a10c7dbfe91d5
|
7
|
+
data.tar.gz: 4faa60314422097b38cb53b4719c89f07ef0ceb18e223fa6ebfe4e1462d080a1f2c4db3379a085725af713a6b98c869a6efe2a77e86c78a60ccb443501ee6c9e
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,30 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
6
6
|
|
7
|
-
|
7
|
+
## [Unreleased](https://github.com/veeqo/bunny-publisher/compare/v0.1.3...HEAD)
|
8
8
|
|
9
|
-
##
|
9
|
+
## [0.1.3](https://github.com/veeqo/bunny-publisher/compare/v0.1.2...v0.1.3) - 2020-09-18
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- [#2](https://github.com/veeqo/bunny-publisher/pull/2) Use appraisal gem to control gem versions of tests matrix
|
13
|
+
- [#3](https://github.com/veeqo/bunny-publisher/pull/3) Require ruby 2.5
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
- [#4](https://github.com/veeqo/bunny-publisher/pull/4) Fix deprecation warnings of ruby 2.7
|
17
|
+
|
18
|
+
|
19
|
+
## [0.1.2](https://github.com/veeqo/bunny-publisher/compare/v0.1.1...v0.1.2) - 2020-07-30
|
20
|
+
|
21
|
+
### Added
|
22
|
+
- [846369a](https://github.com/veeqo/bunny-publisher/commit/846369a76a9ae1c38e0a08844a5c992412eac520) Test mode
|
23
|
+
|
24
|
+
|
25
|
+
## [0.1.1](https://github.com/veeqo/bunny-publisher/compare/v0.1.0...v0.1.1) - 2020-05-21
|
26
|
+
|
27
|
+
### Changed
|
28
|
+
- [fec490c](https://github.com/veeqo/bunny-publisher/commit/fec490c91a7db9d053dba9afde0736a4ce2dde71) Imrove unrouted messages processing
|
29
|
+
|
30
|
+
## [0.1.0](https://github.com/veeqo/bunny-publisher/releases/tag/v0.1.0) - 2020-05-20
|
data/README.md
CHANGED
@@ -137,6 +137,26 @@ describe SomeServiceThatPublishesToRabbitMQ, '#call' do
|
|
137
137
|
end
|
138
138
|
```
|
139
139
|
|
140
|
+
## Testing
|
141
|
+
|
142
|
+
Run rabbitmq server (in separate console):
|
143
|
+
```
|
144
|
+
docker run --rm -p 5672:5672 -p 15672:15672 rabbitmq:3.8-management-alpine
|
145
|
+
```
|
146
|
+
|
147
|
+
Run tests with:
|
148
|
+
|
149
|
+
```sh
|
150
|
+
bundle
|
151
|
+
rake
|
152
|
+
```
|
153
|
+
|
154
|
+
Use [wwtd](https://github.com/grosser/wwtd) to run test matrix:
|
155
|
+
```sh
|
156
|
+
gem install wwtd
|
157
|
+
wwtd
|
158
|
+
```
|
159
|
+
|
140
160
|
## Contributing
|
141
161
|
|
142
162
|
Bug reports and pull requests are welcome on GitHub at https://github.com/veeqo/bunny-publisher.
|
data/lib/bunny_publisher.rb
CHANGED
@@ -30,7 +30,7 @@ module BunnyPublisher
|
|
30
30
|
include ::BunnyPublisher::Test if config.delete_field(:test)
|
31
31
|
end
|
32
32
|
|
33
|
-
@publisher = klass.new(config.to_h)
|
33
|
+
@publisher = klass.new(**config.to_h)
|
34
34
|
end
|
35
35
|
|
36
36
|
def method_missing(method_name, *args)
|
@@ -41,7 +41,7 @@ module BunnyPublisher
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def respond_to_missing?(method_name,
|
44
|
+
def respond_to_missing?(method_name, *args)
|
45
45
|
publisher.respond_to?(method_name) || super
|
46
46
|
end
|
47
47
|
end
|
@@ -16,7 +16,7 @@ module BunnyPublisher
|
|
16
16
|
attr_reader :queue_name, :queue_options
|
17
17
|
|
18
18
|
def initialize(republish_connection: nil, queue: nil, queue_options: {}, timeout_at_exit: 5, **options)
|
19
|
-
super(options)
|
19
|
+
super(**options)
|
20
20
|
|
21
21
|
@queue_name = queue
|
22
22
|
@queue_options = queue_options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Sharshenov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -24,20 +24,34 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: appraisal
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.3.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.3.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
47
|
+
version: '2.0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
54
|
+
version: '2.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: pry-byebug
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,34 +80,20 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '1.13'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '3.0'
|
97
97
|
description: AMQP publisher for RabbitMQ based on Bunny
|
98
98
|
email:
|
99
99
|
- rustam@sharshenov.com
|
@@ -101,16 +101,9 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
- ".gitignore"
|
105
|
-
- ".rspec"
|
106
|
-
- ".rubocop.yml"
|
107
|
-
- ".travis.yml"
|
108
104
|
- CHANGELOG.md
|
109
|
-
- Gemfile
|
110
105
|
- LICENSE.txt
|
111
106
|
- README.md
|
112
|
-
- Rakefile
|
113
|
-
- bunny-publisher.gemspec
|
114
107
|
- lib/bunny/publisher.rb
|
115
108
|
- lib/bunny_publisher.rb
|
116
109
|
- lib/bunny_publisher/base.rb
|
@@ -134,14 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
127
|
requirements:
|
135
128
|
- - ">="
|
136
129
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
130
|
+
version: '2.5'
|
138
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
132
|
requirements:
|
140
133
|
- - ">="
|
141
134
|
- !ruby/object:Gem::Version
|
142
135
|
version: '0'
|
143
136
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
137
|
+
rubygems_version: 3.1.4
|
145
138
|
signing_key:
|
146
139
|
specification_version: 4
|
147
140
|
summary: AMQP publisher for RabbitMQ based on Bunny
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
---
|
2
|
-
dist: xenial
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
rvm:
|
6
|
-
- 2.5.8
|
7
|
-
- 2.6.6
|
8
|
-
- 2.7.1
|
9
|
-
env:
|
10
|
-
- BUNNY_VERSION="~> 2.15"
|
11
|
-
- BUNNY_VERSION="2.10.0"
|
12
|
-
|
13
|
-
before_install: gem install bundler
|
14
|
-
before_script:
|
15
|
-
- ".ci/install_rabbitmq"
|
16
|
-
bundler_args: --jobs 3 --retry 3
|
data/Gemfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
-
|
7
|
-
# Specify your gem's dependencies in bunny-publisher.gemspec
|
8
|
-
gemspec
|
9
|
-
|
10
|
-
gem 'bunny', ENV.fetch('BUNNY_VERSION', '~> 2.15')
|
data/Rakefile
DELETED
data/bunny-publisher.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'bunny_publisher/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'bunny-publisher'
|
9
|
-
spec.version = BunnyPublisher::VERSION
|
10
|
-
spec.authors = ['Rustam Sharshenov']
|
11
|
-
spec.email = ['rustam@sharshenov.com']
|
12
|
-
|
13
|
-
spec.summary = 'AMQP publisher for RabbitMQ based on Bunny'
|
14
|
-
spec.description = 'AMQP publisher for RabbitMQ based on Bunny'
|
15
|
-
spec.homepage = 'https://github.com/veeqo/bunny-publisher'
|
16
|
-
spec.license = 'MIT'
|
17
|
-
|
18
|
-
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
21
|
-
spec.metadata['changelog_uri'] = 'https://github.com/veeqo/bunny-publisher/blob/master/CHANGELOG.md'
|
22
|
-
end
|
23
|
-
|
24
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|\.ci)/}) }
|
26
|
-
end
|
27
|
-
spec.require_paths = ['lib']
|
28
|
-
|
29
|
-
spec.add_dependency 'bunny', '~> 2.10'
|
30
|
-
|
31
|
-
spec.add_development_dependency 'bundler'
|
32
|
-
spec.add_development_dependency 'pry-byebug'
|
33
|
-
spec.add_development_dependency 'rabbitmq_http_api_client', '~> 1.13'
|
34
|
-
spec.add_development_dependency 'rake'
|
35
|
-
spec.add_development_dependency 'rspec'
|
36
|
-
end
|