Sha256: 39af0857c53c6e20ca92d5a63037c153695b37c4fe1ffc51afed5eab811d29ed

Contents?: true

Size: 993 Bytes

Versions: 2

Compression:

Stored size: 993 Bytes

Contents

#!/usr/bin/env ruby
#
# This is a very simply testing script to allow for testing of local changes without having to install the gem locally
#

require 'json'

$LOAD_PATH.unshift('./lib')

require 'bundler/setup'
require 'github-lister-core'

config = { :token => 'Add token here' }

def count_results(results)
    puts JSON.parse(results).size
end

def display_results(results)
    puts JSON.pretty_generate(JSON.parse(results))
end

count_results(GithubListerCore.user_repos(config))
display_results(GithubListerCore.user_repos(config))

# count_results(GithubListerCore.org_repos(config))
# display_results(GithubListerCore.org_repos(config))

# count_results(GithubListerCore.org_members_repos(config))
# display_results(GithubListerCore.org_members_repos(config))

# count_results(GithubListerCore.all_repos(config))
# display_results(GithubListerCore.all_repos(config))

# count_results(GithubListerCore.org_membership(config))
# display_results(GithubListerCore.org_membership(config))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github-lister-core-0.1.6 testing/get-raw.rb
github-lister-core-0.1.4 testing/get-raw.rb