Skip to content

Commit

Permalink
gemspec: Exclude *.bundle (follow-up #281) (#285)
Browse files Browse the repository at this point in the history
* uses FileList and exclude *.bundle and C code

* back to Dir#[] + reject

* don't exclude *.cc? files

* only includes .rb files from lib/

* adds all compilation artefacts to CLEAN
  • Loading branch information
tisba committed Jun 5, 2023
1 parent ec9970e commit c7ed672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Rakefile
@@ -1,6 +1,9 @@
require "bundler/gem_tasks"
require "rake/testtask"

CLEAN.add("{ext,lib}/**/*.{o,so,bundle}", "pkg")
CLOBBER.add("Gemfile.lock")

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
Expand All @@ -26,7 +29,6 @@ else
end



# via http://blog.flavorjon.es/2009/06/easily-valgrind-gdb-your-ruby-c.html
namespace :test do
desc "run test suite with Address Sanitizer"
Expand Down
2 changes: 1 addition & 1 deletion mini_racer.gemspec
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
"source_code_uri" => "https://github.com/discourse/mini_racer/tree/v#{spec.version}",
}

spec.files = Dir["lib/**/*", "ext/**/*", "README.md", "LICENSE.txt", "CHANGELOG", "CODE_OF_CONDUCT.md"]
spec.files = Dir["lib/**/*.rb", "ext/**/*", "README.md", "LICENSE.txt", "CHANGELOG", "CODE_OF_CONDUCT.md"]
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler"
Expand Down

0 comments on commit c7ed672

Please sign in to comment.