Sha256: 6ec2c05d1615ad1500dc038ebe640f693ead60afa554e6d133cb9716346620d8
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
class Octokitty #! Do I need this class? #! If so, can I how will the user class leverage octokitty attr_reader :client, :repo_call def initialize @client = Octokit::Client.new(access_token: ENV["GIT_PAT"], auto_traversal: true, per_page: 100) end def user_config(user_name) # binding.pry begin user = @client.user(user_name) rescue user = nil end user end def repo_config(user) @client.repos(user, {sort: "created", direction: "desc"}) end end #! Handling 404's from octokit: http://rubylearning.com/satishtalim/ruby_exceptions.html #! https://github.com/octokit/octokit.rb#pagination #! https://developer.github.com/v3/repos/ #! https://www.rubydoc.info/github/octokit/octokit.rb/Octokit/Client/Search#search_code-instance_method #! http://docs2.lfe.io/guides/traversing-with-pagination/
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reclone-0.3.0 | lib/reclone/octokitty.rb |
reclone-0.1.0 | lib/reclone/octokitty.rb |