kangaru 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kangaru/controller.rb +4 -0
- data/lib/kangaru/request.rb +4 -0
- data/lib/kangaru/version.rb +1 -1
- data/sig/kangaru/controller.rbs +2 -0
- data/sig/kangaru/request.rbs +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e098e423f68b6d540b63100a2d08b3580bf7ef43fb474f1610341b1ca9abe54a
|
4
|
+
data.tar.gz: c507badf07b6b1a72721fa0669b8ec483f43ecd0333e71035008dd8387ba93f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75ea57cd323a96034643389c65392439efb117cd800ba56f6296540dd94e1de027271db5af73191725a87c5f31a49af0298bcce8ff1092b6afc2b0574ba3205
|
7
|
+
data.tar.gz: b86424947eea484d98ed12d8df85399f7637aabcf6d74a98444264f4ccc78db9a49706a0ee7efad6aecb935c683bec07ef9a92957c7f8dd82b923c37094ea175
|
data/Gemfile.lock
CHANGED
data/lib/kangaru/controller.rb
CHANGED
data/lib/kangaru/request.rb
CHANGED
@@ -2,6 +2,8 @@ module Kangaru
|
|
2
2
|
class Request
|
3
3
|
using Patches::Inflections
|
4
4
|
|
5
|
+
extend Forwardable
|
6
|
+
|
5
7
|
include Configurable
|
6
8
|
|
7
9
|
DEFAULT_CONTROLLER = "DefaultController".freeze
|
@@ -25,6 +27,8 @@ module Kangaru
|
|
25
27
|
path_parser.action || DEFAULT_ACTION
|
26
28
|
end
|
27
29
|
|
30
|
+
def_delegators :path_parser, :id
|
31
|
+
|
28
32
|
private
|
29
33
|
|
30
34
|
def path_parser
|
data/lib/kangaru/version.rb
CHANGED
data/sig/kangaru/controller.rbs
CHANGED
data/sig/kangaru/request.rbs
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Kangaru
|
2
2
|
class Request
|
3
|
+
extend Forwardable
|
4
|
+
|
3
5
|
include Configurable
|
4
6
|
|
5
7
|
DEFAULT_CONTROLLER: String
|
@@ -15,6 +17,8 @@ module Kangaru
|
|
15
17
|
|
16
18
|
def action: -> Symbol
|
17
19
|
|
20
|
+
def id: -> Integer?
|
21
|
+
|
18
22
|
private
|
19
23
|
|
20
24
|
attr_reader path_parser: PathParser
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kangaru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Welham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|