lib/synvert/cli.rb in synvert-0.0.2 vs lib/synvert/cli.rb in synvert-0.0.3
- old
+ new
@@ -13,13 +13,11 @@
opts.banner = "Usage: synvert path"
end
paths = optparse.parse(args)
Configuration.instance.set :path, paths.first || Dir.pwd
- load(File.join(File.dirname(__FILE__), 'factory_girl/syntax_methods.rb'))
-
- ObjectSpace.each_object Synvert::Rewriter do |rewriter|
- rewriter.process
+ Dir.glob(File.join(File.dirname(__FILE__), 'snippets/**/*.rb')).each do |file|
+ eval(File.read(file)).process
end
end
end
end