coach 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/coach/handler.rb +1 -1
- data/lib/coach/version.rb +1 -1
- data/spec/lib/coach/handler_spec.rb +3 -3
- data/spec/lib/coach/router_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b856ca96430e985e877986007588466ee8f9e88c28922bbe04cd11b3fdb4fbbd
|
4
|
+
data.tar.gz: e81299bebd9725a6312de76d3fc4bd8adb73d518cbbd846d222309c6656b3430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b855a60f92ba081cbce364d8c900106372370288a2683691c3f155ad7ad4a826a56e46ac024f253a9f64f212faabf88779c0b40b20ff709a1ec1780e7baebb83
|
7
|
+
data.tar.gz: ffa8f6e7a854093c66c826bb4bbb5b32fec0e3daf120e8dc131590175af0a94181af8a494efdfd4232cf0d813aec4db34e73e8c78297dc678656066c855a35fa
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
# Unreleased
|
4
4
|
|
5
|
+
# 3.0.1 / 2022-03-09
|
6
|
+
|
7
|
+
* [#120](https://github.com/gocardless/coach/pull/120) Fixes missing method from middleware in Rails 7
|
8
|
+
|
5
9
|
# 3.0.0 / 2021-09-09
|
6
10
|
|
7
11
|
* [#105](https://github.com/gocardless/coach/pull/105) Add support for module/class names to be
|
data/lib/coach/handler.rb
CHANGED
data/lib/coach/version.rb
CHANGED
@@ -47,14 +47,14 @@ describe Coach::Handler do
|
|
47
47
|
subject(:handler) { described_class.new(terminal_middleware.name, handler: true) }
|
48
48
|
|
49
49
|
before do
|
50
|
-
allow(ActiveSupport::
|
51
|
-
allow(ActiveSupport::
|
50
|
+
allow(ActiveSupport::Inflector).to receive(:constantize).and_call_original
|
51
|
+
allow(ActiveSupport::Inflector).to receive(:constantize).
|
52
52
|
with(terminal_middleware.name).
|
53
53
|
and_return(terminal_middleware)
|
54
54
|
end
|
55
55
|
|
56
56
|
it "does not load the route when initialized" do
|
57
|
-
expect(ActiveSupport::
|
57
|
+
expect(ActiveSupport::Inflector).
|
58
58
|
to_not receive(:constantize).with(terminal_middleware.name)
|
59
59
|
|
60
60
|
handler
|
@@ -86,10 +86,10 @@ describe Coach::Router do
|
|
86
86
|
let(:resource_routes) { Routes::Thing.name }
|
87
87
|
|
88
88
|
before do
|
89
|
-
allow(ActiveSupport::
|
89
|
+
allow(ActiveSupport::Inflector).to receive(:constantize).and_call_original
|
90
90
|
|
91
91
|
routes.each do |class_name|
|
92
|
-
allow(ActiveSupport::
|
92
|
+
allow(ActiveSupport::Inflector).to receive(:constantize).
|
93
93
|
with("Routes::Thing::#{class_name}").
|
94
94
|
and_return(Routes::Thing.const_get(class_name))
|
95
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coach
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|