rosa-build/config/initializers/github.rb

10 lines
241 B
Ruby
Raw Normal View History

2015-12-15 07:25:48 +00:00
#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