github-watching 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 +4 -4
- data/bin/github-watching +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e613452dfcf2d6f281363046ba20bebe7f75036b
|
4
|
+
data.tar.gz: 1e5d8b6656f3f375705beb52a4d2acb7aa2fb870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21f0a63d5644e1f5d319aeeb6e99a004e17a839df3616e6b79f31b745fdaf9ecad56fdc9409672db352f4090f8c7060fc69ac35a6b60c408fc6e4d831f5bb0be
|
7
|
+
data.tar.gz: 1f0336fc644a1c0da2947a5594a355a571575ae381434870db45dedbba77787a6284d249e4716bb9be29f38f92d0892f11371330bef15c28d492eb6061f8c548
|
data/bin/github-watching
CHANGED
@@ -50,9 +50,12 @@ usage if ARGV.size != 0
|
|
50
50
|
|
51
51
|
case command
|
52
52
|
when 'unwatched'
|
53
|
-
subs = all("/users/#{username}/subscriptions")
|
54
|
-
repos = all("/users/#{username}/repos")
|
55
|
-
|
53
|
+
subs = all("/users/#{username}/subscriptions")
|
54
|
+
repos = all("/users/#{username}/repos")
|
55
|
+
|
56
|
+
repos.reject! { |r| r['fork'] }
|
57
|
+
unwatched = repos.map { |s| s['full_name'] } - subs.map { |r| r['full_name'] }
|
58
|
+
|
56
59
|
$stderr.puts "#{unwatched.size} unwatched repos"
|
57
60
|
puts unwatched
|
58
61
|
else
|