Skip to content

Instantly share code, notes, and snippets.

@jcontonio
Created November 16, 2010 17:43
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 jcontonio/c8f0ed9961a93c30b7ec to your computer and use it in GitHub Desktop.
Save jcontonio/c8f0ed9961a93c30b7ec to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'jazz_money'
spec_paths = []
src_paths = []
files = Regexp.new(/s(pec|rc)/)
specs = Regexp.new(/spec\//)
srcs = Regexp.new(/src\//)
Dir['**/*.js'].each do |path|
file_data = files.match(path)
if file_data
if specs.match(path)
spec_paths.push(path)
end
if srcs.match(path)
src_paths.push(path)
end
end
end
puts spec_paths
JazzMoney::Runner.new(spec_paths, src_paths).call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment