Created
January 21, 2014 05:30
-
-
Save ssimeonov/8534875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'json' | |
API = 'https://api.github.com/users/swoop-inc/repos' | |
open(API) do |io| | |
puts JSON.parse(io.read). | |
reject { |repo| repo['fork'] }. | |
map { |repo| repo['full_name'] }. | |
to_json | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment