File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/swagger-codegen/src/main/resources/ruby Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,14 @@ Gem::Specification.new do |s|
3636 s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
3737 s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
3838
39- s.files = `find *`.split("\n").uniq.sort.select { |f| ! f.empty? }
40- s.test_files = `find spec/*`.split("\n")
39+ gemspec = File.basename(__FILE__)
40+ spec.files = IO.popen(%w[find * -print0], chdir: __dir__, err: IO::NULL) do |ls|
41+ ls.readlines("\x0", chomp: true).reject do |f|
42+ (f == gemspec) ||
43+ f.start_with?(*%w[bin/ test/ spec/ features/ .git Gemfile]) ||
44+ f.end_with?(".gem")
45+ end
46+ end
4147 s.executables = []
4248 s.require_paths = ["lib"]
4349end
You can’t perform that action at this time.
0 commit comments