coach 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f40e716d8b00a9949e42cd022737dedc36d47a12e8e720c7aef3ceb6edb0abf
4
- data.tar.gz: 904b31aa3328820a82b40fc7ee7af7076e8f590fae71c38a2153a0eac9b8b97b
3
+ metadata.gz: 217a386ddcf9c5f090e305fbea0597347682b27f08c0bf2e5829655295fd4f07
4
+ data.tar.gz: db731203348e9deef50bf2a019044754730a76b663d8dd25bccc22d82ed98e24
5
5
  SHA512:
6
- metadata.gz: bbf8afda677fc941b1c160fc4e9f3057adfbb63bfe2256c35b696959df33a31efdc6f871a3f8ef23fa0263ebb09b20116427274de8d28ec625445f768225fcf3
7
- data.tar.gz: 1747d20d1b2fd2ae84294b85b382c56ad1edbccbe6edded00da9c510ff6773507b61fe317b56badb0c0dfa3c361c4549f784050cd5749018b366840661e3aa3b
6
+ metadata.gz: d558d264eedbedc90c9d568e7c9936a7d89e43b8688504eab7fb484dcdae22fe7fd477fdee8a5cce770f5adefd46c9a1468355df377517a7e0ca8699ec3649c9
7
+ data.tar.gz: af9030fc655eb07ef16f2e3c044ae3a137b82267da9b48fa5396c81d977647940e6584a01a41851c1f08afa50e72921e37d5d3e8de45a536fee5747a879cd6ca
@@ -19,16 +19,13 @@ jobs:
19
19
  strategy:
20
20
  fail-fast: false
21
21
  matrix:
22
- ruby-version: ["3.1", "3.2", "3.3", "3.4"]
23
- rails-version: ["7.0", "7.1", "7.2", "8.0"]
24
- exclude:
25
- - ruby-version: "3.1"
26
- rails-version: "8.0"
22
+ ruby-version: ["3.2", "3.3", "3.4", "4.0"]
23
+ rails-version: ["7.2", "8.0", "8.1"]
27
24
  runs-on: ubuntu-latest
28
25
  env:
29
26
  RAILS_VERSION: ${{ matrix.rails-version }}
30
27
  steps:
31
- - uses: actions/checkout@v3
28
+ - uses: actions/checkout@v6
32
29
  - name: Set up Ruby
33
30
  uses: ruby/setup-ruby@v1
34
31
  with:
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  # Unreleased
4
4
 
5
+ # 4.1.0 / 2025-12-03
6
+
7
+ * Add support for Rails 8.1. Drop support for Rails 7.0, 7.1 and Ruby 3.1
8
+
5
9
  # 4.0.1 / 2025-07-04
6
10
 
7
11
  * Bump `commander` runtime dependency version constraint to `< 6.0` due to deprecation of `abbrev` from Ruby standard library
data/Gemfile CHANGED
@@ -9,6 +9,6 @@ group :development, :test do
9
9
  gem "pry", "~> 0.10"
10
10
  gem "rails", "~> #{ENV['RAILS_VERSION']}" if ENV["RAILS_VERSION"]
11
11
  gem "rspec", "~> 3.13"
12
- gem "rspec-github", "~> 2.4.0"
13
- gem "rspec-its", "~> 1.2"
12
+ gem "rspec-github", "~> 3.0.0"
13
+ gem "rspec-its", "~> 2.0"
14
14
  end
data/lib/coach/router.rb CHANGED
@@ -29,7 +29,7 @@ module Coach
29
29
  end
30
30
 
31
31
  def match(url, **args)
32
- @mapper.match(url, args)
32
+ @mapper.match(url, **args)
33
33
  end
34
34
 
35
35
  private
data/lib/coach/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coach
4
- VERSION = "4.0.1"
4
+ VERSION = "4.1.0"
5
5
  end
@@ -4,8 +4,6 @@ require "spec_helper"
4
4
  require "coach/middleware_validator"
5
5
 
6
6
  describe Coach::MiddlewareValidator do
7
- subject(:validator) { described_class.new(head_middleware, already_provided) }
8
-
9
7
  let(:head_middleware) { build_middleware("Head") }
10
8
  let(:already_provided) { [] }
11
9
 
@@ -22,7 +20,7 @@ describe Coach::MiddlewareValidator do
22
20
  end
23
21
 
24
22
  describe "#validated_provides!" do
25
- subject { -> { validator.validated_provides! } }
23
+ subject(:validator) { -> { described_class.new(head_middleware, already_provided).validated_provides! } }
26
24
 
27
25
  context "with satisfied requires" do
28
26
  context "one level deep" do
@@ -60,7 +58,9 @@ describe Coach::MiddlewareValidator do
60
58
  context "at terminal" do
61
59
  before { head_middleware.requires :a, :c }
62
60
 
63
- it { is_expected.to raise_exception(/missing \[:a, :c\]/) }
61
+ it "raises an exception" do
62
+ expect { validator.call }.to raise_exception(/missing \[:a, :c\]/)
63
+ end
64
64
  end
65
65
 
66
66
  context "from unordered middleware" do
@@ -69,7 +69,9 @@ describe Coach::MiddlewareValidator do
69
69
  middleware_b.provides :b
70
70
  end
71
71
 
72
- it { is_expected.to raise_exception(/missing \[:b\]/) }
72
+ it "raises an exception" do
73
+ expect { validator.call }.to raise_exception(/missing \[:b\]/)
74
+ end
73
75
  end
74
76
  end
75
77
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coach
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-04 00:00:00.000000000 Z
10
+ date: 2025-12-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: actionpack