Skip to content

Commit

Permalink
Merge pull request #156 from babie/fix-plugin_install-in-case-of-name…
Browse files Browse the repository at this point in the history
…-has-number

fix :plugin_install in case of github name has numbers
  • Loading branch information
jugyo committed Nov 5, 2013
2 parents 182ce2d + aafc954 commit d5fef09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/earthquake/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def self._eval_as_ruby_string(text)
puts "the host must be gist.github.com".c(41)
else
puts "..."
gist_id = uri.path[/\d+/]
gist_id = uri.path[%r|/(\d+)/?$|,1]
meta = JSON.parse(open("https://api.github.com/gists/#{gist_id}").read)
filename = meta["files"].keys[0]
raw = meta['files'][filename]['content']
Expand Down

0 comments on commit d5fef09

Please sign in to comment.