Skip to content

Commit

Permalink
Slip down the packaged gem to only the necessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
rosston committed Nov 16, 2024
1 parent 78f4ce7 commit c282372
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions good_migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 2.3.0"
spec.metadata["rubygems_mfa_required"] = "true"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.files = `git ls-files -z -- lib CHANGELOG* LICENSE*`.split("\x0")
spec.executables = `git ls-files -z -- exe`.split("\x0").map { File.basename _1 }
spec.extra_rdoc_files = `git ls-files -z -- example README*`.split("\x0")
spec.require_paths = ["lib"]
spec.bindir = "exe"

spec.add_dependency "railties", ">= 3.1"
spec.add_dependency "activerecord", ">= 3.1"
Expand Down

0 comments on commit c282372

Please sign in to comment.