twitter-vanity-suite 0.3.1 → 0.3.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.
- checksums.yaml +4 -4
- data/bin/twitter-console +10 -0
- data/bin/twitter-dormant +31 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c50a3f0e750c7104b001bd0ba2f6fa6d7b45dccd
|
4
|
+
data.tar.gz: 359d1ee4357458b099f7cf3948a59dd9fb7bea10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de7dfe2eff74a5615b068d63ffcfd64e114c95ed68f5a9b25c16c0a26496329e689a5b4af3fa58aadf1b62090f67cc43f068a0b220ec599cadf1ecff05b65737
|
7
|
+
data.tar.gz: abf67b3c186d06b1ac55befa278a19dd64155627f940d1e479b02c5e044c43e0e0d9c9a8fd2a296268bb802278938287e06e71a1658a2cc92e9b11ad1d5b0e8a
|
data/bin/twitter-console
ADDED
data/bin/twitter-dormant
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Usage: twitter-dormant [<usernames.txt>]
|
3
|
+
#
|
4
|
+
# Sorts usernames by time of last tweet.
|
5
|
+
#
|
6
|
+
# You can use this tool in conjunction with `twitter-algebra` to find accounts
|
7
|
+
# you follow that are now dormant:
|
8
|
+
#
|
9
|
+
# twitter-algebra your_username.following | twitter-dormant -
|
10
|
+
|
11
|
+
require_relative "../lib-internal/common"
|
12
|
+
|
13
|
+
class NullTime
|
14
|
+
def <=>(other)
|
15
|
+
-1
|
16
|
+
end
|
17
|
+
|
18
|
+
def strftime(format)
|
19
|
+
"YYYY-MM-DD"
|
20
|
+
" "
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
$client.users(ARGF.readlines.map(&:chomp)).map { |user|
|
25
|
+
time = user.status.nil? ? NullTime.new : user.status.created_at
|
26
|
+
[time, user.screen_name]
|
27
|
+
}.sort_by { |time, handle|
|
28
|
+
time
|
29
|
+
}.each do |time, handle|
|
30
|
+
puts "#{time.strftime("%Y-%m-%d")} #{handle}"
|
31
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-vanity-suite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|
@@ -28,7 +28,9 @@ description: 'my personal set of command line twitter tools '
|
|
28
28
|
email: charlie@charliesomerville.com
|
29
29
|
executables:
|
30
30
|
- twitter-algebra
|
31
|
+
- twitter-console
|
31
32
|
- twitter-delete
|
33
|
+
- twitter-dormant
|
32
34
|
- twitter-hist-ids
|
33
35
|
- twitter-intersect
|
34
36
|
- twitter-vanity
|
@@ -36,7 +38,9 @@ extensions: []
|
|
36
38
|
extra_rdoc_files: []
|
37
39
|
files:
|
38
40
|
- bin/twitter-algebra
|
41
|
+
- bin/twitter-console
|
39
42
|
- bin/twitter-delete
|
43
|
+
- bin/twitter-dormant
|
40
44
|
- bin/twitter-hist-ids
|
41
45
|
- bin/twitter-intersect
|
42
46
|
- bin/twitter-vanity
|