From 4e9fca01ff61372196dd60bfa79e6828610d8686 Mon Sep 17 00:00:00 2001 From: duratarskeyk Date: Tue, 15 Dec 2015 07:25:48 +0000 Subject: [PATCH] Github login/pass is now set in env --- .gitignore | 1 - config/initializers/github.rb | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 config/initializers/github.rb diff --git a/.gitignore b/.gitignore index 446301cf1..ae5f3b5d1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,3 @@ config/deploy.rb .ruby-gemset .ruby-version .localeapp -config/initializers/github.rb diff --git a/config/initializers/github.rb b/config/initializers/github.rb new file mode 100644 index 000000000..86566c727 --- /dev/null +++ b/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