Skip to content

Commit c12f0d0

Browse files
nicolasiensencodebender
authored andcommitted
WIP fix GithubProfile spec
1 parent 0cc9b15 commit c12f0d0

File tree

2 files changed

+3070
-4
lines changed

2 files changed

+3070
-4
lines changed

app/models/github_old.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def initialize(token = nil)
3939
}
4040

4141
def profile(github_username = nil, since=Time.at(0))
42-
(@client.user(github_username) || []).except *%w{followers url public_repos html_url following}
42+
@client.user(github_username) || []
4343
rescue Errno::ECONNREFUSED => e
4444
retry
4545
rescue Octokit::NotFound
@@ -102,9 +102,7 @@ def activities_for(github_username, times=1)
102102
end
103103

104104
def repos_for(github_username, since=Time.at(0))
105-
(@client.repositories(github_username, per_page: 100) || []).map do |repo|
106-
repo.except *%w{master_branch clone_url ssh_url url svn_url forks}
107-
end
105+
@client.repositories(github_username, per_page: 100) || []
108106
rescue Octokit::NotFound => e
109107
Rails.logger.error("Unable to find repos for #{github_username}")
110108
return []

0 commit comments

Comments
 (0)