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.
Files changed (2) hide show
  1. data/lib/gitauth/gh_mirror.rb +2 -2
  2. metadata +1 -1
@@ -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, 0]
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.repository.public?
86
+ next unless project.github.public?
87
87
  users.each do |user|
88
88
  project.repository.readable_by(user)
89
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Sutto-gitauth-gh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.0
4
+ version: 0.0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darcy Laycock