open_exception 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,9 +9,6 @@ You can add filters that allow you to ignore some exceptions, and filters that a
9
9
  to scope the backtrace search. The backtrace scoping is useful for opening the last call
10
10
  in your application code when the exception occurs in a framework or lib.
11
11
 
12
- If you are on MacOSX and have the [growl gem](http://rubygems.org/gems/growl) installed,
13
- you will get a growl notification with the exception message when the file is opened.
14
-
15
12
  Editors
16
13
  -------
17
14
 
@@ -89,6 +86,15 @@ You can override the default (or configured) options by passing a hash as the se
89
86
 
90
87
  OpenException.open(exception, {:open_with => :textmate, :backtrace_line_filters => [filter, another_filter])
91
88
 
89
+ Growl Support
90
+ -------------
91
+
92
+ If you are on MacOSX and have the [growl gem](http://rubygems.org/gems/growl) installed,
93
+ you will get a growl notification with the exception message when the file is opened.
94
+
95
+ Note that growlnotify currently has to be in the path for this to work until the growl gem
96
+ is fixed to look in the default location and/or allow overriding the binary location.
97
+
92
98
  Note on Patches/Pull Requests
93
99
  -----------------------------
94
100
 
@@ -98,6 +104,5 @@ Note on Patches/Pull Requests
98
104
  * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
99
105
  * Send me a pull request. Bonus points for topic branches.
100
106
 
101
- == Copyright
102
107
 
103
108
  Copyright (c) 2010 Tobias Crawley. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -6,9 +6,13 @@ init_message = "** open_extension initialized "
6
6
  begin
7
7
  require 'growl'
8
8
  require File.dirname(__FILE__) + "/open_exception/growl_support"
9
- init_message << "with growl support"
9
+ if Growl.installed?
10
+ init_message << "with growl support"
11
+ else
12
+ init_message << "without growl support (growlnotify binary is not in the path)"
13
+ end
10
14
  rescue LoadError
11
15
  #ignore
12
16
  end
13
17
 
14
- puts init_message
18
+ OpenException.puts init_message
@@ -24,6 +24,10 @@ module OpenException
24
24
  def open(exception, options = { })
25
25
  ExceptionOpener.new(exception, options).open
26
26
  end
27
+
28
+ def puts(msg)
29
+ defined?(Rails) ? Rails.logger.info(msg) : super
30
+ end
27
31
  end
28
32
 
29
33
  class ExceptionOpener
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{open_exception}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tobias Crawley"]
12
- s.date = %q{2010-04-26}
12
+ s.date = %q{2010-04-29}
13
13
  s.description = %q{}
14
14
  s.email = %q{tcrawley@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tobias Crawley
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-26 00:00:00 -04:00
17
+ date: 2010-04-29 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency