twitter-vanity-suite 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7151adcc67b7f2a1b59ab7bc3d2eaaa85a50b661
4
- data.tar.gz: 2c0cfff7548748dd52ef8181bdaaba2ebc85d48d
3
+ metadata.gz: c50a3f0e750c7104b001bd0ba2f6fa6d7b45dccd
4
+ data.tar.gz: 359d1ee4357458b099f7cf3948a59dd9fb7bea10
5
5
  SHA512:
6
- metadata.gz: cb9b516bf6bea92911891059b5f0ae03b54d12c0f7774463b3779bf4f4c731120aad8e00609e3c3da5c4653758d36cbb7fdf857a2cae0e161d1d8e60922e6383
7
- data.tar.gz: 36ca8ad9eb55d21fc9b8ca6326e530155226ead7d14b89124faec665632dba7db8b262cc91ae07c4374a1c84d87369bcb7ee1c8b8f372a065f31a157d8a69fca
6
+ metadata.gz: de7dfe2eff74a5615b068d63ffcfd64e114c95ed68f5a9b25c16c0a26496329e689a5b4af3fa58aadf1b62090f67cc43f068a0b220ec599cadf1ecff05b65737
7
+ data.tar.gz: abf67b3c186d06b1ac55befa278a19dd64155627f940d1e479b02c5e044c43e0e0d9c9a8fd2a296268bb802278938287e06e71a1658a2cc92e9b11ad1d5b0e8a
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # Usage: twitter-console
3
+
4
+ # hack so we don't get dumped into usage:
5
+ ARGV << "lol"
6
+
7
+ require_relative "../lib-internal/common"
8
+
9
+ require "pry"
10
+ pry
@@ -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.1
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-01-12 00:00:00.000000000 Z
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