Sha256: 5525866d304a5d14f8cf6dc727cb3a5373d2d99a20fe0235a62e742aa7d43ee9
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
require 'net/http' require 'open-uri' require 'json' module Dashing module Downloader extend self def get_gist(gist_id) get_json("https://api.github.com/gists/#{gist_id}") end def get_json(url) response = URI.open(url).read JSON.parse(response) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smashing-1.3.6 | lib/dashing/downloader.rb |