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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81976f1ec6350ac4bd2ec4182f0b0c42dcb99705b014228f896f5183bf3e02af
4
- data.tar.gz: 15cc8eef3348d2eff8367aa3f8167a1762e9a94fa56506168f47618ee857e7ed
3
+ metadata.gz: 92c4e95e3345fc0e7b14bbcc857e1eb068683aa71195f5c4ec12cb9c41cb502b
4
+ data.tar.gz: f36375e9fa92be24efe78621aba3dfb055d0ef0c3ee9c786f6d9ce66d130e2c3
5
5
  SHA512:
6
- metadata.gz: d67b3c8e5a609b61450452a8f87aaa281ee458d10f3c5d551e45b8ab5bdf9fb07e75df06525f7df803b88129a5412229a26f485f4f602d71cf309cc737619806
7
- data.tar.gz: 4cdf52e2d3f6a8f99156b0e7359b6a3bf54841ae80ea3cf461c3ab8f1e105a0cc66d0d7e6cc3a0d25812b607dfddb8222b330508c49821866528cc5f589948e3
6
+ metadata.gz: 7ac5bee9428495e5db8850e8b62af15c85ec127724ce34abb6efaa00e4e33c319a3f8f6efc381b9e6f4b334479c9c76602eb2df48a3fb972795a10c7dbfe91d5
7
+ data.tar.gz: 4faa60314422097b38cb53b4719c89f07ef0ceb18e223fa6ebfe4e1462d080a1f2c4db3379a085725af713a6b98c869a6efe2a77e86c78a60ccb443501ee6c9e
@@ -1,9 +1,30 @@
1
- ## Changes Between 0.1.1 and 0.1.2
1
+ # Changelog
2
2
 
3
- Added [test mode](https://github.com/veeqo/bunny-publisher#test-mode)
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- ## Changes Between 0.1.0 and 0.1.1
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
- Minor improvements of unrouted message processing at program exit.
7
+ ## [Unreleased](https://github.com/veeqo/bunny-publisher/compare/v0.1.3...HEAD)
8
8
 
9
- ## Original Release: 0.1.0
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.
@@ -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, include_private = false)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunnyPublisher
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
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.2
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-05-27 00:00:00.000000000 Z
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: '0'
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.0.8
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
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /Gemfile.lock
10
- /.ruby-gemset
11
- /.ruby-version
12
-
13
- # rspec failure tracking
14
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
@@ -1,16 +0,0 @@
1
- Layout/LineLength:
2
- Max: 120
3
- Exclude:
4
- - "spec/**/*"
5
-
6
- Lint/AmbiguousBlockAssociation:
7
- Exclude:
8
- - "spec/**/*"
9
-
10
- Metrics/BlockLength:
11
- Exclude:
12
- - "spec/**/*"
13
-
14
- Style/EvalWithLocation:
15
- Exclude:
16
- - "spec/**/*"
@@ -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
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
@@ -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