lib/synvert/cli.rb in synvert-1.1.1 vs lib/synvert/cli.rb in synvert-1.1.2

- old
+ new

@@ -236,10 +236,10 @@ # eval snippet by name # it can eval by explicit snippet name, # or from local path or http url. def eval_snippet(snippet_name) if /^http/.match?(snippet_name) - uri = URI.parse(snippet_name) + uri = URI.parse(Utils.format_url(snippet_name)) eval(uri.open.read) elsif File.exists?(snippet_name) eval(File.read(snippet_name)) else require(File.join(default_snippets_home, 'lib', "#{snippet_name}.rb"))