congruence_solver.gemspec in congruence_solver-0.2.0 vs congruence_solver.gemspec in congruence_solver-0.3.0
- old
+ new
@@ -15,11 +15,16 @@
to solve your congruences at the command line."
spec.homepage = "https://github.com/laneb/congruence_solver"
spec.files = `git ls-files`.split("\n")
spec.files += `git submodule --quiet foreach pwd`.split("\n").map do |abs_dir|
- rel_dir = abs_dir.gsub(Dir::pwd, "")
- Dir::entries(rel_dir).select {|f| File::file? f}
+ abs_dir = abs_dir.gsub(/^c:/, "C:")
+ root = Dir::pwd
+ dir_in_proj = abs_dir.gsub(/^#{root}\/?/, "")
+ Dir::chdir(abs_dir)
+ files = `git ls-files`.split("\n")
+ Dir::chdir(root)
+ files.map {|fname| "#{dir_in_proj}/#{fname}"}
end.flatten
spec.bindir = "bin"
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]