glitchy_gem 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/glitchy_gem/glitch.rb
CHANGED
@@ -2,7 +2,6 @@ module GlitchyGem
|
|
2
2
|
class Glitch
|
3
3
|
attr_reader :exception
|
4
4
|
def initialize(e, options = {})
|
5
|
-
return if GlitchyGem.ignore_exceptions.include?(e.class.to_s)
|
6
5
|
@rack_env = options[:rack_env] || {}
|
7
6
|
@exception = e
|
8
7
|
|
@@ -21,6 +20,7 @@ module GlitchyGem
|
|
21
20
|
|
22
21
|
def send
|
23
22
|
return unless GlitchyGem.environments.include?(GlitchyGem.environment)
|
23
|
+
return if GlitchyGem.ignore_exceptions.include?(self.exception.class.to_s)
|
24
24
|
begin
|
25
25
|
@http.request(@request)
|
26
26
|
rescue Errno::ECONNREFUSED => e
|
data/lib/glitchy_gem/patches.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
class Exception
|
2
2
|
def to_hash
|
3
|
-
{
|
3
|
+
{
|
4
|
+
:backtrace => backtrace,
|
5
|
+
:message => message,
|
6
|
+
:klass => self.class.to_s,
|
7
|
+
:error_class => self.class.name, # Hoptoad compatibility
|
8
|
+
:error_message => "#{self.class.name}: #{message}" # Hoptoad compatibility
|
9
|
+
}
|
4
10
|
end
|
5
11
|
end
|
data/lib/glitchy_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,42 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glitchy_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 17
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.2.
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 4
|
9
|
+
version: 0.2.4
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
|
-
- GlitchyApp
|
12
|
+
- GlitchyApp
|
14
13
|
autorequire:
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-06-
|
17
|
+
date: 2011-06-28 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
type: :development
|
36
|
-
version_requirements: *id001
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: bundler
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
30
|
+
- 0
|
31
|
+
version: 1.0.0
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
37
34
|
description: Track your application errors with GlitchyApp and search through them.
|
38
35
|
email:
|
39
|
-
- support@glitchygem.com
|
36
|
+
- support@glitchygem.com
|
40
37
|
executables: []
|
41
38
|
|
42
39
|
extensions: []
|
@@ -44,20 +41,20 @@ extensions: []
|
|
44
41
|
extra_rdoc_files: []
|
45
42
|
|
46
43
|
files:
|
47
|
-
- .gitignore
|
48
|
-
- Gemfile
|
49
|
-
- README.md
|
50
|
-
- Rakefile
|
51
|
-
- glitchy_gem.gemspec
|
52
|
-
- lib/glitchy_gem.rb
|
53
|
-
- lib/glitchy_gem/glitch.rb
|
54
|
-
- lib/glitchy_gem/patches.rb
|
55
|
-
- lib/glitchy_gem/rack.rb
|
56
|
-
- lib/glitchy_gem/rails.rb
|
57
|
-
- lib/glitchy_gem/rails/action_controller_catcher.rb
|
58
|
-
- lib/glitchy_gem/railtie.rb
|
59
|
-
- lib/glitchy_gem/version.rb
|
60
|
-
- rails/init.rb
|
44
|
+
- .gitignore
|
45
|
+
- Gemfile
|
46
|
+
- README.md
|
47
|
+
- Rakefile
|
48
|
+
- glitchy_gem.gemspec
|
49
|
+
- lib/glitchy_gem.rb
|
50
|
+
- lib/glitchy_gem/glitch.rb
|
51
|
+
- lib/glitchy_gem/patches.rb
|
52
|
+
- lib/glitchy_gem/rack.rb
|
53
|
+
- lib/glitchy_gem/rails.rb
|
54
|
+
- lib/glitchy_gem/rails/action_controller_catcher.rb
|
55
|
+
- lib/glitchy_gem/railtie.rb
|
56
|
+
- lib/glitchy_gem/version.rb
|
57
|
+
- rails/init.rb
|
61
58
|
has_rdoc: true
|
62
59
|
homepage: http://rubygems.org/gems/glitchy_gem
|
63
60
|
licenses: []
|
@@ -66,31 +63,27 @@ post_install_message:
|
|
66
63
|
rdoc_options: []
|
67
64
|
|
68
65
|
require_paths:
|
69
|
-
- lib
|
66
|
+
- lib
|
70
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
68
|
requirements:
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
version: "0"
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
79
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
75
|
requirements:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
version: 1.3.6
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 3
|
81
|
+
- 6
|
82
|
+
version: 1.3.6
|
90
83
|
requirements: []
|
91
84
|
|
92
85
|
rubyforge_project: glitchy_gem
|
93
|
-
rubygems_version: 1.3.
|
86
|
+
rubygems_version: 1.3.6
|
94
87
|
signing_key:
|
95
88
|
specification_version: 3
|
96
89
|
summary: The gem to enable you to track your application errors with GlitchApp
|