pakyow-routing 1.0.0.rc3 → 1.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pakyow/routing/extensions/resource.rb +6 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27374987dcaeb1ccc936b59bbfd1f410be2baa5fc38da6aa3784a7288249908b
|
4
|
+
data.tar.gz: 1f57c09c023cfef7b5d765dd2502fb47790066ebefd3ada52dc4a00b8ca384e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 110297000c1f563cae4da910079eebea6ee6720a88c09ba7dc71e3754b667d9b96ae5bb75098a1d5da4771b1bf1085b2fcbc53bf58afc4dc740c948ac84f3049
|
7
|
+
data.tar.gz: aee1e6809f6be8dc51eeb07b9c90f30e03629c79d2bd3c9e01b92ce956e901d68757d90ef426a53e6cecfd750b265339415fabb87d61ffc65b52b014ea9d04d0
|
@@ -76,6 +76,12 @@ module Pakyow
|
|
76
76
|
nested_param = "#{Support.inflector.singularize(controller.__object_name.name)}_#{param}".to_sym
|
77
77
|
nested_resource_id = ":#{nested_param}"
|
78
78
|
|
79
|
+
action :set_common_param do
|
80
|
+
if params.include?(param)
|
81
|
+
params[nested_param] ||= params[param]
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
79
85
|
action :update_request_path_for_show, only: [:show] do
|
80
86
|
connection.get(:__endpoint_path).gsub!(resource_id, "show")
|
81
87
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pakyow-routing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-07-
|
12
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pakyow-core
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.0.0.
|
20
|
+
version: 1.0.0.rc4
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.0.0.
|
27
|
+
version: 1.0.0.rc4
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pakyow-support
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.0.0.
|
34
|
+
version: 1.0.0.rc4
|
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: 1.0.0.
|
41
|
+
version: 1.0.0.rc4
|
42
42
|
description: Routing functionality for Pakyow
|
43
43
|
email: bryan@metabahn.com
|
44
44
|
executables: []
|