We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f41ecbf commit 7769ecdCopy full SHA for 7769ecd
modules/swagger-codegen/src/main/resources/ruby/gemspec.mustache
@@ -36,8 +36,14 @@ Gem::Specification.new do |s|
36
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
37
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
38
39
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
40
- s.test_files = `find spec/*`.split("\n")
+ gemspec = File.basename(__FILE__)
+ 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
47
s.executables = []
48
s.require_paths = ["lib"]
49
end
0 commit comments