examples/sexp_grep.rb in sexp_path-0.5.0 vs examples/sexp_grep.rb in sexp_path-0.5.1
- old
+ new
@@ -1,11 +1,9 @@
-require 'rubygems'
-require File.dirname(__FILE__) + '/../lib/sexp_path'
+require_relative '../lib/sexp_path'
require 'ruby_parser'
# Example program, this will scan a file for anything
# matching the Sexp passed in.
-
pattern = ARGV.shift
paths = ARGV
if paths.empty? || !pattern
\ No newline at end of file