We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9153e43 commit af85461Copy full SHA for af85461
lib/jekyll-gist/gist_tag.rb
@@ -90,7 +90,7 @@ def fetch_raw_code(gist_id, filename = nil)
90
private
91
92
def code_from_api(gist_id, filename = nil)
93
- gist = client.gist gist_id
+ gist = GistTag.client.gist gist_id
94
95
file = if filename.to_s.empty?
96
# No file specified, return the value of the first key/value pair
@@ -106,7 +106,7 @@ def code_from_api(gist_id, filename = nil)
106
file[:content] if file
107
end
108
109
- def client
+ def self.client
110
@client ||= Octokit::Client.new :access_token => ENV["JEKYLL_GITHUB_TOKEN"]
111
112
0 commit comments