Sha256: 6c9f33b1614f35396d478c72eed6413637431617a3be9aee3b8f256503eed344
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 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) url_format = IssueExporting.api_url root_url = url_format % [owner, repo, token] return root_url end def self.make_uri(owner, repo, token) URI(IssueExporting.make_url(owner, repo, token)) 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.1 | lib/issue_exporter/github.rb |