lib/roko/source/github/report_events.rb in roko-0.2.0 vs lib/roko/source/github/report_events.rb in roko-0.2.1

- old
+ new

@@ -10,10 +10,13 @@ module Github # report events from github class ReportEvents < Roko::Source::Base::ReportEvents def client Octokit.configure do |c| - c.netrc_file = ENV['NETRC_FILE_PATH'] || '~/.netrc' + c.netrc_file = ENV.fetch( + 'NETRC_FILE_PATH', + File.expand_path('~/.netrc') + ) c.auto_paginate = true end Octokit::Client.new(netrc: true) end