poundie 0.1.1 → 0.1.2g
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/poundie/runner.rb +6 -3
- metadata +5 -4
data/lib/poundie/runner.rb
CHANGED
@@ -8,9 +8,8 @@ module Poundie
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def run
|
11
|
-
|
12
|
-
|
13
|
-
Yajl::HttpStream.get(url, :symbolize_keys => true) do |message|
|
11
|
+
room.join # We need to make sure we're in the room first
|
12
|
+
Yajl::HttpStream.get(room_uri, :symbolize_keys => true) do |message|
|
14
13
|
Thread.new do
|
15
14
|
plugins.each { |plugin| plugin.call(message) }
|
16
15
|
end
|
@@ -25,6 +24,10 @@ module Poundie
|
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
27
|
+
def room_uri
|
28
|
+
URI.parse("http://#{@token}:x@streaming.campfirenow.com//room/#{room.id}/live.json")
|
29
|
+
end
|
30
|
+
|
28
31
|
def room
|
29
32
|
@room ||= campfire.rooms.detect { |r| r.name == @room_name }
|
30
33
|
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poundie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 36
|
5
|
+
prerelease: 5
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
|
9
|
+
- 2
|
10
|
+
- g
|
11
|
+
version: 0.1.2g
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Pat Nakajima
|