lib/onebox/engine/github_gist_onebox.rb in onebox-1.3.8 vs lib/onebox/engine/github_gist_onebox.rb in onebox-1.3.9

- old
+ new

@@ -3,15 +3,10 @@ module Onebox module Engine class GithubGistOnebox include Engine - matches do - http - with("gist.") - domain("github") - tld("com") - end + matches_regexp Regexp.new("^http(?:s)?://gist\\.(?:(?:\\w)+\\.)?(github)\\.com(?:/)?") def url "https://api.github.com/gists/#{match[:sha]}" end