pakyow-routing 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/pakyow/routing/route.rb
CHANGED
@@ -66,9 +66,9 @@ module Pakyow
|
|
66
66
|
def initialize(route:, path:)
|
67
67
|
@route, @path = route, path
|
68
68
|
@params = String.normalize_path(File.join(@path.to_s, @route.path)).split("/").select { |segment|
|
69
|
-
segment.
|
69
|
+
segment.include?(":")
|
70
70
|
}.map { |segment|
|
71
|
-
segment[1..-1].to_sym
|
71
|
+
segment[(segment.index(":") + 1)..-1].to_sym
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
data/lib/pakyow/routing.rb
CHANGED
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.rc3
|
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-09 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.rc3
|
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.rc3
|
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.rc3
|
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.rc3
|
42
42
|
description: Routing functionality for Pakyow
|
43
43
|
email: bryan@metabahn.com
|
44
44
|
executables: []
|
@@ -48,9 +48,9 @@ files:
|
|
48
48
|
- CHANGELOG.md
|
49
49
|
- LICENSE
|
50
50
|
- README.md
|
51
|
+
- lib/pakyow/actions/routing/respond_missing.rb
|
51
52
|
- lib/pakyow/behavior/definition.rb
|
52
53
|
- lib/pakyow/routing.rb
|
53
|
-
- lib/pakyow/routing/actions/respond_missing.rb
|
54
54
|
- lib/pakyow/routing/controller.rb
|
55
55
|
- lib/pakyow/routing/controller/behavior/error_handling.rb
|
56
56
|
- lib/pakyow/routing/controller/behavior/param_verification.rb
|