bin/spackle-vim-open in spackle-0.0.1 vs bin/spackle-vim-open in spackle-0.0.2
- old
+ new
@@ -28,11 +28,11 @@
end
nil
end
def servername_from_project_root
- project_root = Spackle::Helpers::RubyProjectRoot.search Dir.pwd
+ project_root = ProjectScout.scan Dir.pwd
File.basename(project_root) if project_root
end
def servername
servername_from_arguments || servername_from_project_root || "DEFAULT"
@@ -42,8 +42,9 @@
arguments = ['gvim', '--servername', servername]
unless ARGV.empty?
arguments << "--remote-silent"
arguments += ARGV
end
+ arguments
end
system *arguments