Sha256: 55adf869a04baafd297e4e157e8a7643399e379adaeba6ff922ac526f15df451

Contents?: true

Size: 739 Bytes

Versions: 1

Compression:

Stored size: 739 Bytes

Contents

#
# Add topics to each repository
#
class GithubListerCore
    class << self
        #
        # Everything below here is private
        #

        private

        #
        # Extra the topics slug from the payload and return it
        #
        def topics_private(client, repo)
            topics = function_wrapper(client, 'topics', repo)
            topics[:names]
        end

        #
        # Add topics to each repo
        #
        # This method smells of :reek:FeatureEnvy
        def add_topics_private(client, repos)
            (repo_list ||= []) << Parallel.each(repos, :in_threads => repos.count) { |repo| repo[:topics] = topics_private(client, repo[:full_name]) }
            repo_list.flatten
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github-lister-core-0.1.8 lib/github-lister-core/topics.rb