Skip to content

Commit

Permalink
Use Dir.glob instead of git ls-files
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuk09 committed Sep 1, 2023
1 parent d74669a commit 5fd228d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased]
## [0.1.1] - 2023-09-01

- Update gemspec to avoid `git ls-files`
- Support dry-configuration version 0.10.x - 0.12.x

## [0.1.0] - 2023-04-11
Expand Down
8 changes: 1 addition & 7 deletions sequel-data-migrate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "https://github.com/kaligo/sequel-data-migrate/blob/master/CHANGELOG.md"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|github))})
end
end
spec.files = Dir.glob('{lib,sig}/**/*') + %w[README.md CHANGELOG.md LICENSE.txt]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down

0 comments on commit 5fd228d

Please sign in to comment.