msgr 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/maintenance-cache-wipe.yml +13 -0
- data/.github/workflows/maintenance-workflow-cleanup.yml +17 -0
- data/.github/workflows/release.yml +36 -0
- data/.github/workflows/test.yml +20 -16
- data/.gitignore +1 -1
- data/Appraisals +11 -11
- data/CHANGELOG.md +8 -1
- data/Gemfile +6 -3
- data/gemfiles/rails_6.1.gemfile +4 -3
- data/gemfiles/rails_7.0.gemfile +5 -4
- data/gemfiles/rails_7.1.gemfile +16 -0
- data/gemfiles/rails_7.2.gemfile +16 -0
- data/lib/msgr/test_pool.rb +1 -1
- data/lib/msgr/version.rb +1 -1
- data/spec/integration/dummy/app/consumers/test_consumer.rb +1 -1
- data/spec/integration/spec_helper.rb +13 -10
- data/spec/unit/spec_helper.rb +10 -7
- metadata +11 -9
- data/gemfiles/rails_5.2.gemfile +0 -15
- data/gemfiles/rails_6.0.gemfile +0 -15
- data/gemfiles/rails_head.gemfile +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b69f99b675987fb9acd292af1603a5806167aac39e49a98cd629a18cb03ef8f5
|
4
|
+
data.tar.gz: 41c53127e3fb1aee3efa28a107fd5d3b08baf99754582aef2415f6ee227676e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94753aaa39cb6be26a78962cd29fe0ad2fe922d117b85718b3a523fff032868f4b0e3ec9ac66d00e60cd0d561a2ba412cdf693c1eb736cf05201881d0e44664e
|
7
|
+
data.tar.gz: af7cc8d4e7d0ece9c03c673587797ed9d26412e83e3d96af1b41da872105dced4c7b2ad1a30d4dd95a91d3315b90cc2bb17845dba178fa51f76507665fb62c4a
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: maintenance-workflow-cleanup
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: "0 0 1 * *"
|
6
|
+
workflow_dispatch:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
delete-workflow-runs:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: Mattraks/delete-workflow-runs@v2
|
13
|
+
with:
|
14
|
+
token: ${{ github.token }}
|
15
|
+
repository: ${{ github.repository }}
|
16
|
+
retain_days: 180
|
17
|
+
keep_minimum_runs: 50
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name: release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
rubygems:
|
10
|
+
if: github.repository == 'jgraichen/msgr'
|
11
|
+
runs-on: ubuntu-24.04
|
12
|
+
|
13
|
+
permissions:
|
14
|
+
contents: write
|
15
|
+
id-token: write
|
16
|
+
|
17
|
+
env:
|
18
|
+
BUNDLE_JOBS: 4
|
19
|
+
BUNDLE_RETRY: 10
|
20
|
+
BUNDLE_WITHOUT: development test
|
21
|
+
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v4
|
24
|
+
|
25
|
+
- uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ruby
|
28
|
+
bundler-cache: true
|
29
|
+
|
30
|
+
- uses: rubygems/release-gem@v1
|
31
|
+
|
32
|
+
- uses: taiki-e/create-gh-release-action@v1
|
33
|
+
with:
|
34
|
+
changelog: CHANGELOG.md
|
35
|
+
draft: true
|
36
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
@@ -3,31 +3,30 @@ on: [push]
|
|
3
3
|
jobs:
|
4
4
|
test:
|
5
5
|
name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }}
|
6
|
-
runs-on: ubuntu-
|
6
|
+
runs-on: ubuntu-24.04
|
7
7
|
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
10
|
ruby:
|
11
|
+
- "3.3"
|
11
12
|
- "3.2"
|
12
13
|
- "3.1"
|
13
14
|
- "3.0"
|
14
15
|
- "2.7"
|
15
16
|
gemfile:
|
16
|
-
-
|
17
|
-
-
|
18
|
-
- rails_6.1.gemfile
|
17
|
+
- rails_7.2.gemfile
|
18
|
+
- rails_7.1.gemfile
|
19
19
|
- rails_7.0.gemfile
|
20
|
+
- rails_6.1.gemfile
|
20
21
|
exclude:
|
21
|
-
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
-
|
28
|
-
|
29
|
-
- ruby: "3.0"
|
30
|
-
gemfile: rails_5.2.gemfile
|
22
|
+
- gemfile: rails_7.2.gemfile
|
23
|
+
ruby: "3.0"
|
24
|
+
- gemfile: rails_7.2.gemfile
|
25
|
+
ruby: "2.7"
|
26
|
+
- gemfile: rails_7.1.gemfile
|
27
|
+
ruby: "3.0"
|
28
|
+
- gemfile: rails_7.1.gemfile
|
29
|
+
ruby: "2.7"
|
31
30
|
fail-fast: False
|
32
31
|
|
33
32
|
services:
|
@@ -63,9 +62,14 @@ jobs:
|
|
63
62
|
- name: Run integration tests
|
64
63
|
run: bundle exec rspec -Ispec/integration --color spec/integration
|
65
64
|
|
65
|
+
- uses: codecov/codecov-action@v4
|
66
|
+
with:
|
67
|
+
fail_ci_if_error: true
|
68
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
69
|
+
|
66
70
|
rubocop:
|
67
71
|
name: rubocop
|
68
|
-
runs-on: ubuntu-
|
72
|
+
runs-on: ubuntu-24.04
|
69
73
|
|
70
74
|
env:
|
71
75
|
BUNDLE_JOBS: 4
|
@@ -76,7 +80,7 @@ jobs:
|
|
76
80
|
- uses: actions/checkout@master
|
77
81
|
- uses: ruby/setup-ruby@v1
|
78
82
|
with:
|
79
|
-
ruby-version: 3.
|
83
|
+
ruby-version: "3.3"
|
80
84
|
bundler-cache: true
|
81
85
|
|
82
86
|
- name: Run rubocop
|
data/.gitignore
CHANGED
@@ -21,7 +21,7 @@ spec/integration/dummy/.generators
|
|
21
21
|
spec/integration/dummy/.rakeTasks
|
22
22
|
spec/integration/dummy/.sass-cache
|
23
23
|
spec/integration/dummy/db/*.sqlite3
|
24
|
-
spec/integration/dummy/db/*.sqlite3
|
24
|
+
spec/integration/dummy/db/*.sqlite3*
|
25
25
|
spec/integration/dummy/tmp
|
26
26
|
spec/reports
|
27
27
|
test/tmp
|
data/Appraisals
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
|
3
3
|
# vim: ft=ruby
|
4
4
|
|
5
|
-
# appraise 'rails-5.2' do
|
6
|
-
# gem 'rails', '~> 5.2.0'
|
7
|
-
# end
|
8
|
-
|
9
|
-
# appraise 'rails-6.0' do
|
10
|
-
# gem 'rails', '~> 6.0.0'
|
11
|
-
# end
|
12
|
-
|
13
5
|
appraise 'rails-6.1' do
|
14
6
|
gem 'rails', '~> 6.1.0'
|
7
|
+
gem 'sqlite3', '~> 1.4'
|
15
8
|
end
|
16
9
|
|
17
10
|
appraise 'rails-7.0' do
|
18
|
-
gem 'rails', '~>
|
11
|
+
gem 'rails', '~> 7.0.0'
|
12
|
+
gem 'sqlite3', '~> 1.4'
|
13
|
+
end
|
14
|
+
|
15
|
+
appraise 'rails-7.1' do
|
16
|
+
gem 'rails', '~> 7.1.0'
|
17
|
+
gem 'sqlite3', '~> 2.0'
|
19
18
|
end
|
20
19
|
|
21
|
-
appraise 'rails-
|
22
|
-
gem 'rails',
|
20
|
+
appraise 'rails-7.2' do
|
21
|
+
gem 'rails', '~> 7.2.0'
|
22
|
+
gem 'sqlite3', '~> 2.0'
|
23
23
|
end
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.6.0] - 2024-10-04
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Support for Ruby 3.3
|
14
|
+
|
9
15
|
## [1.5.0] - 2023-08-16
|
10
16
|
|
11
17
|
### Added
|
@@ -193,7 +199,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
193
199
|
|
194
200
|
- Improve rails initializer code
|
195
201
|
|
196
|
-
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.
|
202
|
+
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.6.0...HEAD
|
203
|
+
[1.6.0]: https://github.com/jgraichen/msgr/compare/v1.5.0...v1.6.0
|
197
204
|
[1.5.0]: https://github.com/jgraichen/msgr/compare/v1.4.0...v1.5.0
|
198
205
|
[1.4.0]: https://github.com/jgraichen/msgr/compare/v1.3.2...v1.4.0
|
199
206
|
[1.3.2]: https://github.com/jgraichen/msgr/compare/v1.3.1...v1.3.2
|
data/Gemfile
CHANGED
@@ -3,15 +3,18 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
gem 'appraisal'
|
6
|
-
gem 'coveralls'
|
7
6
|
gem 'rake'
|
8
7
|
gem 'rake-release', '~> 1.1'
|
8
|
+
|
9
9
|
gem 'rspec', '~> 3.0'
|
10
10
|
gem 'rspec-rails'
|
11
|
-
|
11
|
+
|
12
|
+
gem 'simplecov', require: false
|
13
|
+
gem 'simplecov-cobertura', require: false
|
14
|
+
|
15
|
+
gem 'rubocop-config', github: 'jgraichen/rubocop-config', ref: 'v12', require: false
|
12
16
|
|
13
17
|
gem 'rails'
|
14
|
-
gem 'sqlite3'
|
15
18
|
|
16
19
|
# Specify your gem's dependencies in acfs.gemspec
|
17
20
|
gemspec
|
data/gemfiles/rails_6.1.gemfile
CHANGED
@@ -3,13 +3,14 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal"
|
6
|
-
gem "coveralls"
|
7
|
-
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v4"
|
8
6
|
gem "rake"
|
9
7
|
gem "rake-release", "~> 1.1"
|
10
8
|
gem "rspec", "~> 3.0"
|
11
9
|
gem "rspec-rails"
|
10
|
+
gem "simplecov", require: false
|
11
|
+
gem "simplecov-cobertura", require: false
|
12
|
+
gem "rubocop-config", github: "jgraichen/rubocop-config", ref: "v12", require: false
|
12
13
|
gem "rails", "~> 6.1.0"
|
13
|
-
gem "sqlite3"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
14
15
|
|
15
16
|
gemspec path: "../"
|
data/gemfiles/rails_7.0.gemfile
CHANGED
@@ -3,13 +3,14 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal"
|
6
|
-
gem "coveralls"
|
7
|
-
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v4"
|
8
6
|
gem "rake"
|
9
7
|
gem "rake-release", "~> 1.1"
|
10
8
|
gem "rspec", "~> 3.0"
|
11
9
|
gem "rspec-rails"
|
12
|
-
gem "
|
13
|
-
gem "
|
10
|
+
gem "simplecov", require: false
|
11
|
+
gem "simplecov-cobertura", require: false
|
12
|
+
gem "rubocop-config", github: "jgraichen/rubocop-config", ref: "v12", require: false
|
13
|
+
gem "rails", "~> 7.0.0"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
14
15
|
|
15
16
|
gemspec path: "../"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "rake"
|
7
|
+
gem "rake-release", "~> 1.1"
|
8
|
+
gem "rspec", "~> 3.0"
|
9
|
+
gem "rspec-rails"
|
10
|
+
gem "simplecov", require: false
|
11
|
+
gem "simplecov-cobertura", require: false
|
12
|
+
gem "rubocop-config", github: "jgraichen/rubocop-config", ref: "v12", require: false
|
13
|
+
gem "rails", "~> 7.1.0"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
|
16
|
+
gemspec path: "../"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "rake"
|
7
|
+
gem "rake-release", "~> 1.1"
|
8
|
+
gem "rspec", "~> 3.0"
|
9
|
+
gem "rspec-rails"
|
10
|
+
gem "simplecov", require: false
|
11
|
+
gem "simplecov-cobertura", require: false
|
12
|
+
gem "rubocop-config", github: "jgraichen/rubocop-config", ref: "v12", require: false
|
13
|
+
gem "rails", "~> 7.2.0"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
|
16
|
+
gemspec path: "../"
|
data/lib/msgr/test_pool.rb
CHANGED
data/lib/msgr/version.rb
CHANGED
@@ -4,10 +4,17 @@
|
|
4
4
|
require 'bundler'
|
5
5
|
Bundler.require :rails, :test
|
6
6
|
|
7
|
-
|
8
|
-
require '
|
9
|
-
|
7
|
+
require 'simplecov'
|
8
|
+
require 'simplecov-cobertura'
|
9
|
+
|
10
|
+
SimpleCov.start do
|
11
|
+
command_name 'rspec:integration'
|
10
12
|
add_filter 'spec'
|
13
|
+
|
14
|
+
self.formatters = [
|
15
|
+
SimpleCov::Formatter::HTMLFormatter,
|
16
|
+
SimpleCov::Formatter::CoberturaFormatter,
|
17
|
+
]
|
11
18
|
end
|
12
19
|
|
13
20
|
ENV['RAILS_ENV'] ||= 'test'
|
@@ -19,9 +26,9 @@ require 'rspec/rails'
|
|
19
26
|
# in spec/support/ and its subdirectories.
|
20
27
|
Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each {|f| require f }
|
21
28
|
|
22
|
-
|
23
|
-
|
24
|
-
|
29
|
+
if ActiveRecord::Migration.respond_to?(:check_all_pending!)
|
30
|
+
ActiveRecord::Migration.check_all_pending!
|
31
|
+
else
|
25
32
|
ActiveRecord::Migration.check_pending!
|
26
33
|
end
|
27
34
|
|
@@ -47,10 +54,6 @@ RSpec.configure do |config|
|
|
47
54
|
c.syntax = :expect
|
48
55
|
end
|
49
56
|
|
50
|
-
config.before do
|
51
|
-
Msgr.logger = false
|
52
|
-
end
|
53
|
-
|
54
57
|
config.after do
|
55
58
|
# Flush the consumer queue
|
56
59
|
Msgr.client.stop delete: true
|
data/spec/unit/spec_helper.rb
CHANGED
@@ -4,10 +4,17 @@
|
|
4
4
|
require 'bundler'
|
5
5
|
Bundler.setup :default, :test
|
6
6
|
|
7
|
-
|
8
|
-
require '
|
9
|
-
|
7
|
+
require 'simplecov'
|
8
|
+
require 'simplecov-cobertura'
|
9
|
+
|
10
|
+
SimpleCov.start do
|
11
|
+
command_name 'rspec:unit'
|
10
12
|
add_filter 'spec'
|
13
|
+
|
14
|
+
self.formatters = [
|
15
|
+
SimpleCov::Formatter::HTMLFormatter,
|
16
|
+
SimpleCov::Formatter::CoberturaFormatter,
|
17
|
+
]
|
11
18
|
end
|
12
19
|
|
13
20
|
require 'msgr'
|
@@ -20,8 +27,4 @@ RSpec.configure do |config|
|
|
20
27
|
# Only allow expect syntax
|
21
28
|
c.syntax = :expect
|
22
29
|
end
|
23
|
-
|
24
|
-
config.before do
|
25
|
-
Msgr.logger = false
|
26
|
-
end
|
27
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -53,6 +53,9 @@ extensions: []
|
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
55
|
- ".editorconfig"
|
56
|
+
- ".github/workflows/maintenance-cache-wipe.yml"
|
57
|
+
- ".github/workflows/maintenance-workflow-cleanup.yml"
|
58
|
+
- ".github/workflows/release.yml"
|
56
59
|
- ".github/workflows/test.yml"
|
57
60
|
- ".gitignore"
|
58
61
|
- ".markdownlint.yml"
|
@@ -65,11 +68,10 @@ files:
|
|
65
68
|
- README.md
|
66
69
|
- Rakefile
|
67
70
|
- bin/msgr
|
68
|
-
- gemfiles/rails_5.2.gemfile
|
69
|
-
- gemfiles/rails_6.0.gemfile
|
70
71
|
- gemfiles/rails_6.1.gemfile
|
71
72
|
- gemfiles/rails_7.0.gemfile
|
72
|
-
- gemfiles/
|
73
|
+
- gemfiles/rails_7.1.gemfile
|
74
|
+
- gemfiles/rails_7.2.gemfile
|
73
75
|
- lib/msgr.rb
|
74
76
|
- lib/msgr/binding.rb
|
75
77
|
- lib/msgr/channel.rb
|
@@ -135,7 +137,7 @@ licenses:
|
|
135
137
|
- MIT
|
136
138
|
metadata:
|
137
139
|
rubygems_mfa_required: 'true'
|
138
|
-
post_install_message:
|
140
|
+
post_install_message:
|
139
141
|
rdoc_options: []
|
140
142
|
require_paths:
|
141
143
|
- lib
|
@@ -150,8 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
152
|
- !ruby/object:Gem::Version
|
151
153
|
version: '0'
|
152
154
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
154
|
-
signing_key:
|
155
|
+
rubygems_version: 3.5.16
|
156
|
+
signing_key:
|
155
157
|
specification_version: 4
|
156
158
|
summary: 'Msgr: Rails-like Messaging Framework'
|
157
159
|
test_files: []
|
data/gemfiles/rails_5.2.gemfile
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal"
|
6
|
-
gem "coveralls"
|
7
|
-
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v4"
|
8
|
-
gem "rake"
|
9
|
-
gem "rake-release", "~> 1.1"
|
10
|
-
gem "rspec", "~> 3.0"
|
11
|
-
gem "rspec-rails"
|
12
|
-
gem "rails", "~> 5.2.0"
|
13
|
-
gem "sqlite3"
|
14
|
-
|
15
|
-
gemspec path: "../"
|
data/gemfiles/rails_6.0.gemfile
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal"
|
6
|
-
gem "coveralls"
|
7
|
-
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v4"
|
8
|
-
gem "rake"
|
9
|
-
gem "rake-release", "~> 1.1"
|
10
|
-
gem "rspec", "~> 3.0"
|
11
|
-
gem "rspec-rails"
|
12
|
-
gem "rails", "~> 6.0.0"
|
13
|
-
gem "sqlite3"
|
14
|
-
|
15
|
-
gemspec path: "../"
|
data/gemfiles/rails_head.gemfile
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal"
|
6
|
-
gem "coveralls"
|
7
|
-
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v4"
|
8
|
-
gem "rake"
|
9
|
-
gem "rake-release", "~> 1.1"
|
10
|
-
gem "rspec", "~> 3.0"
|
11
|
-
gem "rspec-rails"
|
12
|
-
gem "rails", git: "https://github.com/rails/rails", require: "rails"
|
13
|
-
gem "sqlite3"
|
14
|
-
|
15
|
-
gemspec path: "../"
|