Revert changes made for trying to use github_options

Reverting other changes made that I missed.
This commit is contained in:
Steve Gilvarry 2016-01-05 21:28:22 +11:00
parent c6eac743b6
commit 0e4c775ce4

View File

@ -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?