mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Added test case of bootsnap
This commit is contained in:
parent
25a133ba17
commit
9a204fb82e
2 changed files with 21 additions and 0 deletions
1
tool/test_for_warn_bundled_gems/.gitignore
vendored
Normal file
1
tool/test_for_warn_bundled_gems/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
tmp
|
20
tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb
Normal file
20
tool/test_for_warn_bundled_gems/test_no_warn_bootsnap.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require "bundler/inline"
|
||||
|
||||
gemfile do
|
||||
source "https://rubygems.org"
|
||||
gem "bootsnap", require: false
|
||||
end
|
||||
|
||||
require 'bootsnap'
|
||||
Bootsnap.setup(
|
||||
cache_dir: 'tmp/cache',
|
||||
ignore_directories: ['node_modules'],
|
||||
development_mode: true,
|
||||
load_path_cache: true,
|
||||
compile_cache_iseq: true,
|
||||
compile_cache_yaml: true,
|
||||
compile_cache_json: true,
|
||||
readonly: true,
|
||||
)
|
||||
|
||||
require 'csv'
|
Loading…
Add table
Add a link
Reference in a new issue