kamigo 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kamigo/event_processors/rails_router_processor.rb +4 -0
- data/lib/kamigo/version.rb +1 -1
- 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: 183742309b2ea81e02c1fc03e035de18a95d12816415faa08191432f0ce4775f
|
4
|
+
data.tar.gz: c8523ce01ed074009a82d44f3e86c9c188a46fb7240dae833eedc2e8a63f9a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c23e1abd2a0432ef3a723abcc041402ddd46f39049872f34f024bf2bcc6f8a8d9888541b05d8d3cc8d3728b288d54407bc6bff8e819bf9ec296258eccb6caaa
|
7
|
+
data.tar.gz: 7da6014ce051f0047983098b2191aa5938962a0628751e700c2003223afd449325c6ce73e70c546fbd32f6a3fcba2f94469d34859f6b322492635eb5abc55e98
|
@@ -10,6 +10,8 @@ module Kamigo
|
|
10
10
|
def process(event)
|
11
11
|
http_method, path, request_params = kamiform_context(event)
|
12
12
|
http_method, path, request_params = language_understanding(event.message) if http_method.nil?
|
13
|
+
return nil if http_method.nil? || path.nil?
|
14
|
+
|
13
15
|
encoded_path = URI::Parser.new.escape(path)
|
14
16
|
request_params = event.platform_params.merge(request_params)
|
15
17
|
output = reserve_route(encoded_path, http_method: http_method, request_params: request_params, format: :line)
|
@@ -61,6 +63,8 @@ module Kamigo
|
|
61
63
|
request_params[:authenticity_token] = @form_authenticity_token
|
62
64
|
http_method = request_params["_method"]&.upcase || http_method || "GET"
|
63
65
|
[http_method, path, request_params]
|
66
|
+
rescue
|
67
|
+
[nil, nil, nil]
|
64
68
|
end
|
65
69
|
|
66
70
|
def parse_json(string)
|
data/lib/kamigo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kamigo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- etrex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|