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.
@@ -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
@@ -1,5 +1,11 @@
1
1
  class Exception
2
2
  def to_hash
3
- { :backtrace => backtrace, :message => message, :klass => self.class.to_s }
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
@@ -10,7 +10,7 @@ module GlitchyGem
10
10
  private
11
11
 
12
12
  def rescue_action_with_glitchy(exception)
13
- error_id = send_glitch(exception, req_data)
13
+ send_glitch(exception, req_data)
14
14
  rescue_action_without_glitchy(exception)
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module GlitchyGem
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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
- - 0
8
- - 2
9
- - 3
10
- version: 0.2.3
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-26 00:00:00 -07:00
17
+ date: 2011-06-28 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: bundler
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
- version: 1.0.0
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
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
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
- - !ruby/object:Gem::Version
84
- hash: 23
85
- segments:
86
- - 1
87
- - 3
88
- - 6
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.7
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