tweetstream 1.1.0.rc2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tweetstream might be problematic. Click here for more details.

@@ -310,8 +310,11 @@ module TweetStream
310
310
  EventMachine::run {
311
311
  if @on_interval_proc.is_a?(Proc)
312
312
  interval = @on_interval_time || Configuration::DEFAULT_TIMER_INTERVAL
313
- proc = @on_interval_proc
314
- @timer = EM.add_periodic_timer(interval, &proc)
313
+ @timer = EventMachine.add_periodic_timer(interval) do
314
+ EventMachine.defer do
315
+ @on_interval_proc.call
316
+ end
317
+ end
315
318
  end
316
319
 
317
320
  @stream = Twitter::JSONStream.connect(stream_params)
@@ -1,3 +1,3 @@
1
1
  module TweetStream
2
- VERSION = '1.1.0.rc2'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -1,18 +1,18 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe TweetStream::Hash do
4
4
  it 'should be initialized by passing in an existing hash' do
5
5
  TweetStream::Hash.new(:abc => 123)[:abc].should == 123
6
6
  end
7
-
7
+
8
8
  it 'should symbolize incoming keys' do
9
9
  TweetStream::Hash.new('abc' => 123)[:abc].should == 123
10
10
  end
11
-
11
+
12
12
  it 'should allow access via method calls' do
13
13
  TweetStream::Hash.new(:abc => 123).abc.should == 123
14
14
  end
15
-
15
+
16
16
  it 'should still throw NoMethod for non-existent keys' do
17
17
  lambda{TweetStream::Hash.new({}).akabi}.should raise_error(NoMethodError)
18
18
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe 'TweetStream MultiJson Support' do
4
4
  after do
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe TweetStream do
4
4
  after do
@@ -22,7 +22,7 @@ describe TweetStream do
22
22
  it "should return the same results as a client" do
23
23
  MultiJson.should_receive(:decode).and_return({})
24
24
  @stream.should_receive(:each_item).and_yield(sample_tweets[0].to_json)
25
- TweetStream.new.track('abc','def').should == TweetStream::Client.new.track('abc','def')
25
+ TweetStream.track('abc','def').should == TweetStream::Client.new.track('abc','def')
26
26
  end
27
27
  end
28
28
 
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tweetstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.rc2
5
- prerelease: 6
4
+ version: 1.1.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Bleigh
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-26 00:00:00.000000000Z
12
+ date: 2011-09-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: twitter-stream
16
- requirement: &2153824280 !ruby/object:Gem::Requirement
16
+ requirement: &2156569360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.1.14
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153824280
24
+ version_requirements: *2156569360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: daemons
27
- requirement: &2153823820 !ruby/object:Gem::Requirement
27
+ requirement: &2156568900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153823820
35
+ version_requirements: *2156568900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &2153823360 !ruby/object:Gem::Requirement
38
+ requirement: &2156568440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2153823360
46
+ version_requirements: *2156568440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &2153822900 !ruby/object:Gem::Requirement
49
+ requirement: &2156567980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0.9'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2153822900
57
+ version_requirements: *2156567980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &2153822440 !ruby/object:Gem::Requirement
60
+ requirement: &2156567520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0.4'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2153822440
68
+ version_requirements: *2156567520
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &2153821980 !ruby/object:Gem::Requirement
71
+ requirement: &2156567060 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0.7'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2153821980
79
+ version_requirements: *2156567060
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rdiscount
82
- requirement: &2153821520 !ruby/object:Gem::Requirement
82
+ requirement: &2156566600 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '1.6'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2153821520
90
+ version_requirements: *2156566600
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
- requirement: &2153821060 !ruby/object:Gem::Requirement
93
+ requirement: &2156566140 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 2.6.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2153821060
101
+ version_requirements: *2156566140
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: yajl-ruby
104
- requirement: &2153820600 !ruby/object:Gem::Requirement
104
+ requirement: &2156565680 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '1.0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2153820600
112
+ version_requirements: *2156565680
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: json
115
- requirement: &2153820140 !ruby/object:Gem::Requirement
115
+ requirement: &2156585680 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.5.1
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2153820140
123
+ version_requirements: *2156585680
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: guard-rspec
126
- requirement: &2153819680 !ruby/object:Gem::Requirement
126
+ requirement: &2156585220 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: 0.4.3
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2153819680
134
+ version_requirements: *2156585220
135
135
  description: TweetStream allows you to easily consume the Twitter Streaming API utilizing
136
136
  the YAJL Ruby gem.
137
137
  email: