twitterstream 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +2 -2
- data/Rakefile +1 -1
- data/lib/{twitter_stream.rb → twitterstream.rb} +1 -2
- data/test/{test_twitter_stream.rb → test_twitterstream.rb} +0 -0
- metadata +4 -4
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ module Net
|
|
19
19
|
end
|
20
20
|
|
21
21
|
class TwitterStream
|
22
|
-
VERSION = '0.1.
|
22
|
+
VERSION = '0.1.1'
|
23
23
|
@@urls = {
|
24
24
|
'sample' => URI.parse("http://stream.twitter.com/1/statuses/sample.json"),
|
25
25
|
'filter' => URI.parse("http://stream.twitter.com/1/statuses/filter.json")
|
@@ -96,7 +96,6 @@ class TwitterStream
|
|
96
96
|
http.request(request) do |response|
|
97
97
|
response.each_line("\r\n") do |line|
|
98
98
|
j = JSON.parse(line) rescue next
|
99
|
-
next unless j["text"]
|
100
99
|
yield j
|
101
100
|
end
|
102
101
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitterstream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yayugu
|
@@ -48,12 +48,12 @@ files:
|
|
48
48
|
- README.rdoc
|
49
49
|
- README.mkd
|
50
50
|
- Rakefile
|
51
|
-
- lib/
|
51
|
+
- lib/twitterstream.rb
|
52
52
|
- script/console
|
53
53
|
- script/destroy
|
54
54
|
- script/generate
|
55
55
|
- test/test_helper.rb
|
56
|
-
- test/
|
56
|
+
- test/test_twitterstream.rb
|
57
57
|
has_rdoc: true
|
58
58
|
homepage:
|
59
59
|
licenses: []
|
@@ -84,5 +84,5 @@ signing_key:
|
|
84
84
|
specification_version: 3
|
85
85
|
summary: It is the simple library to access the Twitter Streaming API( http://apiwiki.twitter.com/Streaming-API-Documentation )
|
86
86
|
test_files:
|
87
|
-
- test/
|
87
|
+
- test/test_twitterstream.rb
|
88
88
|
- test/test_helper.rb
|