fix rubocop warnings

This commit is contained in:
Petr Korolev 2015-05-18 15:50:10 +03:00
parent 1ee1dfd50f
commit e9cb010f09
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
**Merged pull requests:**
- this pr will be closed and shouldn't appear in changelog [\#7](https://github.com/skywinder/changelog_test/pull/7) ([skywinder](https://github.com/skywinder))
- This PR SHOULD NOT appear in change log! [\#6](https://github.com/skywinder/changelog_test/pull/6) ([skywinder](https://github.com/skywinder))
- Add automatically generated change log file. [\#5](https://github.com/skywinder/changelog_test/pull/5) ([skywinder](https://github.com/skywinder))

View File

@ -26,12 +26,12 @@ module GitHubChangelogGenerator
@project = @options[:project]
@github_token = fetch_github_token
@tag_times_hash = {}
github_options = {per_page: PER_PAGE_NUMBER}
github_options = { per_page: PER_PAGE_NUMBER }
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?
@github = check_github_response{Github.new github_options}
@github = check_github_response { Github.new github_options }
end
# Returns GitHub token. First try to use variable, provided by --token option,