slack_500 1.0.0 → 1.1.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: ac1c1b6dc3ca8831e3a9b5f6360c9c2011bb726e30048c147a6c1463744cd8a6
4
- data.tar.gz: 1d921521932c24984e0f694334b51dc984d1d737d80b9fde80d8a057990993e9
3
+ metadata.gz: 563b520c7aa9866295b2d884c47490a26096c87f5301b6a2d33d0f9d0998a664
4
+ data.tar.gz: d076c0cf542b9dc1b6e89e95b4f8e08ad4dd7a0302c64ff5f645d4b4c7009110
5
5
  SHA512:
6
- metadata.gz: b549422dd0ebf5f040338dfdad7d19ba784267e4ffba5b4b4aa4902c3f489274a217cd5b2ca7f1bd5f87ce122266d2d3f31040a5808d6ee4f5519ad7444f3030
7
- data.tar.gz: ba96b1d51abfdd23bb6651e2cedf5060ef0450ada650a2938788a4a8d62ab3d457d48ec00a13c8d2dcbc65bc46365a5fd6c2021b8bb688b7ddc70f7d9e56bf38
6
+ metadata.gz: 53730ab5b02f003a0b59c4247daf8752d81e160e246ce34a469de344a187baa39d232abeef9b07a3d5c09e763c7f3706afffa92d8fc2b1b7fd3acc9bf41f8731
7
+ data.tar.gz: fed8ba552921d46969aac3d23fc2808384049948cb7576668f268f0a8915a652043d96595f9a2a99fef24d660078fdcb8fc642b5e50ee6548bc8efb92c303cf4
@@ -1,3 +1,3 @@
1
1
  module Slack500
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/slack_500.rb CHANGED
@@ -47,7 +47,7 @@ module Slack500
47
47
  return
48
48
  end
49
49
 
50
- text = "#{request.method} #{request.url} (#{request.user_agent}) : #{request.query_parameters}\n#{exception.message}\n#{exception.backtrace.map {|s| s.gsub(Rails.root.to_s, '')}.join("\n")}"
50
+ text = "\n\n:black_small_square:*Request*\n*#{request.method}* #{request.url}\n\n:black_small_square:*User Agent*\n#{request.user_agent}\n\n:black_small_square:*IP*\n#{request.remote_ip}\n\n:black_small_square:*Query*\n#{request.query_parameters}\n\n:black_small_square:*Message*\n#{exception.message}\n\n:black_small_square:*Backtrace*\n#{exception.backtrace.map {|s| "`#{s.gsub('`','').gsub("'",'').gsub(Rails.root.to_s, '')}`"}.join("\n")}"
51
51
 
52
52
  default_params = {
53
53
  pretext: self.pretext,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_500
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuo Matsunaga
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-25 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler