fbomb 0.4.2 → 1.0.0
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/README +1 -1
- data/bin/fbomb +5 -1
- data/fbomb.gemspec +1 -1
- data/lib/fbomb.rb +1 -1
- metadata +4 -4
data/README
CHANGED
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
data/lib/fbomb.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.4.2
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ara T. Howard
|