kamigo 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc2f8fe076b3e0e5411f48097035ba1e8ec4d498d5ce3e9a402142e0a78cdcc9
4
- data.tar.gz: b74f073c1dd14bd3d6464fc926cc9499c1e6799fffef42109680a3238f1934d2
3
+ metadata.gz: cd7de6a9ea248cf2ac5fd304f4ae4c548addce3c6d80863c729b5576834d4f39
4
+ data.tar.gz: 4e47ba29e3f6af849f875fad015bc362869ffd27fbd0548811f7f90552bf8ed4
5
5
  SHA512:
6
- metadata.gz: 3bff23552b3454a7e476a74c31eb640d5da4c5af45326c4c03990fc50679621083d153fcfa8169fbb47ae633d3aefb4f9697e24351ef63711ca529f1d989f56c
7
- data.tar.gz: 995dc759b650a24d5b3f3ee5e26a538befab416ab625aab7f63d0176cba608aa4e321150c3b795111a08ab952359c79f24512a529a0a60a44d648650bb3121cd
6
+ metadata.gz: 6940b6f12c43be6573722bd718349b17c13dec6a308692fda9adbf3074d45f2debc005f6d4ab38d3526e5158cae8c2ea9f044c765778fb53574e1c0e4e1024fc
7
+ data.tar.gz: 82699631256ef0d51e66957196408ad4ecc814544d4be1edd91abcb2de3b00fc28b586e5cc91062399e695848fa92213c1735bcb7b3f3142e6b472825b49c522
@@ -15,7 +15,6 @@ class LineController < ApplicationController
15
15
 
16
16
  def process_event(event)
17
17
  reply_token = event['replyToken']
18
- event
19
18
  http_method, path, request_params = language_understanding(event.message['text'])
20
19
  inject_event(event, to: request_params)
21
20
  output = reserve_route(path, http_method: http_method, request_params: request_params, format: :line)
@@ -53,12 +53,12 @@ class <%= controller_class_name %>Controller < ApplicationController
53
53
  if @<%= orm_instance.update("#{singular_table_name}_params") %>
54
54
  @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
55
55
  format.html { redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully updated.'" %> }
56
- format.json { render :show, status: :ok, location: <%= "@#{singular_table_name}" %> }
56
+ format.json { render :show, status: :ok, location: @<%= singular_table_name %> }
57
57
  format.line { render :index }
58
58
  else
59
59
  format.html { render :edit }
60
- format.json { render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity }
61
- format.line { render json: flex_text(@todo.errors.to_s) }
60
+ format.json { render json: @<%= orm_instance.errors %>, status: :unprocessable_entity }
61
+ format.line { render json: flex_text(@<%= orm_instance.errors %>.to_s) }
62
62
  end
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module Kamigo
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - etrex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails