twitter_filter 0.0.4 → 0.0.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/lib/twitter_filter/get_tweets.rb +4 -4
- data/lib/twitter_filter/version.rb +2 -2
- data/spec/get_tweets_spec.rb +1 -1
- metadata +2 -2
@@ -84,9 +84,9 @@ class GetTweets
|
|
84
84
|
tsc = TweetStream::Client.new
|
85
85
|
tsc.sample do |status, client|
|
86
86
|
handle_tweet(status)
|
87
|
-
client.stop if more_tweets
|
87
|
+
client.stop if more_tweets <= 0
|
88
88
|
end
|
89
|
-
(sleep 0.
|
89
|
+
(sleep 0.2 until more_tweets <= 0) if num
|
90
90
|
tweets
|
91
91
|
end
|
92
92
|
|
@@ -96,9 +96,9 @@ class GetTweets
|
|
96
96
|
tsc = TweetStream::Client.new
|
97
97
|
tsc.track(term) do |status, client|
|
98
98
|
handle_tweet(status)
|
99
|
-
client.stop if more_tweets
|
99
|
+
client.stop if more_tweets <= 0
|
100
100
|
end
|
101
|
-
(sleep 0.
|
101
|
+
(sleep 0.2 until more_tweets <= 0) if num
|
102
102
|
tweets
|
103
103
|
end
|
104
104
|
end
|
data/spec/get_tweets_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|