Sha256: 0fd3ab82fed29e1614640fbfeb9988b720c6708cc6bcb3800ae7cf8198c8a4ec
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'octokit/client/issue_export' module Octokit class Client include Octokit::Client::IssueExport alias :original_request :request def _request_stopper return if last_response.nil? return unless Octokit.rate_limit.remaining.zero? minutes = (rate_limit.resets_in + 5)/60 puts "=> Rate limit! Please wait #{minutes} minutes(#{rate_limit.resets_at})..." sleep minutes end def request(method, path, data, options = {}) _request_stopper original_request(method, path, data, options = {}) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit_issue_export-0.0.3 | lib/octokit_issue_export/client.rb |
octokit_issue_export-0.0.2 | lib/octokit_issue_export/client.rb |