Skip to content

Commit

Permalink
Update gist tag url to githubusercontent.com
Browse files Browse the repository at this point in the history
  • Loading branch information
howiehu committed May 23, 2014
1 parent ff1b10d commit dca0c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gist_tag.rb
Expand Up @@ -44,13 +44,13 @@ def html_output_for(script_url, code)
end

def script_url_for(gist_id, filename)
url = "https://gist.github.com/#{gist_id}.js"
url = "https://gist.githubusercontent.com/#{gist_id}.js"
url = "#{url}?file=#{filename}" unless filename.nil? or filename.empty?
url
end

def get_gist_url_for(gist, file)
"https://gist.github.com/raw/#{gist}/#{file}"
"https://gist.githubusercontent.com/raw/#{gist}/#{file}"
end

def cache(gist, file, data)
Expand Down

0 comments on commit dca0c75

Please sign in to comment.