chatwork_webhook_verify 0.1.0 → 1.0.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: 9a1055ca5bbcbe6d7532aabd3c400770ed6672c3957c9beafa8ec0f799d03200
4
- data.tar.gz: a9803300c09d7c8c75d8a09189d9bf92d648b2a78558c0cf952dc2884c3914c9
3
+ metadata.gz: a2f866beee615361eeecff49f6718f9056c0030844f356395d7521764e57b996
4
+ data.tar.gz: a910f1be8342b29260d3afe972e9b4b74cfd302728bb4575eeaaa99d08af825b
5
5
  SHA512:
6
- metadata.gz: afa01d6979dd651823a3181faea3784a07102dabd912d0ec1ed27194e26893bf9a1c7435c972035bb53eb48f39fb47ee57969e36ac96855c2393d08f9c74c66f
7
- data.tar.gz: 07c9aafd537388d0a617049d123c95c4265431cd9b1ee766c8aa4bc373616775d53dbe153e56b7cd532759b811f968e793444da060e8d1da1b06b15058712eb0
6
+ metadata.gz: b07ee5661bed91442ba32e2fadcff98e46f513f70e989b541a627e4e0ff088562879c3585dd3589499e4c3a7c6168486f41d2245e57f27f7be7b29337a076e73
7
+ data.tar.gz: db4d71e1cfed8ac5ac96b6998e8a215790560d55e7fa4d911af719ff91b7b996430a62667911a36c2935e322bf44180572af1ac348a29a150a19cb35ebdb5e21
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # ChatworkWebhookVerify
2
2
  Verify ChatWork webhook signature
3
3
 
