grape-path-helpers 1.7.1 → 2.0.1
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +22 -21
- data/grape-path-helpers.gemspec +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 +8 -8
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,14 @@
|
|
|
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
|
+
|
|
8
|
+
## 2.0.0
|
|
9
|
+
|
|
10
|
+
* [Adds support for Rack 3](https://gitlab.com/gitlab-org/ruby/gems/grape-path-helpers/-/merge_requests/45)
|
|
11
|
+
|
|
3
12
|
## 1.7.1
|
|
4
13
|
|
|
5
14
|
* Fix undefined method error (https://gitlab.com/gitlab-org/grape-path-helpers/-/merge_requests/42)
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
grape-path-helpers (
|
|
4
|
+
grape-path-helpers (2.0.1)
|
|
5
5
|
activesupport
|
|
6
|
-
grape (~>
|
|
6
|
+
grape (~> 2.0)
|
|
7
7
|
rake (> 12)
|
|
8
8
|
ruby2_keywords (~> 0.0.2)
|
|
9
9
|
|
|
@@ -18,33 +18,33 @@ GEM
|
|
|
18
18
|
ast (2.4.0)
|
|
19
19
|
builder (3.2.4)
|
|
20
20
|
coderay (1.1.2)
|
|
21
|
-
concurrent-ruby (1.
|
|
21
|
+
concurrent-ruby (1.2.2)
|
|
22
22
|
diff-lcs (1.3)
|
|
23
|
-
dry-
|
|
23
|
+
dry-core (1.0.1)
|
|
24
24
|
concurrent-ruby (~> 1.0)
|
|
25
|
-
|
|
25
|
+
zeitwerk (~> 2.6)
|
|
26
|
+
dry-inflector (1.0.0)
|
|
27
|
+
dry-logic (1.5.0)
|
|
26
28
|
concurrent-ruby (~> 1.0)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
dry-core (~> 1.0, < 2)
|
|
30
|
+
zeitwerk (~> 2.6)
|
|
31
|
+
dry-types (1.7.1)
|
|
29
32
|
concurrent-ruby (~> 1.0)
|
|
30
|
-
dry-core (~>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
dry-logic (~> 1.0, >= 1.0.2)
|
|
37
|
-
grape (1.6.2)
|
|
38
|
-
activesupport
|
|
33
|
+
dry-core (~> 1.0)
|
|
34
|
+
dry-inflector (~> 1.0)
|
|
35
|
+
dry-logic (~> 1.4)
|
|
36
|
+
zeitwerk (~> 2.6)
|
|
37
|
+
grape (2.0.0)
|
|
38
|
+
activesupport (>= 5)
|
|
39
39
|
builder
|
|
40
40
|
dry-types (>= 1.1)
|
|
41
41
|
mustermann-grape (~> 1.0.0)
|
|
42
42
|
rack (>= 1.3.0)
|
|
43
43
|
rack-accept
|
|
44
|
-
i18n (1.
|
|
44
|
+
i18n (1.14.1)
|
|
45
45
|
concurrent-ruby (~> 1.0)
|
|
46
46
|
method_source (0.9.0)
|
|
47
|
-
minitest (5.
|
|
47
|
+
minitest (5.20.0)
|
|
48
48
|
mustermann (3.0.0)
|
|
49
49
|
ruby2_keywords (~> 0.0.1)
|
|
50
50
|
mustermann-grape (1.0.2)
|
|
@@ -56,11 +56,11 @@ GEM
|
|
|
56
56
|
pry (0.11.3)
|
|
57
57
|
coderay (~> 1.1.0)
|
|
58
58
|
method_source (~> 0.9.0)
|
|
59
|
-
rack (
|
|
59
|
+
rack (3.0.8)
|
|
60
60
|
rack-accept (0.4.5)
|
|
61
61
|
rack (>= 0.4)
|
|
62
62
|
rainbow (3.0.0)
|
|
63
|
-
rake (13.0
|
|
63
|
+
rake (13.1.0)
|
|
64
64
|
rspec (3.7.0)
|
|
65
65
|
rspec-core (~> 3.7.0)
|
|
66
66
|
rspec-expectations (~> 3.7.0)
|
|
@@ -83,9 +83,10 @@ GEM
|
|
|
83
83
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
84
84
|
ruby-progressbar (1.9.0)
|
|
85
85
|
ruby2_keywords (0.0.5)
|
|
86
|
-
tzinfo (2.0.
|
|
86
|
+
tzinfo (2.0.6)
|
|
87
87
|
concurrent-ruby (~> 1.0)
|
|
88
88
|
unicode-display_width (1.3.3)
|
|
89
|
+
zeitwerk (2.6.12)
|
|
89
90
|
|
|
90
91
|
PLATFORMS
|
|
91
92
|
ruby
|
data/grape-path-helpers.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
|
12
12
|
gem.homepage = 'https://gitlab.com/gitlab-org/grape-path-helpers'
|
|
13
13
|
|
|
14
14
|
gem.add_runtime_dependency 'activesupport'
|
|
15
|
-
gem.add_runtime_dependency 'grape', '~>
|
|
15
|
+
gem.add_runtime_dependency 'grape', '~> 2.0'
|
|
16
16
|
gem.add_runtime_dependency 'rake', '> 12'
|
|
17
17
|
gem.add_runtime_dependency 'ruby2_keywords', '~> 0.0.2'
|
|
18
18
|
|
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))
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-path-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Drew Blessing
|
|
8
8
|
- Harper Henn
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -31,14 +31,14 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '
|
|
34
|
+
version: '2.0'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '
|
|
41
|
+
version: '2.0'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: rake
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -147,7 +147,7 @@ homepage: https://gitlab.com/gitlab-org/grape-path-helpers
|
|
|
147
147
|
licenses:
|
|
148
148
|
- MIT
|
|
149
149
|
metadata: {}
|
|
150
|
-
post_install_message:
|
|
150
|
+
post_install_message:
|
|
151
151
|
rdoc_options: []
|
|
152
152
|
require_paths:
|
|
153
153
|
- lib
|
|
@@ -162,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
- !ruby/object:Gem::Version
|
|
163
163
|
version: '0'
|
|
164
164
|
requirements: []
|
|
165
|
-
rubygems_version: 3.
|
|
166
|
-
signing_key:
|
|
165
|
+
rubygems_version: 3.5.2
|
|
166
|
+
signing_key:
|
|
167
167
|
specification_version: 4
|
|
168
168
|
summary: Route path helpers for Grape
|
|
169
169
|
test_files: []
|