Sha256: 7625f46c8939deba952100063c165bc83219887af2f336c99b044efb2182e85d
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
module IssueExporting def self.api_url "https://api.github.com/repos/%s/%s/issues?access_token=%s" end def self.make_url(owner, repo, token, options = {}) url_format = IssueExporting.api_url root_url = url_format % [owner, repo, token] return root_url unless options[:include_closed_issues] == true root_url + "&state=all" end def self.make_uri(owner, repo, token, options = {}) URI(IssueExporting.make_url(owner, repo, token, options)) end def self.turn_options_into_querystring(options) querystring = '' options.each do |k, v| escaped_k, escaped_v = URI::encode(k), URI::encode(v) querystring += "#{escaped_k}=#{escaped_v}&" end querystring.chop end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github_issue_exporter-0.3.0 | lib/issue_exporter/github.rb |