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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0941ec1c340fae1b480ffbed95aee67e676ca77b8940103131070a2ceccf5063'
4
- data.tar.gz: ed2cff15af62d6582736881525a5f04a562b8140ea3df88441834b8f292444d2
3
+ metadata.gz: e247f77fae1e40f382c348f1b95776f5e7bdaee76ed9fe9d4bf9256ad6426bbc
4
+ data.tar.gz: ff786a91b52ed10973d68da531087f183780163b04cb3a3a7e29eee70e6e2610
5
5
  SHA512:
6
- metadata.gz: d0131d41d2bd1316ed06244649f526417e9ebab33c1d037887ffd4206aa1849f58ffb617072c5e7104df1abb5dc4d1e1bc29115833d8e6ad24123963763f097e
7
- data.tar.gz: 2bf856689a9caff3f16cfd6cc535605152bc7554a6acb3ae27477dbe0f9e82f993d9909094997ec8a916885f11f5f0722183c2dbe3d4c1f19b03a655f48da7ed
6
+ metadata.gz: 7e7124d280b8fcb52b8254caec6656ad3f9797c76abcb30afbebbb342c80ceac355e131471c96befb084ff1e111819e5ec160746f7f1ff02af1a804702a1a0ca
7
+ data.tar.gz: 7050fb8f90b86cee2b0515dbc90320a62a6b7d4007bf596504d2059398d719fc753e4910583cc613eb65643c98d7f8d7b5bfb4aa2f4fb9d63cd1696e331338d0
@@ -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@v4
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.3"
71
+ ruby-version: "3.4"
84
72
  bundler-cache: true
85
73
 
86
74
  - name: Run rubocop
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  rubocop-config: default.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: "3.2"
6
6
  SuggestExtensions: False
7
7
  Exclude:
8
8
  - gemfiles/**/*
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.6.1...HEAD
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', ref: 'v12', require: false
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
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'logger'
3
4
  require 'optionparser'
4
5
 
5
6
  module Msgr
@@ -63,8 +63,8 @@ module Msgr
63
63
  class NullPool
64
64
  def initialize(*); end
65
65
 
66
- def post(*args)
67
- yield(*args)
66
+ def post(*)
67
+ yield(*)
68
68
  end
69
69
  end
70
70
  end
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}.freeze
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]
@@ -60,8 +60,8 @@ module Msgr
60
60
  @instance ||= super # rubocop:disable Naming/MemoizedInstanceVariableName
61
61
  end
62
62
 
63
- def run(**kwargs)
64
- new.run(**kwargs)
63
+ def run(**)
64
+ new.run(**)
65
65
  end
66
66
 
67
67
  def clear
data/lib/msgr/version.rb CHANGED
@@ -3,8 +3,8 @@
3
3
  module Msgr
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 6
7
- PATCH = 1
6
+ MINOR = 7
7
+ PATCH = 0
8
8
  STAGE = nil
9
9
  STRING = [MAJOR, MINOR, PATCH, STAGE].compact.join('.')
10
10
 
data/lib/msgr.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'logger'
4
+
3
5
  require 'msgr/version'
6
+
4
7
  require 'active_support'
5
8
  require 'active_support/core_ext/object/blank'
6
9
  require 'active_support/core_ext/module/delegation'
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.7'
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
@@ -22,8 +22,8 @@ end
22
22
  class NullPool
23
23
  def initialize(*); end
24
24
 
25
- def post(*args)
26
- yield(*args)
25
+ def post(*)
26
+ yield(*)
27
27
  end
28
28
  end
29
29
 
@@ -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__)].sort.each {|f| require f }
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!
@@ -19,7 +19,7 @@ end
19
19
 
20
20
  require 'msgr'
21
21
 
22
- Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each {|f| require f }
22
+ Dir[File.expand_path('support/**/*.rb', __dir__)].each {|f| require f }
23
23
 
24
24
  RSpec.configure do |config|
25
25
  config.order = 'random'
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.6.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: 2024-10-04 00:00:00.000000000 Z
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: '0'
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: '0'
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.7'
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.5.16
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: []