File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55ENV [ 'SHIPIT_DISABLE_AUTH' ] = '1' # Saves us lots of trouble
66
77Dir . chdir __dir__
8+
89use_gemfile
910
11+ # sassc uses FFI with hardcoded paths to find its compiled libsass shared object.
12+ # RubyGems 4.x (Ruby 4.1+) no longer copies extensions into the gem's lib/ tree,
13+ # so sassc can't find it. Copy it into place.
14+ if RUBY_VERSION >= "4.1"
15+ spec = Gem ::Specification . find_by_name ( "sassc" ) rescue nil
16+ if spec
17+ dl_ext = RbConfig ::MAKEFILE_CONFIG [ 'DLEXT' ]
18+ target = File . join ( spec . gem_dir , "ext" , "libsass.#{ dl_ext } " )
19+ source = File . join ( spec . extension_dir , "sassc" , "libsass.#{ dl_ext } " )
20+ if !File . exist? ( target ) && File . exist? ( source )
21+ require 'fileutils'
22+ FileUtils . cp ( source , target )
23+ end
24+ end
25+ end
26+
1027require 'securerandom'
1128ENV [ 'SECRET_KEY_BASE' ] = SecureRandom . hex ( 128 )
1229
You can’t perform that action at this time.
0 commit comments