twhois 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/twhois +25 -20
- data/lib/twhois/version.rb +1 -1
- data/twhois.gemspec +2 -2
- metadata +5 -5
data/bin/twhois
CHANGED
@@ -2,25 +2,30 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'twhois'
|
4
4
|
|
5
|
-
ARGV.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
+
|
data/lib/twhois/version.rb
CHANGED
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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
|