bitbckt-botbckt 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
+ :patch: 1
2
3
  :major: 0
3
4
  :minor: 1
4
- :patch: 0
@@ -22,7 +22,10 @@ module Botbckt #:nodoc:
22
22
  ticker, price, change = response['t'], response['l'], response['c']
23
23
 
24
24
  "#{ticker} - $#{price} (#{change})"
25
+ rescue OpenURI::HTTPError => e
26
+ say Botbckt::Bot.befuddled
27
+ nil
25
28
  end
26
29
  end
27
30
 
28
- end
31
+ end
@@ -23,11 +23,11 @@ module Botbckt #:nodoc:
23
23
  # msg<String>:: A message to send to the channel
24
24
  #
25
25
  def say(msg)
26
- Botbckt::Bot.say msg
26
+ Botbckt::Bot.say(msg) if msg
27
27
  end
28
28
 
29
29
  end
30
30
 
31
31
  end
32
32
 
33
- Dir[File.dirname(__FILE__) + '/commands/*'].each { |lib| require lib }
33
+ Dir[File.dirname(__FILE__) + '/commands/*'].each { |lib| require lib }
data/lib/botbckt/irc.rb CHANGED
@@ -30,8 +30,7 @@ module Botbckt #:nodoc:
30
30
  def initialize(options) #:nodoc:
31
31
  self.config = OpenStruct.new(options)
32
32
 
33
- log = config[:log] || 'botbckt.log'
34
- @logger = ActiveSupport::BufferedLogger.new(log)
33
+ @logger = ActiveSupport::BufferedLogger.new(self.config.log || 'botbckt.log')
35
34
  end
36
35
 
37
36
  # ==== Parameters
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitbckt-botbckt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mitchell
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-26 00:00:00 -07:00
12
+ date: 2009-04-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -59,7 +59,7 @@ requirements: []
59
59
  rubyforge_project:
60
60
  rubygems_version: 1.2.0
61
61
  signing_key:
62
- specification_version: 2
62
+ specification_version: 3
63
63
  summary: Boredom strikes on Sunday mornings.
64
64
  test_files: []
65
65