msgr 1.6.1 → 1.7.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/test.yml +4 -16
- data/.rubocop.yml +1 -1
- data/Appraisals +5 -10
- data/CHANGELOG.md +12 -1
- data/Gemfile +2 -1
- data/gemfiles/rails_8.0.gemfile +16 -0
- data/lib/msgr/cli.rb +1 -0
- data/lib/msgr/dispatcher.rb +2 -2
- data/lib/msgr/route.rb +1 -1
- data/lib/msgr/test_pool.rb +2 -2
- data/lib/msgr/version.rb +2 -2
- data/lib/msgr.rb +3 -0
- data/msgr.gemspec +3 -2
- data/scripts/simple_test.rb +2 -2
- data/spec/integration/spec_helper.rb +1 -1
- data/spec/unit/spec_helper.rb +1 -1
- metadata +21 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e247f77fae1e40f382c348f1b95776f5e7bdaee76ed9fe9d4bf9256ad6426bbc
|
4
|
+
data.tar.gz: ff786a91b52ed10973d68da531087f183780163b04cb3a3a7e29eee70e6e2610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7124d280b8fcb52b8254caec6656ad3f9797c76abcb30afbebbb342c80ceac355e131471c96befb084ff1e111819e5ec160746f7f1ff02af1a804702a1a0ca
|
7
|
+
data.tar.gz: 7050fb8f90b86cee2b0515dbc90320a62a6b7d4007bf596504d2059398d719fc753e4910583cc613eb65643c98d7f8d7b5bfb4aa2f4fb9d63cd1696e331338d0
|
data/.github/workflows/test.yml
CHANGED
@@ -8,25 +8,13 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
10
|
ruby:
|
11
|
+
- "3.4"
|
11
12
|
- "3.3"
|
12
13
|
- "3.2"
|
13
|
-
- "3.1"
|
14
|
-
- "3.0"
|
15
|
-
- "2.7"
|
16
14
|
gemfile:
|
15
|
+
- rails_8.0.gemfile
|
17
16
|
- rails_7.2.gemfile
|
18
17
|
- rails_7.1.gemfile
|
19
|
-
- rails_7.0.gemfile
|
20
|
-
- rails_6.1.gemfile
|
21
|
-
exclude:
|
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"
|
30
18
|
fail-fast: False
|
31
19
|
|
32
20
|
services:
|
@@ -62,7 +50,7 @@ jobs:
|
|
62
50
|
- name: Run integration tests
|
63
51
|
run: bundle exec rspec -Ispec/integration --color spec/integration
|
64
52
|
|
65
|
-
- uses: codecov/codecov-action@
|
53
|
+
- uses: codecov/codecov-action@v5
|
66
54
|
with:
|
67
55
|
fail_ci_if_error: true
|
68
56
|
token: ${{ secrets.CODECOV_TOKEN }}
|
@@ -80,7 +68,7 @@ jobs:
|
|
80
68
|
- uses: actions/checkout@master
|
81
69
|
- uses: ruby/setup-ruby@v1
|
82
70
|
with:
|
83
|
-
ruby-version: "3.
|
71
|
+
ruby-version: "3.4"
|
84
72
|
bundler-cache: true
|
85
73
|
|
86
74
|
- name: Run rubocop
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
@@ -2,16 +2,6 @@
|
|
2
2
|
|
3
3
|
# vim: ft=ruby
|
4
4
|
|
5
|
-
appraise 'rails-6.1' do
|
6
|
-
gem 'rails', '~> 6.1.0'
|
7
|
-
gem 'sqlite3', '~> 1.4'
|
8
|
-
end
|
9
|
-
|
10
|
-
appraise 'rails-7.0' do
|
11
|
-
gem 'rails', '~> 7.0.0'
|
12
|
-
gem 'sqlite3', '~> 1.4'
|
13
|
-
end
|
14
|
-
|
15
5
|
appraise 'rails-7.1' do
|
16
6
|
gem 'rails', '~> 7.1.0'
|
17
7
|
gem 'sqlite3', '~> 2.0'
|
@@ -21,3 +11,8 @@ appraise 'rails-7.2' do
|
|
21
11
|
gem 'rails', '~> 7.2.0'
|
22
12
|
gem 'sqlite3', '~> 2.0'
|
23
13
|
end
|
14
|
+
|
15
|
+
appraise 'rails-8.0' do
|
16
|
+
gem 'rails', '~> 8.0.0'
|
17
|
+
gem 'sqlite3', '~> 2.0'
|
18
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.7.0] - 2025-01-17
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Support for Ruby 3.4 and Rails 8.0
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Require Ruby 3.2+ and Rails 7.1+
|
18
|
+
|
9
19
|
## [1.6.1] - 2024-10-04
|
10
20
|
|
11
21
|
### Fixed
|
@@ -199,7 +209,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
199
209
|
|
200
210
|
- Improve rails initializer code
|
201
211
|
|
202
|
-
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.
|
212
|
+
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.7.0...HEAD
|
213
|
+
[1.7.0]: https://github.com/jgraichen/msgr/compare/v1.6.1...v1.7.0
|
203
214
|
[1.6.1]: https://github.com/jgraichen/msgr/compare/v1.6.0...v1.6.1
|
204
215
|
[1.6.0]: https://github.com/jgraichen/msgr/compare/v1.5.0...v1.6.0
|
205
216
|
[1.5.0]: https://github.com/jgraichen/msgr/compare/v1.4.0...v1.5.0
|
data/Gemfile
CHANGED
@@ -12,9 +12,10 @@ gem 'rspec-rails'
|
|
12
12
|
gem 'simplecov', require: false
|
13
13
|
gem 'simplecov-cobertura', require: false
|
14
14
|
|
15
|
-
gem 'rubocop-config', github: 'jgraichen/rubocop-config',
|
15
|
+
gem 'rubocop-config', github: 'jgraichen/rubocop-config', tag: 'v13', require: false
|
16
16
|
|
17
17
|
gem 'rails'
|
18
|
+
gem 'sqlite3'
|
18
19
|
|
19
20
|
# Specify your gem's dependencies in acfs.gemspec
|
20
21
|
gemspec
|
@@ -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", "~> 8.0.0"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
|
16
|
+
gemspec path: "../"
|
data/lib/msgr/cli.rb
CHANGED
data/lib/msgr/dispatcher.rb
CHANGED
data/lib/msgr/route.rb
CHANGED
@@ -4,7 +4,7 @@ module Msgr
|
|
4
4
|
class Route
|
5
5
|
attr_reader :consumer, :action, :opts
|
6
6
|
|
7
|
-
MATCH_REGEXP = %r{\A(?<consumer>(?:\w+/)*\w+)#(?<action>\w+)\z}
|
7
|
+
MATCH_REGEXP = %r{\A(?<consumer>(?:\w+/)*\w+)#(?<action>\w+)\z}
|
8
8
|
def initialize(key, opts = {})
|
9
9
|
@opts = opts
|
10
10
|
raise ArgumentError.new 'Missing `to` options.' unless @opts[:to]
|
data/lib/msgr/test_pool.rb
CHANGED
data/lib/msgr/version.rb
CHANGED
data/lib/msgr.rb
CHANGED
data/msgr.gemspec
CHANGED
@@ -23,8 +23,9 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
24
24
|
spec.require_paths = %w[lib]
|
25
25
|
|
26
|
-
spec.required_ruby_version = '>= 2
|
26
|
+
spec.required_ruby_version = '>= 3.2'
|
27
27
|
|
28
|
-
spec.add_dependency 'activesupport'
|
28
|
+
spec.add_dependency 'activesupport', '>= 7.1'
|
29
29
|
spec.add_dependency 'bunny', '>= 1.4', '< 3.0'
|
30
|
+
spec.add_dependency 'logger'
|
30
31
|
end
|
data/scripts/simple_test.rb
CHANGED
@@ -24,7 +24,7 @@ require 'rspec/rails'
|
|
24
24
|
|
25
25
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
26
26
|
# in spec/support/ and its subdirectories.
|
27
|
-
Dir[File.expand_path('support/**/*.rb', __dir__)].
|
27
|
+
Dir[File.expand_path('support/**/*.rb', __dir__)].each {|f| require f }
|
28
28
|
|
29
29
|
if ActiveRecord::Migration.respond_to?(:check_all_pending!)
|
30
30
|
ActiveRecord::Migration.check_all_pending!
|
data/spec/unit/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
18
|
+
version: '7.1'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
25
|
+
version: '7.1'
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: bunny
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +43,20 @@ dependencies:
|
|
44
43
|
- - "<"
|
45
44
|
- !ruby/object:Gem::Version
|
46
45
|
version: '3.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: logger
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
type: :runtime
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
47
60
|
description: 'Msgr: Rails-like Messaging Framework'
|
48
61
|
email:
|
49
62
|
- jgraichen@altimos.de
|
@@ -72,6 +85,7 @@ files:
|
|
72
85
|
- gemfiles/rails_7.0.gemfile
|
73
86
|
- gemfiles/rails_7.1.gemfile
|
74
87
|
- gemfiles/rails_7.2.gemfile
|
88
|
+
- gemfiles/rails_8.0.gemfile
|
75
89
|
- lib/msgr.rb
|
76
90
|
- lib/msgr/binding.rb
|
77
91
|
- lib/msgr/channel.rb
|
@@ -137,7 +151,6 @@ licenses:
|
|
137
151
|
- MIT
|
138
152
|
metadata:
|
139
153
|
rubygems_mfa_required: 'true'
|
140
|
-
post_install_message:
|
141
154
|
rdoc_options: []
|
142
155
|
require_paths:
|
143
156
|
- lib
|
@@ -145,15 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
158
|
requirements:
|
146
159
|
- - ">="
|
147
160
|
- !ruby/object:Gem::Version
|
148
|
-
version: '2
|
161
|
+
version: '3.2'
|
149
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
163
|
requirements:
|
151
164
|
- - ">="
|
152
165
|
- !ruby/object:Gem::Version
|
153
166
|
version: '0'
|
154
167
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
-
signing_key:
|
168
|
+
rubygems_version: 3.6.2
|
157
169
|
specification_version: 4
|
158
170
|
summary: 'Msgr: Rails-like Messaging Framework'
|
159
171
|
test_files: []
|