twitter-vanity-suite 0.0.1 → 0.0.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: 42ab4b82b6b6e3cf54bfba257c3961231389427a
4
- data.tar.gz: de06211471303f54130efb945dda771b937fa465
3
+ metadata.gz: 615dcb6a8d7a3176969998e6e583687f9ccc8579
4
+ data.tar.gz: 3949988a0bbcb3cc492a7df4ee82957fcf8aabdf
5
5
  SHA512:
6
- metadata.gz: 957e178cd9de7b2e1ac877604106131c1097ba18c9c5a7b7ae83b272c35c0c09d3e44be7bf6a2079de685791263830050da33d3ca4d5ff696f09845c3b25e346
7
- data.tar.gz: f075f77f9096733acf401fbe41db0f80a6f25134cc1206361663e790e308396dfc70387fa31302919b498767c01d1042908442abbd7952cf19f9325ce0355412
6
+ metadata.gz: 6b120b1629bd90d6344be86a37175d0413662f20111370fe69ad67d4a69995a6da81449ddddecfa3f0930aa40d20a4ff51ea50196545729bc09d647deff5d2f3
7
+ data.tar.gz: 703be7aa96c703ac21d7d3d567f24b3940bc4a7f68e81ac9293ae28eeab511e7afd2dd11e72954193fa296ef3b2e3ac1d0ae7308441507804e700313f416629c
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../lib-internal/common"
3
+
4
+ ids = $stdin.readlines.map(&:chomp).reverse
5
+
6
+ 64.times.map {
7
+ Thread.start do
8
+ while id = ids.pop
9
+ begin
10
+ $client.destroy_status(id)
11
+ rescue Twitter::Error::NotFound
12
+ rescue
13
+ $stderr.puts "\rERROR: #{id}"
14
+ end
15
+ print "\r%5d" % ids.size
16
+ end
17
+ end
18
+ }.each(&:join)
19
+
20
+ puts
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/ruby
2
+ require "json"
3
+
4
+ ARGV.each do |file|
5
+ begin
6
+ f = File.open(file)
7
+ rescue
8
+ $stderr.puts "no such file: #{file}"
9
+ next
10
+ end
11
+ f.gets
12
+ puts JSON.parse(f.read).map { |tw| tw["id_str"] }
13
+ 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.0.1
4
+ version: 0.0.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-01 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
@@ -27,11 +27,15 @@ dependencies:
27
27
  description: 'my personal set of command line twitter tools '
28
28
  email: charlie@charliesomerville.com
29
29
  executables:
30
+ - twitter-delete
31
+ - twitter-hist-ids
30
32
  - twitter-intersect
31
33
  - twitter-vanity
32
34
  extensions: []
33
35
  extra_rdoc_files: []
34
36
  files:
37
+ - bin/twitter-delete
38
+ - bin/twitter-hist-ids
35
39
  - bin/twitter-intersect
36
40
  - bin/twitter-vanity
37
41
  - lib-internal/common.rb