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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a113303a0a5d45d56f938861944573df97e98ad6fd2ef1dc53a8a48d188aeade
4
- data.tar.gz: 4bbe10ff5c3f8b91d82999cc83f52f415d6fca35c061c300b01b73d4f5c0b87a
3
+ metadata.gz: 183742309b2ea81e02c1fc03e035de18a95d12816415faa08191432f0ce4775f
4
+ data.tar.gz: c8523ce01ed074009a82d44f3e86c9c188a46fb7240dae833eedc2e8a63f9a26
5
5
  SHA512:
6
- metadata.gz: fae826a9496cc069bd60e2ce4120b1378e951655870b7b7042251028fe0571c0b238cf0502a5c4e24a575397e20ec311efbc2cac87bde299f2f00cfa68046bd9
7
- data.tar.gz: 9e00a82ffe3d2365d26edb6810cf26b45f8381ba99aa31c5c4e30af630ee7b94f255fc5fb3700e4eb4c7347f4b83049b8f328c6763cb08934ea256db04813cb8
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)
@@ -1,3 +1,3 @@
1
1
  module Kamigo
2
- VERSION = '0.27.0'.freeze
2
+ VERSION = '0.28.0'.freeze
3
3
  end
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.27.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: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails