twistream 0.2.4 → 0.2.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -50,6 +50,7 @@ module TwiStream
50
50
  on_error.trigger($!, $@)
51
51
  end
52
52
  end
53
+ @thread.join
53
54
  end
54
55
 
55
56
  def build_uri(api_method)
data/spec/client_spec.rb CHANGED
@@ -13,10 +13,13 @@ describe TwiStream::Client do
13
13
  context "start the filter stream, wait 10 seconds and stop" do
14
14
  it "should start the filter stream" do
15
15
  keywords = "nowplaying", "nowwatching"
16
- @client.filter_by_keywords(keywords) do |status|
17
- puts status
18
- status.should_not == be_nil
16
+ @thread = Thread.new do
17
+ @client.filter_by_keywords(keywords) do |status|
18
+ puts status
19
+ status.should_not == be_nil
20
+ end
19
21
  end
22
+ # @thread.join
20
23
  end
21
24
 
22
25
  it "should wait 10 seconds" do
@@ -30,10 +33,13 @@ describe TwiStream::Client do
30
33
 
31
34
  context "start the sample stream, wait 10 seconds and stop" do
32
35
  it "should start the sample stream" do
33
- @client.sample do |status|
34
- puts status
35
- status.should_not == be_nil
36
+ @thread = Thread.new do
37
+ @client.sample do |status|
38
+ puts status
39
+ status.should_not == be_nil
40
+ end
36
41
  end
42
+ # @thread.join
37
43
  end
38
44
 
39
45
  it "should wait 10 seconds" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: twistream
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.4
5
+ version: 0.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sascha Wessel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-07 00:00:00 +01:00
13
+ date: 2011-02-09 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency