Sha256: a5c89465faa75c7b17948fc3713ea7538383d36eeed408550d9069dae6762a75
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
require 'excon' module FastlaneCore class Changelog class << self def show_changes(gem_name, current_version) self.releases(gem_name).each_with_index do |release, index| next unless Gem::Version.new(release['tag_name']) > Gem::Version.new(current_version) puts "" puts release['name'].green puts release['body'] next unless index == 2 puts "" puts "To see all new releases, open https://github.com/fastlane/#{gem_name}/releases".green break end puts "\nUpdate using 'sudo gem update #{gem_name.downcase}'".green end def releases(gem_name) url = "https://api.github.com/repos/fastlane/#{gem_name}/releases" JSON.parse(Excon.get(url).body) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems