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
|
2016-03-20 09:24:23 +00:00
|
|
|
c.stack = Proc.new do |builder|
|
|
|
|
builder.use Faraday::HttpCache, store: Rails.cache, logger: Rails.logger
|
2015-12-15 07:25:48 +00:00
|
|
|
end
|
|
|
|
end
|
2016-03-08 02:40:23 +00:00
|
|
|
|
|
|
|
#for updating repo contents
|
2016-03-10 15:23:35 +00:00
|
|
|
Github_blobs_api = Github::Client::Repos::Contents.new(basic_auth: ENV['GITHUB_REPO_BOT_LOGIN'] + ":" + ENV['GITHUB_REPO_BOT_PASSWORD'])
|