-
-
Save jcontonio/c8f0ed9961a93c30b7ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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