Github login/pass is now set in env

This commit is contained in:
duratarskeyk 2015-12-15 07:25:48 +00:00
parent 98e4dc1730
commit 4e9fca01ff
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -25,4 +25,3 @@ config/deploy.rb
.ruby-gemset .ruby-gemset
.ruby-version .ruby-version
.localeapp .localeapp
config/initializers/github.rb

View File

@ -0,0 +1,9 @@
#configuration of Github api gem
Github.configure do |c|
c.basic_auth = ENV["GITHUB_LOGIN"] + ":" + ENV["GITHUB_PASSWORD"]
c.auto_pagination = true
c.stack do |builder|
builder.use Faraday::HttpCache, store: Rails.cache
end
end