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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/github-watching +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1906c90134ac15cb85202507a6331cf269966aa3
4
- data.tar.gz: bc05c38253eed5f77db6c363aadaba7291c66eb6
3
+ metadata.gz: e613452dfcf2d6f281363046ba20bebe7f75036b
4
+ data.tar.gz: 1e5d8b6656f3f375705beb52a4d2acb7aa2fb870
5
5
  SHA512:
6
- metadata.gz: 846cd7e818357c37ae0332f43393aedef85c30b4a055838d559fad26197e36663ecc256479589ef4d74a8eb913c19973edc075a9c7fd1f96c6f86c3699ff730c
7
- data.tar.gz: 24c8944ba1d5ca84ff50e3d00ce89eaa17b45b329afcf43c37dfb05c1179a4df2c66580f14a06e3ab80fef353ea500d857dd47c05ce7ef32c5a6503db051c35d
6
+ metadata.gz: 21f0a63d5644e1f5d319aeeb6e99a004e17a839df3616e6b79f31b745fdaf9ecad56fdc9409672db352f4090f8c7060fc69ac35a6b60c408fc6e4d831f5bb0be
7
+ data.tar.gz: 1f0336fc644a1c0da2947a5594a355a571575ae381434870db45dedbba77787a6284d249e4716bb9be29f38f92d0892f11371330bef15c28d492eb6061f8c548
@@ -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").map { |s| s['full_name'] }
54
- repos = all("/users/#{username}/repos").map { |r| r['full_name'] }
55
- unwatched = repos - subs
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-watching
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
  - Michael Grosser