Sutto-gitauth-gh 0.0.3.0 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gitauth/gh_mirror.rb +2 -2
- metadata +1 -1
data/lib/gitauth/gh_mirror.rb
CHANGED
@@ -12,7 +12,7 @@ module GitAuth
|
|
12
12
|
|
13
13
|
Project = Struct.new(:name, :github_clone_url, :repository, :github)
|
14
14
|
|
15
|
-
VERSION = [0, 0, 3,
|
15
|
+
VERSION = [0, 0, 3, 1]
|
16
16
|
|
17
17
|
def initialize(username, token)
|
18
18
|
@api = GitHubApi.new(username, token)
|
@@ -83,7 +83,7 @@ module GitAuth
|
|
83
83
|
def update_public_project_authentication
|
84
84
|
users = GitAuth::User.all.select { |u| u.name =~ /^github-/i }
|
85
85
|
projects.each do |project|
|
86
|
-
next unless project.
|
86
|
+
next unless project.github.public?
|
87
87
|
users.each do |user|
|
88
88
|
project.repository.readable_by(user)
|
89
89
|
end
|