grape-path-helpers 2.0.0 → 2.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 +5 -0
- data/Gemfile.lock +1 -1
- data/lib/grape-path-helpers/version.rb +1 -1
- data/lib/grape-path-helpers.rb +1 -1
- data/spec/grape_path_helpers/named_route_matcher_spec.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e71d56159cc94723aad37fb1ce55ae321867cfd317b199514115264f0e1f1bc4
|
4
|
+
data.tar.gz: 24949aafa6b2e4083a089a966ee63d05a9329ff464021052c2cd0ab55373719a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc587fd5d313052aa4c96d1342e8a589232f54c2541493302550d346aa06be442b7d9784cebc25a7dde626b4a3a702e315b63c037870cfd7e377ff2ac0986765
|
7
|
+
data.tar.gz: ce2d8e7087725c144ca7b53ef42bdd90588bef92bc12539c47a6939589bd4ffd1f71e0be409d640556fde3f50c9ecf67c02d47a52d113af63a91f7a6f4c4c73a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.0.1
|
4
|
+
|
5
|
+
* [Fix helpers not available by default in Grape endpoints](https://gitlab.com/gitlab-org/ruby/gems/grape-path-helpers/-/merge_requests/46)
|
6
|
+
|
7
|
+
|
3
8
|
## 2.0.0
|
4
9
|
|
5
10
|
* [Adds support for Rack 3](https://gitlab.com/gitlab-org/ruby/gems/grape-path-helpers/-/merge_requests/45)
|
data/Gemfile.lock
CHANGED
data/lib/grape-path-helpers.rb
CHANGED
@@ -20,6 +20,13 @@ describe GrapePathHelpers::NamedRouteMatcher do
|
|
20
20
|
fake_class.new
|
21
21
|
end
|
22
22
|
|
23
|
+
it 'is available inside Grape endpoints' do
|
24
|
+
endpoint = Spec::Support::API.endpoints.first
|
25
|
+
|
26
|
+
expect(endpoint.api_v1_cats_path(id: 5))
|
27
|
+
.to eq('/api/v1/cats/5.json')
|
28
|
+
end
|
29
|
+
|
23
30
|
describe '#method_missing' do
|
24
31
|
it 'returns super method_missing if the route does not exist' do
|
25
32
|
expect(helper_class.test_method(id: 1))
|