Sha256: 619f7ed11249fa51e1976cd37a105194b0aa28b8d0b4f8c5fe5ac0b3d1ff72b6
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
# # This class # class GithubListerCore class << self # # Everything below here is private # private def latest_release_private(client, repo) begin release = function_wrapper(client, 'latest_release', repo) # rubocop:disable Lint/SuppressedException rescue NotFoundError => _exception end # rubocop:enable Lint/SuppressedException release || [] end # # Add topics to each repo # # This method smells of :reek:FeatureEnvy def add_latest_release(client, repos) (repo_list ||= []) << Parallel.each(repos, :in_threads => repos.count) { |repo| repo[:latest_release] = latest_release_private(client, repo[:full_name]) } repo_list.flatten end # # All releases # def releases_private(client, repo) begin releases = function_wrapper(client, 'releases', repo) # rubocop:disable Lint/SuppressedException rescue NotFoundError => _exception end # rubocop:enable Lint/SuppressedException releases || [] end # # Add topics to each repo # # This method smells of :reek:FeatureEnvy def add_releases(client, repos) (repo_list ||= []) << Parallel.each(repos, :in_threads => repos.count) { |repo| repo[:releases] = releases_private(client, repo[:full_name]) } repo_list.flatten end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github-lister-core-0.1.1 | lib/github-lister-core/releases.rb |
github-lister-core-0.1.0 | lib/github-lister-core/releases.rb |