rabbit_messaging 0.9.0 → 0.10.0

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: cd0a35e07052f1d33c73f5ca2f411d6642f59bcb7c1893097209cde42f056f1c
4
- data.tar.gz: 9e677dc5ddcb0f29ccf34942729af2b695c0e26f4e8db350923aa4d173e6990f
3
+ metadata.gz: c92b806429685bd1947aa26b756a708e57c72879add099ca66f48bf54cc5a572
4
+ data.tar.gz: 0f4154541a07263b69dbebd4f7b28ba5b2afe63c8ea4f190400979c3af464622
5
5
  SHA512:
6
- metadata.gz: c25489a4ca2a39ee509d8dbc479480400ec61c2f20b7b63677c77ff61aa1118c0550a51cfa56a9ccf4e6803a990255e04098984752a712cb32b4d1e7e7e14e95
7
- data.tar.gz: 4cc37ce72c23a40534f9fb7d30ac3b2a73516eb50d8e6beeba965ea908b23ef2bce684a04eb5ed260bd8e07f1fb6978fddabde24a8628fb6dc9edb87e023d38c
6
+ metadata.gz: 2e8dcb9f888a8093f3754a59e8948cc40bdbe6bc2e9109eb4306ec1f0c82cecb4a461e392fdc47601ff60c26893f13bb9f075859fd8b99191812d7eb22e7e564
7
+ data.tar.gz: 3019367324566388faf7bdd1926ef2b615e49fd05083a53ab57ba676559c8fa25212002b560497701777e079669821505aba17bc1b78cc46a80e38bf5665590c
@@ -0,0 +1,55 @@
1
+ name: Test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ full-check:
7
+ runs-on: ubuntu-latest
8
+
9
+ # We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
10
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'umbrellio/rabbit_messaging'
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.0
17
+ bundler-cache: true
18
+ - name: Create log dir
19
+ run: mkdir -p log
20
+ - name: Run Linter
21
+ run: bundle exec rubocop
22
+ - name: Run audit
23
+ run: bundle exec rake bundle:audit
24
+ - name: Run specs
25
+ run: bundle exec rspec
26
+ - name: Coveralls
27
+ uses: coverallsapp/github-action@master
28
+ with:
29
+ github-token: ${{ secrets.GITHUB_TOKEN }}
30
+ specs:
31
+ runs-on: ubuntu-latest
32
+ continue-on-error: ${{ matrix.experimental }}
33
+
34
+ # We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
35
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'umbrellio/rabbit_messaging'
36
+
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ ruby: [2.5, 2.6, 2.7]
41
+ experimental: [false]
42
+ include:
43
+ - ruby: head
44
+ experimental: true
45
+
46
+ steps:
47
+ - uses: actions/checkout@v2
48
+ - uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: ${{ matrix.ruby }}
51
+ bundler-cache: true
52
+ - name: Create log dir
53
+ run: mkdir -p log
54
+ - name: Run specs
55
+ run: bundle exec rspec
data/.rubocop.yml CHANGED
@@ -15,3 +15,7 @@ AllCops:
15
15
 
16
16
  Style/Alias:
17
17
  EnforcedStyle: prefer_alias_method
18
+
19
+ Style/HashConversion:
20
+ Exclude:
21
+ - spec/**/*
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.10.0] - 2021-03-05
5
+ ### Added
6
+ - logging message headers
7
+
4
8
  ## [0.9.0] - 2020-11-18
5
9
  ### Added
6
10
  - configurable publish skipping (previous iteration just skipped in development)
@@ -49,12 +49,12 @@ module Rabbit
49
49
  def log(message)
50
50
  @logger ||= Rabbit.config.publish_logger
51
51
 
52
- headers = [
53
- message.real_exchange_name, message.routing_key, message.event,
54
- message.confirm_select? ? "confirm" : "no-confirm"
52
+ metadata = [
53
+ message.real_exchange_name, message.routing_key, message.headers,
54
+ message.event, message.confirm_select? ? "confirm" : "no-confirm"
55
55
  ]
56
56
 
57
- @logger.debug "#{headers.join ' / '}: #{message.data}"
57
+ @logger.debug "#{metadata.join ' / '}: #{message.data}"
58
58
  end
59
59
  end
60
60
  end
@@ -56,8 +56,6 @@ module Rabbit::Publishing
56
56
  [Rabbit.config.group_id, Rabbit.config.project_id, *exchange_name].join(".")
57
57
  end
58
58
 
59
- private
60
-
61
59
  def headers
62
60
  super || {}
63
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rabbit
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.0"
5
5
  end
@@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_development_dependency "bundler"
30
30
  spec.add_development_dependency "bundler-audit"
31
- spec.add_development_dependency "coveralls", ">=0.8"
32
31
  spec.add_development_dependency "pry"
33
32
  spec.add_development_dependency "rake"
34
33
  spec.add_development_dependency "rspec"
35
34
  spec.add_development_dependency "rspec-its"
36
35
  spec.add_development_dependency "rubocop-config-umbrellio"
37
- spec.add_development_dependency "simplecov"
36
+ spec.add_development_dependency "simplecov", ">= 0.21"
37
+ spec.add_development_dependency "simplecov-lcov"
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umbrellio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-18 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -123,21 +123,21 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: coveralls
126
+ name: pry
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '0.8'
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0.8'
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: pry
140
+ name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rake
154
+ name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: rspec
168
+ name: rspec-its
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -179,7 +179,7 @@ dependencies:
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: rspec-its
182
+ name: rubocop-config-umbrellio
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
@@ -193,21 +193,21 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: rubocop-config-umbrellio
196
+ name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: '0'
201
+ version: '0.21'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: '0.21'
209
209
  - !ruby/object:Gem::Dependency
210
- name: simplecov
210
+ name: simplecov-lcov
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
@@ -227,10 +227,10 @@ executables: []
227
227
  extensions: []
228
228
  extra_rdoc_files: []
229
229
  files:
230
+ - ".github/workflows/test.yml"
230
231
  - ".gitignore"
231
232
  - ".rspec"
232
233
  - ".rubocop.yml"
233
- - ".travis.yml"
234
234
  - CHANGELOG.md
235
235
  - Gemfile
236
236
  - LICENSE.md
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  requirements: []
280
- rubygems_version: 3.2.0.rc.1
280
+ rubygems_version: 3.2.11
281
281
  signing_key:
282
282
  specification_version: 4
283
283
  summary: Rabbit (Rabbit Messaging)
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- matrix:
3
- fast_finish: true
4
- include:
5
- - rvm: 2.5
6
- - rvm: 2.6
7
- - rvm: 2.7
8
- - rvm: ruby-head
9
- allow_failures:
10
- - rvm: ruby-head
11
- sudo: false
12
- cache: bundler
13
- before_install: gem install bundler
14
- script:
15
- - mkdir log
16
- - bundle exec rake bundle:audit
17
- - bundle exec rubocop
18
- - bundle exec rspec