kangaru 0.2.2 → 0.2.4
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/initialisers/rspec/request_helper.rb +1 -1
- data/lib/kangaru/request.rb +4 -0
- data/lib/kangaru/router.rb +1 -1
- data/lib/kangaru/version.rb +1 -1
- data/sig/kangaru/controller.rbs +2 -0
- data/sig/kangaru/request.rbs +4 -0
- data/sig/kangaru/router.rbs +0 -6
- 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: d272072193ecc198445e6c2684a48a6386b378d1b4b95e274bee330b4e8ab1a1
|
4
|
+
data.tar.gz: ce1f9cfc0df31304f232b97da67ee56ff3fadb1c83a495349d2dee4695693faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4487dc810856ee4c778ff257b77adda26ee453233fab85174997142e5215764d20e7112eb812f5232dc1821c4053ea95554cecccbec45d3d12ace87e5c042f9a
|
7
|
+
data.tar.gz: e14a8ee5a1dcb2b389d00b5e03c4cfed4d047a723fe70da001d40312d6054ede636847680d335863458209ba6623b21a35c016a5a303ea6a3f7969eb65110790
|
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/router.rb
CHANGED
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
|
data/sig/kangaru/router.rbs
CHANGED
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.4
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|