lib/getv/package.rb in getv-0.2.1 vs lib/getv/package.rb in getv-0.2.2

- old
+ new

@@ -11,10 +11,11 @@ elsif /python.*-.*/.match?(name) opts = {'type' => 'pypi'}.merge(opts) end if opts[:type] == 'github_commit' opts = { + :branch => 'master', :select_search => '^((\d{8})(\d{6}),(([a-z\d]{7})(.*)))$', :semantic_only => false }.merge(opts) end opts = { @@ -139,10 +140,10 @@ 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| + return github.commits("#{opts[:owner]}/#{opts[:repo]}",opts[:branch]).map { |c| "#{DateTime.parse(c[:commit][:author][:date].to_s).strftime('%Y%m%d%H%M%S')},#{c[:sha]}" } else return github.tags("#{opts[:owner]}/#{opts[:repo]}").map{|t| t[:name]} end