pakyow-routing 1.0.0.rc2 → 1.0.0.rc3

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.
@@ -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.start_with?(":")
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
 
@@ -7,4 +7,4 @@ require "pakyow/validations"
7
7
 
8
8
  require "pakyow/routing/framework"
9
9
 
10
- require "pakyow/routing/actions/respond_missing"
10
+ require "pakyow/actions/routing/respond_missing"
@@ -13,7 +13,7 @@ module Pakyow
13
13
  configurable :csrf do
14
14
  setting :protection, {}
15
15
  setting :origin_whitelist, []
16
- setting :param, :authenticity_token
16
+ setting :param, :"pw-authenticity-token"
17
17
  end
18
18
  end
19
19
 
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.rc2
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-04 00:00:00.000000000 Z
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.rc2
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.rc2
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.rc2
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.rc2
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