Skip to content

Commit

Permalink
fix: Include transpiled files in the gem build
Browse files Browse the repository at this point in the history
  • Loading branch information
baygeldin committed Mar 7, 2022
1 parent 78c7495 commit 5dba8f6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tantiny.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.6"

# 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(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:github)|appveyor)})
end
end + Dir.glob("lib/.rbnext/**/*")
spec.files = [
Dir.glob("bin/**/*"),
Dir.glob("ext/**/*"),
Dir.glob("lib/**/*"),
Dir.glob("lib/.rbnext/**/*"),
Dir.glob("sig/**/*"),
Dir.glob("src/**/*"),
"Cargo.toml",
"Cargo.lock",
"README.md",
"CHANGELOG.md",
"LICENSE"
].flatten

spec.extensions << "ext/Rakefile"

Expand Down

0 comments on commit 5dba8f6

Please sign in to comment.