tw 0.3.3 → 0.3.4
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 +1 -0
- data/lib/tw.rb +1 -1
- data/samples/README.md +7 -1
- data/samples/stream.rb +17 -0
- metadata +3 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/tw.rb
CHANGED
data/samples/README.md
CHANGED
data/samples/stream.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
3
|
+
require 'rubygems'
|
4
|
+
require 'tw'
|
5
|
+
|
6
|
+
user = ARGV.shift
|
7
|
+
client = Tw::Client::Stream.new user
|
8
|
+
|
9
|
+
loop do
|
10
|
+
begin
|
11
|
+
client.user_stream do |m|
|
12
|
+
puts m
|
13
|
+
end
|
14
|
+
rescue StandardError, Timeout::Error => e
|
15
|
+
puts e.message
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -240,6 +240,7 @@ files:
|
|
240
240
|
- lib/tw/conf.rb
|
241
241
|
- samples/README.md
|
242
242
|
- samples/sample.rb
|
243
|
+
- samples/stream.rb
|
243
244
|
- samples/update_profile_image.rb
|
244
245
|
- script/console
|
245
246
|
- script/destroy
|
@@ -264,7 +265,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
265
|
version: '0'
|
265
266
|
segments:
|
266
267
|
- 0
|
267
|
-
hash:
|
268
|
+
hash: -48100630555256287
|
268
269
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
270
|
none: false
|
270
271
|
requirements:
|