class LockDiff::Github::TagFinder::TagsRepository

Public Class Methods

fetch(repo_name, options = {}) click to toggle source
# File lib/lock_diff/github/tag_finder.rb, line 47
def fetch(repo_name, options = {})
  LockDiff.logger.debug { "Fetch tags #{repo_name}, #{options}"}
  Github.client.tag_names(repo_name, options)
end
find(repo_name, options = {}) click to toggle source
# File lib/lock_diff/github/tag_finder.rb, line 40
def find(repo_name, options = {})
  key = "#{repo_name}-#{options[:page]}"
  ruby_gem = repository[key]
  return ruby_gem if repository.key?(key)
  repository[key] = fetch(repo_name, options)
end
repository() click to toggle source
# File lib/lock_diff/github/tag_finder.rb, line 52
def repository
  @repository ||= {}
end