exception-track 0.3.1 → 0.4.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: 0cd50c7c395da0c15c9681c7e5f752db277a29daf791793fac5965255ecb98ab
4
- data.tar.gz: 94eb9f1d0cb8eccf8c04afad81113c8d00d9c0df66c672db2d2029f86918a18d
3
+ metadata.gz: 02aea7ddf454611b2daaa86dcebbd8b2350299aec54ebed5527480ac48756b04
4
+ data.tar.gz: 517e314cbbd311e37ab70744e3a979bc7b9c89bcf7f4de94be8abd9baedcb1e3
5
5
  SHA512:
6
- metadata.gz: 38bc9bc789835bb75a966846198b05bd31ccc87503b2e6d00681b8c21a466d0fe5c7bb5e3455a991dc08d7b9deba0787bcfea20692e8a44983e4647d84518b6c
7
- data.tar.gz: 2936a9154f94c04848a0deca667fa4f7a02b97176bf057e0c3b6e06e33cb7dcc8b9745679d80c6cf4b80fb7f88ea65a464c8837be9497a899393e2d75649a9e3
6
+ metadata.gz: 6b756a6a7268eee773d7cbf667eb71a3350c21e870be1c4aebe858fcee3aa70e7e8d18b3bd81876b1d46504f8868d083814496987108c7f98a6ace604b26d655
7
+ data.tar.gz: 487e5d4dbc297cb1da2e0cbc93ec8cad8aeb6010cd47dcad4463414beedf4b518ec2a03c78459908ef8ed1e41bd315bd478eba56161f616e113529b7e8293c18
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateExceptionTrackLogs < ActiveRecord::Migration[5.0]
2
4
  def change
3
5
  create_table :exception_tracks do |t|
4
6
  t.string :title
5
- t.text :body
7
+ t.longtext :body
6
8
 
7
9
  t.timestamps
8
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionTrack
4
- VERSION = "0.3.1"
4
+ VERSION = "0.4.0"
5
5
  end
@@ -9,7 +9,8 @@ module ExceptionNotifier
9
9
  return unless ExceptionTrack.config.enabled_env?(Rails.env)
10
10
 
11
11
  # send the notification
12
- @title = exception.message
12
+ title = exception.message || "None"
13
+
13
14
  messages = []
14
15
  messages << headers_for_env(_options[:env])
15
16
  messages << ""
@@ -21,7 +22,7 @@ module ExceptionNotifier
21
22
  messages << exception.backtrace
22
23
  end
23
24
 
24
- ExceptionTrack::Log.create(title: @title, body: messages.join("\n"))
25
+ ExceptionTrack::Log.create(title: title[0, 200], body: messages.join("\n"))
25
26
  end
26
27
 
27
28
  # Log Request headers from Rack env
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception-track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-20 00:00:00.000000000 Z
11
+ date: 2018-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exception_notification