twail 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +7 -0
  2. data/lib/twail.rb +4 -0
  3. data/twail.gemspec +1 -1
  4. metadata +4 -4
data/README.markdown CHANGED
@@ -142,6 +142,13 @@ The output of `twail` in search mode looks like this:
142
142
  etc.
143
143
 
144
144
 
145
+ If you pipe twail into another command, twail will no longer behave like `tail -f`, but just like `tail`. So you can do this
146
+
147
+ twail m | tail -3
148
+
149
+ to see the last three tweets directed at you.
150
+
151
+
145
152
  ## About
146
153
 
147
154
  If you like `twail` and you're a Vim user, try [twim][twim].
data/lib/twail.rb CHANGED
@@ -170,6 +170,10 @@ loop do
170
170
  puts("%s| %s" % [''.rjust(user_width), line])
171
171
  end
172
172
  end
173
+ if !$stdout.tty?
174
+ $stdout.flush
175
+ exit
176
+ end
173
177
  sleep 30
174
178
  end
175
179
 
data/twail.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "twail"
5
- s.version = '0.1.1'
5
+ s.version = '0.1.2'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.required_ruby_version = '>= 1.9.0'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-17 00:00:00.000000000Z
12
+ date: 2012-01-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: twurl
16
- requirement: &70202532567840 !ruby/object:Gem::Requirement
16
+ requirement: &70145913864460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.6.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70202532567840
24
+ version_requirements: *70145913864460
25
25
  description: tail your Twitter timelines, or search Twitter
26
26
  email:
27
27
  - dhchoi@gmail.com