Github login/pass is now set in env
This commit is contained in:
parent
98e4dc1730
commit
4e9fca01ff
|
@ -25,4 +25,3 @@ config/deploy.rb
|
||||||
.ruby-gemset
|
.ruby-gemset
|
||||||
.ruby-version
|
.ruby-version
|
||||||
.localeapp
|
.localeapp
|
||||||
config/initializers/github.rb
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue