chatterbox 0.6.0 → 0.6.1
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/CHANGELOG.markdown
CHANGED
@@ -1,36 +1,37 @@
|
|
1
1
|
HEAD
|
2
2
|
|
3
|
-
0.6.
|
3
|
+
### 0.6.1
|
4
|
+
- Handle case where there is no Rails Root defined
|
5
|
+
|
6
|
+
### 0.6.0
|
4
7
|
- Extract exception handling to Chatterbox::ExceptionNotification, and have RailsCatcher use that
|
5
8
|
- clean up and standardize names of things
|
6
|
-
|
9
|
+
|
10
|
+
### 0.5.4
|
7
11
|
- Remove very dangerous delegation from RailsCatcher, as these delegates can override common
|
8
12
|
ActionController::Base methods when the catcher is included. Wishing Ruby had real namespaces
|
9
13
|
right about now
|
10
14
|
- Remove #log_prefix from RailsCatcher, simpler and not needed
|
11
15
|
|
12
|
-
0.5.3
|
16
|
+
### 0.5.3
|
13
17
|
- exception filtering
|
14
18
|
|
15
|
-
0.5.2
|
19
|
+
### 0.5.2
|
16
20
|
- add RAILS_ROOT filtering
|
17
21
|
|
18
|
-
0.5.1
|
22
|
+
### 0.5.1
|
19
23
|
- to_s the env and root from Rails
|
20
24
|
|
21
|
-
0.5.0
|
25
|
+
### 0.5.0
|
22
26
|
- Major rewrite and overhaul
|
23
27
|
|
24
|
-
0.4.2
|
25
|
-
|
28
|
+
### 0.4.2
|
26
29
|
- handle_notice returns the message that was passed in
|
27
30
|
|
28
|
-
0.4.1
|
29
|
-
|
31
|
+
### 0.4.1
|
30
32
|
- top level alias `notify` for `handle_notice`
|
31
33
|
- simplified logging - no longer tries to use Rails logger if it exists
|
32
34
|
|
33
|
-
0.4.0
|
34
|
-
|
35
|
+
### 0.4.0
|
35
36
|
- removed notification wrapper around messages sent to Chatterbox to simplify things
|
36
37
|
|
data/VERSION.yml
CHANGED
data/chatterbox.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{chatterbox}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rob Sanheim"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-17}
|
13
13
|
s.description = %q{Send notifications and messages. However you want.}
|
14
14
|
s.email = %q{rsanheim@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -48,9 +48,8 @@ describe Chatterbox::ExceptionNotification::RailsExtracter do
|
|
48
48
|
it "does nothing if there is no rails_root on Rails" do
|
49
49
|
Chatterbox::ExceptionNotification::RailsExtracter.any_instance.stubs(:rails_configuration).returns(stub_everything)
|
50
50
|
backtrace = %w[/some/path/here.rb]
|
51
|
-
|
52
|
-
|
53
|
-
}.should_not raise_error
|
51
|
+
details = Chatterbox::ExceptionNotification::RailsExtracter.wrap({:backtrace => backtrace})
|
52
|
+
details[:backtrace].should == %w[/some/path/here.rb]
|
54
53
|
end
|
55
54
|
|
56
55
|
it "should replace the Rails root from the backtrace with RAILS_ROOT" do
|
@@ -16,6 +16,7 @@ module Chatterbox::ExceptionNotification
|
|
16
16
|
|
17
17
|
def filter_rails_root(hash)
|
18
18
|
return hash unless hash[:backtrace]
|
19
|
+
return hash if rails_root.blank?
|
19
20
|
cleaner = ActiveSupport::BacktraceCleaner.new
|
20
21
|
cleaner.add_filter { |line| line.gsub(rails_root, "[RAILS_ROOT]") }
|
21
22
|
backtrace = cleaner.clean(hash[:backtrace])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chatterbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Sanheim
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-17 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|