From 2405b4fb3ca89dacbf746caa593d2d19277ace9e Mon Sep 17 00:00:00 2001 From: Andrew Waage Date: Tue, 31 May 2016 17:45:45 -0700 Subject: [PATCH] fixed bug in each_with_object --- lib/github_changelog_generator/octo_fetcher.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/octo_fetcher.rb b/lib/github_changelog_generator/octo_fetcher.rb index 37f848c..d13ad4b 100644 --- a/lib/github_changelog_generator/octo_fetcher.rb +++ b/lib/github_changelog_generator/octo_fetcher.rb @@ -268,6 +268,7 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow rescue Octokit::Forbidden => e Helper.log.warn e.message.red Helper.log.warn GH_RATE_LIMIT_EXCEEDED_MSG.yellow + Helper.log.warn @client.rate_limit end value end @@ -306,7 +307,7 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow # @param [String] uri eg. https://api.github.com/repositories/43914960/tags?page=37&foo=1 # @return [Hash] of all GET variables. eg. { 'page' => 37, 'foo' => 1 } def parse_url_for_vars(uri) - URI(uri).query.split("&").each_with_object({}) do |params, get_var| + URI(uri).query.split("&").each_with_object({}) do |get_var, params| k, v = get_var.split("=") params[k] = v params