Skip to content

Instantly share code, notes, and snippets.

@cbaclig
Created March 8, 2010 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbaclig/325480 to your computer and use it in GitHub Desktop.
Save cbaclig/325480 to your computer and use it in GitHub Desktop.
--- spork-old.rb Mon Mar 8 10:53:29 2010
+++ spork.rb Mon Mar 8 11:12:32 2010
@@ -107,8 +107,8 @@
@already_ran ||= []
end
def expanded_caller(caller_line)
- file, line = caller_line.split(":")
+ file, line = caller_line.split(/:(\d+)/)
line.gsub(/:.+/, '')
File.expand_path(file, Dir.pwd) + ":" + line
end
@@ -124,4 +124,3 @@
end
end
end
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment