lib/onebox/engine/github_gist_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/github_gist_onebox.rb in onebox-2.2.13

- old
+ new

@@ -7,11 +7,11 @@ include LayoutSupport include JSON MAX_FILES = 3 - matches_regexp Regexp.new("^http(?:s)?://gist\\.(?:(?:\\w)+\\.)?(github)\\.com(?:/)?") + matches_regexp(/^http(?:s)?:\/\/gist\.(?:(?:\w)+\.)?(github)\.com(?:\/)?/) always_https def url "https://api.github.com/gists/#{match[:sha]}" end @@ -74,9 +74,8 @@ def lines @lines ||= @json["content"].split("\n") end end - end end end