From 0ff48a3dba71dea2b4da0b65f276da4f2801ad2a Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Mon, 18 May 2015 12:00:08 +0300 Subject: [PATCH] Fix #235 --- lib/github_changelog_generator/fetcher.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/github_changelog_generator/fetcher.rb b/lib/github_changelog_generator/fetcher.rb index 54533e5..201223b 100644 --- a/lib/github_changelog_generator/fetcher.rb +++ b/lib/github_changelog_generator/fetcher.rb @@ -14,14 +14,15 @@ module GitHubChangelogGenerator def initialize(options = {}) @options = options + @logger = Logger.new(STDOUT) + @logger.formatter = proc do |_severity, _datetime, _progname, msg| + "#{msg}\n" + @user = @options[:user] @project = @options[:project] @github_token = fetch_github_token @tag_times_hash = {} - @logger = Logger.new(STDOUT) - @logger.formatter = proc do |_severity, _datetime, _progname, msg| - "#{msg}\n" end github_options = { per_page: PER_PAGE_NUMBER } github_options[:oauth_token] = @github_token unless @github_token.nil?