jugyo-termtter 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. data/lib/termtter.rb +8 -3
  2. metadata +2 -2
data/lib/termtter.rb CHANGED
@@ -10,7 +10,7 @@ $:.unshift(File.dirname(__FILE__)) unless
10
10
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
11
11
 
12
12
  module Termtter
13
- VERSION = '0.1.2'
13
+ VERSION = '0.1.3'
14
14
 
15
15
  class Client
16
16
 
@@ -99,7 +99,12 @@ module Termtter
99
99
 
100
100
  def call_hooks(statuses, event)
101
101
  @@hooks.each do |h|
102
- h.call(statuses.dup, event)
102
+ begin
103
+ h.call(statuses.dup, event)
104
+ rescue => e
105
+ puts "Error: #{e}"
106
+ puts e.backtrace.join("\n")
107
+ end
103
108
  end
104
109
  end
105
110
 
@@ -196,7 +201,7 @@ Enter "help" for instructions
196
201
  end
197
202
  rescue => e
198
203
  puts "Error: #{e}"
199
- puts e.backtrace.join("\n") if @debug
204
+ puts e.backtrace.join("\n")
200
205
  end
201
206
  end
202
207
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jugyo-termtter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-26 00:00:00 -08:00
12
+ date: 2008-12-28 00:00:00 -08:00
13
13
  default_executable: termtter
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency