jackhammer 1.5.0 → 1.5.1

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: 07cb37d23a78ea8dd8dbd93a5b92ef2fca79b28d7fcdf3aeb77bd28518fb76f6
4
- data.tar.gz: 8f17dd231268a19d3dd62132af463b36ab622cfc90c31a8a3fbaed7db0473b5a
3
+ metadata.gz: 78ec1dce5b7eb73a3b8137bd2a075c18d4dc56c9068cbae2447d55e5e4645f91
4
+ data.tar.gz: c006744c74e10460cf3e73717f9c9d8b6a5cacc1dcf965ed36e31b3034fa2249
5
5
  SHA512:
6
- metadata.gz: aead2222e48d460fd6908772fe3889a6538b1609931011233f4abe0beed49b1d7cb4f83046c5fdbf67bc0fc8cf788393f360f67e45b453bfd05e0fb807329c32
7
- data.tar.gz: e2aa6e13ed05e8b9efe843c6a8b464d5f87470cdf7683254bbc06b552dbef0a8e2ac8c9712e199b3e0a2885ccc6089226d02ad4d83b0fcf62f061d21e9cc7104
6
+ metadata.gz: 9132d9d33f46257e18ac9c690f335b1b2c301d5301287d7c205cc67b926b22568cafda175d92f48fea963498b04526ea86f51fa8bd6fc521635f6d59edace64d
7
+ data.tar.gz: 1f64927a24801ac652539da84d01a8d77994bb30959c0d10ee5dc09c5eca9c4083cb3ca065fd037e4cd8c5e290f4046eb0c7d89b816b7c81bf40186b7db224d0
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.21
1
+ 2.2.32
@@ -1,18 +1,6 @@
1
- ## Description
1
+ ## Description, motivation and context
2
2
  <!--- Describe your changes in detail -->
3
-
4
- ## Related issue(s)
5
- <!--- GH issue number -->
6
-
7
- ## Motivation and Context
8
3
  <!--- Why is this change required? What problem does it solve? -->
9
- <!--- If it fixes an open issue, please link to the issue here. -->
10
4
 
11
- ## How Has This Been Tested?
12
- <!--- Please describe in detail how you tested your changes. -->
13
-
14
- ## Screenshots (if appropriate):
15
- <!--- Please add any screenshots of the feature. -->
16
-
17
- ## Related PRs
18
- <!--- Please add links to any related PRs (backend, component packages, etc). -->
5
+ ## Related issue(s) or PR(s)
6
+ <!--- GH issue number -->
@@ -10,7 +10,7 @@ jobs:
10
10
  auto-approve:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: hmarr/auto-approve-action@v2.0.0
13
+ - uses: hmarr/auto-approve-action@v2
14
14
  if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
15
15
  with:
16
16
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -0,0 +1,28 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.7', '3.0']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
+ # uses: ruby/setup-ruby@v1
22
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+
27
+ - name: Run tests
28
+ run: bundle exec rake ci
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jackhammer (1.5.0)
4
+ jackhammer (1.5.1)
5
5
  bunny (~> 2.17)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.1.4)
11
- activesupport (= 6.1.4)
12
- activerecord (6.1.4)
13
- activemodel (= 6.1.4)
14
- activesupport (= 6.1.4)
15
- activesupport (6.1.4)
10
+ activemodel (6.1.4.1)
11
+ activesupport (= 6.1.4.1)
12
+ activerecord (6.1.4.1)
13
+ activemodel (= 6.1.4.1)
14
+ activesupport (= 6.1.4.1)
15
+ activesupport (6.1.4.1)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
@@ -28,14 +28,14 @@ GEM
28
28
  byebug (11.1.3)
29
29
  concurrent-ruby (1.1.9)
30
30
  diff-lcs (1.4.4)
31
- i18n (1.8.10)
31
+ i18n (1.8.11)
32
32
  concurrent-ruby (~> 1.0)
33
33
  minitest (5.14.4)
34
- parallel (1.20.1)
35
- parser (3.0.1.1)
34
+ parallel (1.21.0)
35
+ parser (3.0.2.0)
36
36
  ast (~> 2.4.1)
37
37
  rainbow (3.0.0)
38
- rake (13.0.4)
38
+ rake (13.0.6)
39
39
  rbtree (0.4.4)
40
40
  regexp_parser (2.1.1)
41
41
  rexml (3.2.5)
@@ -51,35 +51,37 @@ GEM
51
51
  rspec-mocks (3.10.2)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
53
53
  rspec-support (~> 3.10.0)
54
- rspec-support (3.10.2)
55
- rubocop (1.18.3)
54
+ rspec-support (3.10.3)
55
+ rubocop (1.23.0)
56
56
  parallel (~> 1.10)
57
57
  parser (>= 3.0.0.0)
58
58
  rainbow (>= 2.2.2, < 4.0)
59
59
  regexp_parser (>= 1.8, < 3.0)
60
60
  rexml
61
- rubocop-ast (>= 1.7.0, < 2.0)
61
+ rubocop-ast (>= 1.12.0, < 2.0)
62
62
  ruby-progressbar (~> 1.7)
63
63
  unicode-display_width (>= 1.4.0, < 3.0)
64
- rubocop-ast (1.7.0)
64
+ rubocop-ast (1.13.0)
65
65
  parser (>= 3.0.1.1)
66
66
  rubocop-rake (0.6.0)
