lib/getv/package.rb in getv-0.2.0 vs lib/getv/package.rb in getv-0.2.1
- old
+ new
@@ -135,9 +135,10 @@
user = github.user
user.login
else
github = Octokit::Client.new()
end
+ github.auto_paginate = true
if method == 'release'
return github.releases("#{opts[:owner]}/#{opts[:repo]}").map{|r| r.tag_name}
elsif method == 'commit'
return github.commits("#{opts[:owner]}/#{opts[:repo]}").map { |c|
"#{DateTime.parse(c[:commit][:author][:date].to_s).strftime('%Y%m%d%H%M%S')},#{c[:sha]}"