Sha256: 86a9070a7c09be136bab1ced215bbea45f7ef73f9be1613a42b3cc99645b5ce0

Contents?: true

Size: 361 Bytes

Versions: 11

Compression:

Stored size: 361 Bytes

Contents

class CompareLinker
  class GithubTagFinder
    attr_reader :octokit

    def initialize(octokit)
      @octokit = octokit
    end

    def find(repo_full_name, gem_version)
      tags = octokit.tags(repo_full_name)
      if tags
        tags.find { |tag|
          tag.name == gem_version || tag.name == "v#{gem_version}"
        }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
compare_linker-1.2.1 lib/compare_linker/github_tag_finder.rb
compare_linker-1.2.0 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.9 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.8 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.7 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.6 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.5 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.4 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.3 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.2 lib/compare_linker/github_tag_finder.rb
compare_linker-1.1.1 lib/compare_linker/github_tag_finder.rb