67
67
  rubocop (~> 1.0)
68
- rubocop-rspec (2.4.0)
69
- rubocop (~> 1.0)
70
- rubocop-ast (>= 1.1.0)
68
+ rubocop-rspec (2.6.0)
69
+ rubocop (~> 1.19)
71
70
  ruby-progressbar (1.11.0)
72
- set (1.0.1)
71
+ set (1.0.2)
73
72
  sorted_set (1.0.3)
74
73
  rbtree
75
74
  set (~> 1.0)
76
75
  tzinfo (2.0.4)
77
76
  concurrent-ruby (~> 1.0)
78
- unicode-display_width (2.0.0)
79
- zeitwerk (2.4.2)
77
+ unicode-display_width (2.1.0)
78
+ zeitwerk (2.5.1)
80
79
 
81
80
  PLATFORMS
82
- ruby
81
+ aarch64-linux-musl
82
+ x86_64-darwin-18
83
+ x86_64-darwin-19
84
+ x86_64-darwin-20
83
85
  x86_64-linux
84
86
 
85
87
  DEPENDENCIES
@@ -95,4 +97,4 @@ DEPENDENCIES
95
97
  rubocop-rspec
96
98
 
97
99
  BUNDLED WITH
98
- 2.2.15
100
+ 2.2.29
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/jackhammer.svg)](https://rubygems.org/gems/jackhammer)
2
- [![Build Status](https://travis-ci.org/RenoFi/jackhammer.svg?branch=master)](https://travis-ci.org/RenoFi/jackhammer)
2
+ [![Build Status](https://github.com/RenoFi/jackhammer/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/jackhammer/actions/workflows/ci.yml?query=branch%3Amain)
3
+
4
+ ## !!! NO LONGER MAINTANED !!!
5
+
6
+ RenoFi moved to Google Pub/Sub and doesn't use rabbitmmq/jackhammer anymore.
7
+
3
8
 
4
9
  # jackhammer
5
10
 
data/Rakefile CHANGED
@@ -5,4 +5,5 @@ require 'rubocop/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
+ task ci: %i[spec rubocop]
8
9
  task default: %i[spec rubocop:auto_correct]
data/jackhammer.gemspec CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata['homepage_uri'] = spec.homepage
16
16
  spec.metadata['source_code_uri'] = spec.homepage
17
+ spec.metadata['rubygems_mfa_required'] = 'true'
17
18
 
18
19
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
@@ -22,7 +23,7 @@ Gem::Specification.new do |spec|
22
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
24
  spec.require_paths = ['lib']
24
25
 
25
- spec.required_ruby_version = '>= 2.6'
26
+ spec.required_ruby_version = '>= 3.0.0'
26
27
 
27
28
  spec.add_dependency 'bunny', '~> 2.17'
28
29
 
@@ -9,10 +9,13 @@ module Jackhammer
9
9
  def validate
10
10
  validate_environment_defined
11
11
  return if errors.any?
12
+
12
13
  validate_topic_exchange_defined
13
14
  return if errors.any?
15
+
14
16
  validate_queues_defined
15
17
  return if errors.any?
18
+
16
19
  validate_handlers_defined
17
20
  end
18
21
 
@@ -5,6 +5,7 @@ module Jackhammer
5
5
  result = {}
6
6
  Jackhammer.configuration.yaml.each do |topic, topic_config|
7
7
  fail(InvalidConfigError, "Topic config is invalid") unless topic_config.is_a?(Hash)
8
+
8
9
  queues = topic_config.delete 'queues'
9
10
  result[topic.to_sym] = Topic.new(name: topic, options: topic_config, queue_config: queues)
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Jackhammer
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackhammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -166,9 +166,9 @@ files:
166
166
  - ".github/PULL_REQUEST_TEMPLATE.md"
167
167
  - ".github/workflows/auto-approve.yml"
168
168
  - ".github/workflows/auto-merge.yml"
169
+ - ".github/workflows/ci.yml"
169
170
  - ".gitignore"
170
171
  - ".rspec"
171
- - ".travis.yml"
172
172
  - Gemfile
173
173
  - Gemfile.lock
174
174
  - LICENSE.txt
@@ -197,6 +197,7 @@ licenses:
197
197
  metadata:
198
198
  homepage_uri: https://github.com/renofi/jackhammer
199
199
  source_code_uri: https://github.com/renofi/jackhammer
200
+ rubygems_mfa_required: 'true'
200
201
  post_install_message:
201
202
  rdoc_options: []
202
203
  require_paths:
@@ -205,14 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
206
  requirements:
206
207
  - - ">="
207
208
  - !ruby/object:Gem::Version
208
- version: '2.6'
209
+ version: 3.0.0
209
210
  required_rubygems_version: !ruby/object:Gem::Requirement
210
211
  requirements:
211
212
  - - ">="
212
213
  - !ruby/object:Gem::Version
213
214
  version: '0'
214
215
  requirements: []
215
- rubygems_version: 3.2.15
216
+ rubygems_version: 3.2.23
216
217
  signing_key:
217
218
  specification_version: 4
218
219
  summary: Jackhammer is an opinionated facade over RabbitMQ Bunny
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6
7
- - 2.7
8
- - 3.0
9
- before_install: gem install bundler
10
- script:
11
- - bundle exec rake spec
12
- - bundle exec rake rubocop