Sha256: ec78c6bd2759b6e3aa2f31a30a879fcd66612418873820335f8a220f32f223b6

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

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'

# rubocop:disable Lint/UselessAssignment
config = { :token => 'Add token here' }
# rubocop:enable Lint/UselessAssignment

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.3 testing/get-raw.rb
github-lister-core-0.1.2 testing/get-raw.rb