twhois 0.0.1 → 0.0.2

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.
Files changed (4) hide show
  1. data/bin/twhois +25 -20
  2. data/lib/twhois/version.rb +1 -1
  3. data/twhois.gemspec +2 -2
  4. metadata +5 -5
data/bin/twhois CHANGED
@@ -2,25 +2,30 @@
2
2
  require 'rubygems'
3
3
  require 'twhois'
4
4
 
5
- ARGV.each do |username|
6
- user = Twhois.lookup(username)
7
- if user
8
- puts "@#{user.screen_name}:"
9
- puts " Name: #{user.name}"
10
- puts " URL: #{user.url}" if user.url
11
- puts " Location: #{user.location}" if user.location
12
- puts " Description: #{user.description}" if user.description
13
- puts " Followers: #{user.followers_count}"
14
- puts " Following: #{user.friends_count}"
15
- puts " Tweets: #{user.statuses_count}"
16
- puts " Last Tweet (#{user.status['created_at']}):"
17
- puts " #{user.status['text']}"
18
- puts " Timezone: #{user.time_zone}" if user.time_zone
19
- puts " Joined On: #{user.created_at}"
20
- puts " Profile Picture: #{user.profile_image_url}"
21
- puts " Private Account: #{user.protected ? "Yes" : "No"}"
22
- else
23
- puts "@#{username}:"
24
- puts " Not Found"
5
+ if ARGV.size > 0
6
+ ARGV.each do |username|
7
+ user = Twhois.lookup(username)
8
+ if user
9
+ puts "@#{user.screen_name}:"
10
+ puts " Name: #{user.name}"
11
+ puts " URL: #{user.url}" if user.url
12
+ puts " Location: #{user.location}" if user.location
13
+ puts " Description: #{user.description}" if user.description
14
+ puts " Followers: #{user.followers_count}"
15
+ puts " Following: #{user.friends_count}"
16
+ puts " Tweets: #{user.statuses_count}"
17
+ puts " Last Tweet (#{user.status['created_at']}):"
18
+ puts " #{user.status['text']}"
19
+ puts " Timezone: #{user.time_zone}" if user.time_zone
20
+ puts " Joined On: #{user.created_at}"
21
+ puts " Profile Picture: #{user.profile_image_url}"
22
+ puts " Private Account: #{user.protected ? "Yes" : "No"}"
23
+ else
24
+ puts "@#{username}:"
25
+ puts " Not Found"
26
+ end
25
27
  end
28
+ else
29
+ puts "Usage: twhois username [another_user] [yet_another]"
26
30
  end
31
+
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Twhois
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
data/twhois.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ['Jim Myhrberg']
10
10
  s.email = ['contact@jimeh.me']
11
11
  s.homepage = 'https://github.com/jimeh/twhois'
12
- s.summary = 'Whois-like Ruby Gem for Twitter users'
13
- s.description = 'Whois-like Ruby Gem for Twitter users'
12
+ s.summary = 'Whois-like command-line tool and Ruby Gem for Twitter users'
13
+ s.description = 'Whois-like command-line tool and Ruby Gem for Twitter users'
14
14
 
15
15
  s.rubyforge_project = 'twhois'
16
16
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twhois
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Myhrberg
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: 0.6.4
67
67
  type: :development
68
68
  version_requirements: *id003
69
- description: Whois-like Ruby Gem for Twitter users
69
+ description: Whois-like command-line tool and Ruby Gem for Twitter users
70
70
  email:
71
71
  - contact@jimeh.me
72
72
  executables:
@@ -121,7 +121,7 @@ rubyforge_project: twhois
121
121
  rubygems_version: 1.5.0
122
122
  signing_key:
123
123
  specification_version: 3
124
- summary: Whois-like Ruby Gem for Twitter users
124
+ summary: Whois-like command-line tool and Ruby Gem for Twitter users
125
125
  test_files:
126
126
  - spec/spec_helper.rb
127
127
  - spec/twhois_spec.rb