4
- [![Build Status](https://travis-ci.org/sue445/chatwork_webhook_verify.svg?branch=master)](https://travis-ci.org/sue445/chatwork_webhook_verify)
4
+ [![Gem Version](https://badge.fury.io/rb/chatwork_webhook_verify.svg)](https://badge.fury.io/rb/chatwork_webhook_verify)
5
+ [![Build Status](https://github.com/sue445/chatwork_webhook_verify/workflows/test/badge.svg?branch=master)](https://github.com/sue445/chatwork_webhook_verify/actions?query=workflow%3Atest)
5
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/d7ea5e910c29987c7c0e/maintainability)](https://codeclimate.com/github/sue445/chatwork_webhook_verify/maintainability)
6
7
  [![Coverage Status](https://coveralls.io/repos/github/sue445/chatwork_webhook_verify/badge.svg?branch=master)](https://coveralls.io/github/sue445/chatwork_webhook_verify?branch=master)
7
- [![Dependency Status](https://gemnasium.com/badges/github.com/sue445/chatwork_webhook_verify.svg)](https://gemnasium.com/github.com/sue445/chatwork_webhook_verify)
8
8
 
9
9
  ## Installation
10
10
  Add this line to your application's Gemfile:
@@ -45,8 +45,13 @@ ChatworkWebhookVerify.verify!(token: token, body: body, signature: signature)
45
45
  call `verify_chatwork_webhook_signature!` in your controller
46
46
 
47
47
  ### Example 1
48
+ ```ruby
49
+ # config/initializers/chatwork_webhook_verify.rb
50
+ ChatworkWebhookVerify.config.token = ENV["CHATWORK_WEBHOOK_TOKEN"]
51
+ ```
48
52
 
49
53
  ```ruby
54
+ # app/controllers/webhook_controller.rb
50
55
  class WebhookController < ApplicationController
51
56
  # `ChatworkWebhookVerify.config.token` is used
52
57
  before_action :verify_chatwork_webhook_signature!
@@ -54,8 +59,8 @@ end
54
59
  ```
55
60
 
56
61
  ### Example 2
57
-
58
62
  ```ruby
63
+ # app/controllers/webhook_controller.rb
59
64
  class WebhookController < ApplicationController
60
65
  before_action :verify_chatwork_webhook_signature_with_own_token!
61
66
 
@@ -65,6 +70,24 @@ class WebhookController < ApplicationController
65
70
  end
66
71
  ```
67
72
 
73
+ ## for Sinatra
74
+ ```ruby
75
+ # app.rb
76
+ class App < Sinatra::Base
77
+ before "/webhook" do
78
+ token = ENV["CHATWORK_WEBHOOK_TOKEN"]
79
+ body = request.body.read
80
+ signature = request.env["HTTP_X_CHATWORKWEBHOOKSIGNATURE"]
81
+
82
+ ChatworkWebhookVerify.verify!(token: token, body: body, signature: signature)
83
+ end
84
+
85
+ post "/webhook" do
86
+ "ok"
87
+ end
88
+ end
89
+ ```
90
+
68
91
  ## Configuration
69
92
  ```ruby
70
93
  ChatworkWebhookVerify.config.token = ENV["CHATWORK_WEBHOOK_TOKEN"]
@@ -1,3 +1,3 @@
1
1
  module ChatworkWebhookVerify
2
- VERSION = '0.1.0'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -15,7 +15,7 @@ Rails.application.configure do
15
15
  # Configure public file server for tests with Cache-Control for performance.
16
16
  config.public_file_server.enabled = true
17
17
  config.public_file_server.headers = {
18
- 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
18
+ 'Cache-Control' => "public, max-age=3600"
19
19
  }
20
20
 
21
21
  # Show full error reports and disable caching.
@@ -23,7 +23,11 @@ Rails.application.configure do
23
23
  config.action_controller.perform_caching = false
24
24
 
25
25
  # Raise exceptions instead of rendering exception templates.
26
- config.action_dispatch.show_exceptions = false
26
+ if ActiveSupport.version >= Gem::Version.new("7.1.0")
27
+ config.action_dispatch.show_exceptions = :none
28
+ else
29
+ config.action_dispatch.show_exceptions = false
30
+ end
27
31
 
28
32
  # Disable request forgery protection in test environment.
29
33
  config.action_controller.allow_forgery_protection = false
@@ -33,4 +37,8 @@ Rails.application.configure do
33
37
 
34
38
  # Raises error for missing translations
35
39
  # config.action_view.raise_on_missing_translations = true
40
+
41
+ if ActiveSupport.version >= Gem::Version.new("7.1.0")
42
+ config.active_support.cache_format_version = 7.0
43
+ end
36
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatwork_webhook_verify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-24 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -25,21 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: codeclimate-test-reporter
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.0.0
41
- - !ruby/object:Gem::Dependency
42
- name: coveralls
28
+ name: coveralls_reborn
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -112,16 +98,16 @@ dependencies:
112
98
  name: simplecov
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - "<"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: 0.18.0
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - "<"
123
109
  - !ruby/object:Gem::Version
124
- version: '0'
110
+ version: 0.18.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: yard
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -184,15 +170,18 @@ files:
184
170
  - spec/dummy/config/routes.rb
185
171
  - spec/dummy/config/secrets.yml
186
172
  - spec/dummy/config/spring.rb
187
- - spec/dummy/log/development.log
188
- - spec/dummy/log/test.log
189
173
  - spec/rails_helper.rb
190
174
  - spec/spec_helper.rb
191
175
  homepage: https://github.com/sue445/chatwork_webhook_verify
192
176
  licenses:
193
177
  - MIT
194
- metadata: {}
195
- post_install_message:
178
+ metadata:
179
+ homepage_uri: https://github.com/sue445/chatwork_webhook_verify
180
+ source_code_uri: https://github.com/sue445/chatwork_webhook_verify
181
+ changelog_uri: https://github.com/sue445/chatwork_webhook_verify/blob/master/CHANGELOG.md
182
+ documentation_uri: https://sue445.github.io/chatwork_webhook_verify/
183
+ rubygems_mfa_required: 'true'
184
+ post_install_message:
196
185
  rdoc_options: []
197
186
  require_paths:
198
187
  - lib
@@ -200,21 +189,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
189
  requirements:
201
190
  - - ">="
202
191
  - !ruby/object:Gem::Version
203
- version: '0'
192
+ version: '2.4'
204
193
  required_rubygems_version: !ruby/object:Gem::Requirement
205
194
  requirements:
206
195
  - - ">="
207
196
  - !ruby/object:Gem::Version
208
197
  version: '0'
209
198
  requirements: []
210
- rubyforge_project:
211
- rubygems_version: 2.7.4
212
- signing_key:
199
+ rubygems_version: 3.5.3
200
+ signing_key:
213
201
  specification_version: 4
214
202
  summary: Verify ChatWork webhook signature
215
203
  test_files:
216
204
  - spec/chatwork_webhook_verify/controller_extension_spec.rb
217
205
  - spec/chatwork_webhook_verify_spec.rb
206
+ - spec/dummy/Rakefile
218
207
  - spec/dummy/app/assets/config/manifest.js
219
208
  - spec/dummy/app/assets/javascripts/application.js
220
209
  - spec/dummy/app/assets/stylesheets/application.css
@@ -245,8 +234,5 @@ test_files:
245
234
  - spec/dummy/config/secrets.yml
246
235
  - spec/dummy/config/spring.rb
247
236
  - spec/dummy/config.ru
248
- - spec/dummy/log/development.log
249
- - spec/dummy/log/test.log
250
- - spec/dummy/Rakefile
251
237
  - spec/rails_helper.rb
252
238
  - spec/spec_helper.rb
File without changes
@@ -1,122 +0,0 @@
1
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:03:41 +0900
2
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:03:41 +0900
3
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:04:22 +0900
4
- Processing by WebhookController#test as HTML
5
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
6
- Completed 200 OK in 1ms (Views: 0.1ms)
7
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:04:22 +0900
8
- Processing by WebhookController#test as HTML
9
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
10
- Completed 200 OK in 0ms (Views: 0.1ms)
11
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:06:02 +0900
12
- Processing by WebhookController#test as HTML
13
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
14
- Completed 200 OK in 1ms (Views: 0.3ms)
15
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:06:02 +0900
16
- Processing by WebhookController#test as HTML
17
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
18
- Completed 200 OK in 0ms (Views: 0.2ms)
19
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:06:54 +0900
20
- Processing by WebhookController#test as HTML
21
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
22
- Completed 200 OK in 1ms (Views: 0.3ms)
23
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:06:54 +0900
24
- Processing by WebhookController#test as HTML
25
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
26
- Completed 200 OK in 0ms (Views: 0.2ms)
27
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:07:09 +0900
28
- Processing by WebhookController#test as HTML
29
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
30
- Completed 200 OK in 0ms (Views: 0.1ms)
31
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:07:09 +0900
32
- Processing by WebhookController#test as HTML
33
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
34
- Completed 200 OK in 0ms (Views: 0.1ms)
35
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:08:55 +0900
36
- Processing by WebhookController#test as HTML
37
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
38
- Completed 500 Internal Server Error in 14ms
39
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:08:55 +0900
40
- Processing by WebhookController#test as HTML
41
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
42
- Completed 500 Internal Server Error in 17ms
43
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:11:37 +0900
44
- Processing by WebhookController#test as HTML
45
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
46
- Completed 500 Internal Server Error in 7ms
47
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:11:37 +0900
48
- Processing by WebhookController#test as HTML
49
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
50
- Completed 500 Internal Server Error in 7ms
51
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:11:54 +0900
52
- Processing by WebhookController#test as HTML
53
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
54
- Completed 200 OK in 1ms (Views: 0.1ms)
55
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:11:54 +0900
56
- Processing by WebhookController#test as HTML
57
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
58
- Completed 500 Internal Server Error in 1ms
59
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:25:56 +0900
60
- Processing by WebhookController#test as HTML
61
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
62
- Completed 500 Internal Server Error in 0ms
63
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:25:56 +0900
64
- Processing by WebhookController#test as HTML
65
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
66
- Completed 500 Internal Server Error in 0ms
67
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:32:08 +0900
68
- Processing by WebhookController#test as HTML
69
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
70
- Completed 200 OK in 1ms (Views: 0.2ms)
71
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:32:08 +0900
72
- Processing by WebhookController#test as HTML
73
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
74
- Completed 500 Internal Server Error in 1ms
75
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:33:35 +0900
76
- Processing by WebhookController#test as HTML
77
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
78
- Completed 200 OK in 1ms (Views: 0.2ms)
79
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:33:35 +0900
80
- Processing by WebhookController#test as HTML
81
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
82
- Completed 500 Internal Server Error in 1ms
83
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:34:45 +0900
84
- Processing by WebhookController#test as HTML
85
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
86
- Completed 200 OK in 1ms (Views: 0.2ms)
87
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:34:45 +0900
88
- Processing by WebhookController#test as HTML
89
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
90
- Completed 500 Internal Server Error in 1ms
91
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:48:17 +0900
92
- Processing by WebhookController#test as HTML
93
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
94
- Completed 200 OK in 1ms (Views: 0.1ms)
95
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:48:17 +0900
96
- Processing by WebhookController#test as HTML
97
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
98
- Completed 500 Internal Server Error in 1ms
99
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:48:39 +0900
100
- Processing by WebhookController#test as HTML
101
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
102
- Completed 500 Internal Server Error in 15ms
103
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:48:39 +0900
104
- Processing by WebhookController#test as HTML
105
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
106
- Completed 500 Internal Server Error in 14ms
107
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:52:56 +0900
108
- Processing by WebhookController#test as HTML
109
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
110
- Completed 200 OK in 1ms (Views: 0.2ms)
111
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:52:56 +0900
112
- Processing by WebhookController#test as HTML
113
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
114
- Completed 500 Internal Server Error in 1ms
115
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:56:24 +0900
116
- Processing by WebhookController#test as HTML
117
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
118
- Completed 200 OK in 1ms (Views: 0.1ms)
119
- Started POST "/webhook" for 127.0.0.1 at 2018-01-24 01:56:24 +0900
120
- Processing by WebhookController#test as HTML
121
- Parameters: {"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}, "webhook"=>{"webhook_setting_id"=>"581", "webhook_event_type"=>"mention_to_me", "webhook_event_time"=>1516629767, "webhook_event"=>{"from_account_id"=>2861671, "to_account_id"=>2739132, "room_id"=>93207172, "message_id"=>"1007287971738591232", "body"=>"[rp aid=2739132 to=93207172-1007287785163345920] sue445\ntest", "send_time"=>1516629766, "update_time"=>0}}}
122
- Completed 500 Internal Server Error in 1ms