fbomb 0.4.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +1 -1
  2. data/bin/fbomb +5 -1
  3. data/fbomb.gemspec +1 -1
  4. data/lib/fbomb.rb +1 -1
  5. metadata +4 -4
data/README CHANGED
@@ -13,7 +13,7 @@ USAGE
13
13
  ./bin/fbomb /chucknorris
14
14
  ./bin/fbomb /fukung canada
15
15
 
16
- 3) devestate your campfire room
16
+ 3) devastate your campfire room
17
17
  ./bin/fbomb run
18
18
 
19
19
  CUSTOMIZE
data/bin/fbomb CHANGED
@@ -46,12 +46,14 @@ Main {
46
46
  campfire = FBomb::Campfire.new(domain, :token => token)
47
47
  room = campfire.room_for(room)
48
48
  room.join
49
+ at_exit{ room.leave }
50
+ room.speak("fbomb in da house...")
49
51
  id = room.id
50
52
 
51
53
  FBomb::Command.room = room
52
54
  url = URI.parse("http://#{ token }:x@streaming.campfirenow.com//room/#{ id }/live.json")
53
55
 
54
- trap('INT'){ exit! }
56
+ trap('INT'){ exit }
55
57
 
56
58
  loop do
57
59
  logging_errors do
@@ -67,6 +69,7 @@ Main {
67
69
  command = @commands[path]
68
70
  if command
69
71
  logging_errors do
72
+ logger.info("#{ path } #{ args.join(' ') }")
70
73
  command.call(*args)
71
74
  end
72
75
  end
@@ -94,6 +97,7 @@ Main {
94
97
  begin
95
98
  block.call()
96
99
  rescue Object => e
100
+ raise if e.is_a?(SystemExit)
97
101
  m, c, b = e.message, e.class, Array(e.backtrace).join("\n")
98
102
  logger.error("#{ m }(#{ c })\n#{ b }")
99
103
  end
data/fbomb.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "fbomb"
6
- spec.version = "0.4.2"
6
+ spec.version = "1.0.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "fbomb"
9
9
  spec.description = "description: fbomb kicks the ass"
data/lib/fbomb.rb CHANGED
@@ -9,7 +9,7 @@
9
9
  # libs
10
10
  #
11
11
  module FBomb
12
- Version = '0.4.2' unless defined?(Version)
12
+ Version = '1.0.0' unless defined?(Version)
13
13
 
14
14
  def version
15
15
  FBomb::Version
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbomb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 4
9
- - 2
10
- version: 0.4.2
9
+ - 0
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ara T. Howard