From 0e4c775ce444c7fbc4a0da129f31d84e005eec18 Mon Sep 17 00:00:00 2001 From: Steve Gilvarry Date: Tue, 5 Jan 2016 21:28:22 +1100 Subject: [PATCH] Revert changes made for trying to use github_options Reverting other changes made that I missed. --- lib/github_changelog_generator/fetcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github_changelog_generator/fetcher.rb b/lib/github_changelog_generator/fetcher.rb index 1565a01..eef3e6d 100644 --- a/lib/github_changelog_generator/fetcher.rb +++ b/lib/github_changelog_generator/fetcher.rb @@ -15,10 +15,10 @@ module GitHubChangelogGenerator def initialize(options = {}) @options = options || {} + @user = @options[:user] + @project = @options[:project] @github_token = fetch_github_token @github_options = { per_page: PER_PAGE_NUMBER } - @github_options[:user] = @options[:user] - @github_options[:repo] = @options[:project] @github_options[:oauth_token] = @github_token unless @github_token.nil? @github_options[:endpoint] = @options[:github_endpoint] unless @options[:github_endpoint].nil? @github_options[:site] = @options[:github_endpoint] unless @options[:github_site].nil?