rb_sys 0.9.107 → 0.9.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - checksums.yaml.gz.sig +0 -0
 - data/exe/rb-sys-dock +21 -7
 - data/lib/rb_sys/mkmf.rb +5 -2
 - data/lib/rb_sys/toolchain_info/data.rb +1 -1
 - data/lib/rb_sys/version.rb +1 -1
 - data.tar.gz.sig +0 -0
 - metadata +18 -8
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8036fa98fd3454f15d3a043974360f56bfd055aa2b94698414e8a7e6dc85e51c
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 8c4382d2ae0b8bbf204d6b086fb1995fd0ec8e1e34596b147321663b09cec368
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c8dfaa75585b1adce9425bc5fa9455575ca99e233fc76345988fefb081c878fea411be031cce5459ba4756b492113e403385597e87add499bfc64bce75e43bcb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7eda34ad782ef81834c1ad0f0c62125759f63d42562f33994a91bb401ba7e0a9f62ed7b64a894092d88da3e4812d5daa195547299a21a55dfe317a335caec03c
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/exe/rb-sys-dock
    CHANGED
    
    | 
         @@ -4,6 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __dir__) 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            require "optparse"
         
     | 
| 
       6 
6 
     | 
    
         
             
            require "open3"
         
     | 
| 
      
 7 
     | 
    
         
            +
            require "rake_compiler_dock"
         
     | 
| 
       7 
8 
     | 
    
         
             
            require "rb_sys/version"
         
     | 
| 
       8 
9 
     | 
    
         
             
            require "rb_sys/toolchain_info"
         
     | 
| 
       9 
10 
     | 
    
         
             
            require "rb_sys/cargo/metadata"
         
     | 
| 
         @@ -17,10 +18,6 @@ OPTIONS = { 
     | 
|
| 
       17 
18 
     | 
    
         
             
              directory: Dir.pwd
         
     | 
| 
       18 
19 
     | 
    
         
             
            }
         
     | 
| 
       19 
20 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
            PATCH_RELEASE_OVERRIDES = {
         
     | 
| 
       21 
     | 
    
         
            -
              "3.3" => "3.3.5"
         
     | 
| 
       22 
     | 
    
         
            -
            }
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
21 
     | 
    
         
             
            def cargo_metadata
         
     | 
| 
       25 
22 
     | 
    
         
             
              return @cargo_metadata if defined?(@cargo_metadata)
         
     | 
| 
       26 
23 
     | 
    
         | 
| 
         @@ -104,7 +101,7 @@ OptionParser.new do |opts| 
     | 
|
| 
       104 
101 
     | 
    
         | 
| 
       105 
102 
     | 
    
         
             
              opts.on("-r", "--ruby-versions LIST", "List all supported Ruby versions") do |arg|
         
     | 
| 
       106 
103 
     | 
    
         
             
                vers = arg.split(/[^0-9.]+/).map do |v|
         
     | 
| 
       107 
     | 
    
         
            -
                  override =  
     | 
| 
      
 104 
     | 
    
         
            +
                  override = RakeCompilerDock.cross_rubies[v]
         
     | 
| 
       108 
105 
     | 
    
         | 
| 
       109 
106 
     | 
    
         
             
                  next override if override
         
     | 
| 
       110 
107 
     | 
    
         | 
| 
         @@ -367,9 +364,11 @@ def rcd(input_args) 
     | 
|
| 
       367 
364 
     | 
    
         
             
              wrapper_command << "sigfw" unless interactive?(input_args)
         
     | 
| 
       368 
365 
     | 
    
         
             
              wrapper_command << "runas"
         
     | 
| 
       369 
366 
     | 
    
         | 
| 
       370 
     | 
    
         
            -
              docker_options = []
         
     | 
| 
      
 367 
     | 
    
         
            +
              docker_options = ["--pid=host"]
         
     | 
| 
       371 
368 
     | 
    
         
             
              docker_options << "--tty" if interactive?(input_args)
         
     | 
| 
       372 
369 
     | 
    
         | 
| 
      
 370 
     | 
    
         
            +
              ruby_versions = ENV["RUBY_CC_VERSION"] || RakeCompilerDock.cross_rubies.values.join(":")
         
     | 
| 
      
 371 
     | 
    
         
            +
             
     | 
| 
       373 
372 
     | 
    
         
             
              cmd = <<~SH
         
     | 
| 
       374 
373 
     | 
    
         
             
                #{default_docker_command} run \
         
     | 
| 
       375 
374 
     | 
    
         
             
                  --platform #{OPTIONS.fetch(:docker_platform)} \
         
     | 
| 
         @@ -391,7 +390,9 @@ def rcd(input_args) 
     | 
|
| 
       391 
390 
     | 
    
         
             
                  -e RCD_IMAGE \
         
     | 
| 
       392 
391 
     | 
    
         
             
                  -e RB_SYS_DOCK_TMPDIR="/tmp/rb-sys-dock" \
         
     | 
| 
       393 
392 
     | 
    
         
             
                  -e RB_SYS_CARGO_TARGET_DIR=#{tmp_target_dir.inspect} \
         
     | 
| 
       394 
     | 
    
         
            -
                   
     | 
| 
      
 393 
     | 
    
         
            +
                  -e RUBY_CC_VERSION="#{ruby_versions}" \
         
     | 
| 
      
 394 
     | 
    
         
            +
                  -e RUBY_TARGET="#{OPTIONS.fetch(:platform)}" \
         
     | 
| 
      
 395 
     | 
    
         
            +
                  -e SOURCE_DATE_EPOCH="#{source_date_epoch}" \
         
     | 
| 
       395 
396 
     | 
    
         
             
                  -e RAKEOPT \
         
     | 
| 
       396 
397 
     | 
    
         
             
                  -e TERM \
         
     | 
| 
       397 
398 
     | 
    
         
             
                  -w #{working_directory} \
         
     | 
| 
         @@ -410,6 +411,19 @@ def rcd(input_args) 
     | 
|
| 
       410 
411 
     | 
    
         
             
              exec(cmd)
         
     | 
| 
       411 
412 
     | 
    
         
             
            end
         
     | 
| 
       412 
413 
     | 
    
         | 
| 
      
 414 
     | 
    
         
            +
            def source_date_epoch
         
     | 
| 
      
 415 
     | 
    
         
            +
              return ENV["SOURCE_DATE_EPOCH"] if ENV.key?("SOURCE_DATE_EPOCH")
         
     | 
| 
      
 416 
     | 
    
         
            +
             
     | 
| 
      
 417 
     | 
    
         
            +
              stdout, status = Open3.capture2("git log -1 --pretty=%ct")
         
     | 
| 
      
 418 
     | 
    
         
            +
             
     | 
| 
      
 419 
     | 
    
         
            +
              if status.success?
         
     | 
| 
      
 420 
     | 
    
         
            +
                stdout.strip
         
     | 
| 
      
 421 
     | 
    
         
            +
              else
         
     | 
| 
      
 422 
     | 
    
         
            +
                logger.warn("Could not determine SOURCE_DATE_EPOCH from git log, using current time")
         
     | 
| 
      
 423 
     | 
    
         
            +
                Time.now.to_i.to_s
         
     | 
| 
      
 424 
     | 
    
         
            +
              end
         
     | 
| 
      
 425 
     | 
    
         
            +
            end
         
     | 
| 
      
 426 
     | 
    
         
            +
             
     | 
| 
       413 
427 
     | 
    
         
             
            def download_image
         
     | 
| 
       414 
428 
     | 
    
         
             
              image = ENV.fetch("RCD_IMAGE")
         
     | 
| 
       415 
429 
     | 
    
         | 
    
        data/lib/rb_sys/mkmf.rb
    CHANGED
    
    | 
         @@ -250,6 +250,9 @@ module RbSys 
     | 
|
| 
       250 
250 
     | 
    
         
             
                end
         
     | 
| 
       251 
251 
     | 
    
         | 
| 
       252 
252 
     | 
    
         
             
                def optional_rust_toolchain(builder)
         
     | 
| 
      
 253 
     | 
    
         
            +
                  rustup_default_cmd = "$(Q) $(CARGO_HOME)/bin/rustup default $(RB_SYS_DEFAULT_TOOLCHAIN)"
         
     | 
| 
      
 254 
     | 
    
         
            +
                  rustup_toolchain_cmd = "$(Q) $(CARGO_HOME)/bin/rustup toolchain install $(RB_SYS_DEFAULT_TOOLCHAIN) --profile $(RB_SYS_RUSTUP_PROFILE)"
         
     | 
| 
      
 255 
     | 
    
         
            +
             
     | 
| 
       253 
256 
     | 
    
         
             
                  <<~MAKE
         
     | 
| 
       254 
257 
     | 
    
         
             
                    #{conditional_assign("RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN", force_install_rust_toolchain?(builder))}
         
     | 
| 
       255 
258 
     | 
    
         | 
| 
         @@ -260,8 +263,8 @@ module RbSys 
     | 
|
| 
       260 
263 
     | 
    
         
             
                    $(CARGO):
         
     | 
| 
       261 
264 
     | 
    
         
             
                    \t$(Q) $(MAKEDIRS) $(CARGO_HOME) $(RUSTUP_HOME)
         
     | 
| 
       262 
265 
     | 
    
         
             
                    \t$(Q) curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --no-modify-path --profile $(RB_SYS_RUSTUP_PROFILE) --default-toolchain none -y
         
     | 
| 
       263 
     | 
    
         
            -
                    \t 
     | 
| 
       264 
     | 
    
         
            -
                    \t 
     | 
| 
      
 266 
     | 
    
         
            +
                    \t#{rustup_toolchain_cmd} || (sleep 5; #{rustup_toolchain_cmd}) || (sleep 5; #{rustup_toolchain_cmd})
         
     | 
| 
      
 267 
     | 
    
         
            +
                    \t#{rustup_default_cmd} || (sleep 5; #{rustup_default_cmd}) || (sleep 5; #{rustup_default_cmd})
         
     | 
| 
       265 
268 
     | 
    
         
             
                    #{install_extra_rustup_targets(builder)}
         
     | 
| 
       266 
269 
     | 
    
         | 
| 
       267 
270 
     | 
    
         
             
                    $(RUSTLIB): $(CARGO)
         
     | 
| 
         @@ -5,6 +5,6 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            module RbSys
         
     | 
| 
       6 
6 
     | 
    
         
             
              class ToolchainInfo
         
     | 
| 
       7 
7 
     | 
    
         
             
                # @private
         
     | 
| 
       8 
     | 
    
         
            -
                DATA = {"arm-linux" => {"rust-target" => "arm-unknown-linux-gnueabihf", "rake-compiler-dock" => {"cc" => "arm-linux-gnueabihf-gcc"}, "docker-platform" => "linux/arm/v7", "supported" => true}, "aarch64-linux" => {"rust-target" => "aarch64-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "aarch64-linux-gnu-gcc"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "aarch64-linux-musl" => {"rust-target" => "aarch64-unknown-linux-musl", "rake-compiler-dock" => {"cc" => "aarch64-linux-musl-gcc"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "arm64-darwin" => {"rust-target" => "aarch64-apple-darwin", "rake-compiler-dock" => {"cc" => "aarch64-apple-darwin-clang"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "x64-mingw-ucrt" => {"rust-target" => "x86_64-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "x86_64-windows-gnu-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x64-mingw32" => {"rust-target" => "x86_64-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "x86_64-windows-gnu-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86-linux" => {"rust-target" => "i686-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "i686-redhat-linux-gcc"}, "docker-platform" => "linux/i386", "supported" => false}, "x86-mingw32" => {"rust-target" => "i686-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "i686-w64-mingw32-gcc"}, "docker-platform" => "linux/i386", "supported" => false}, "x86_64-darwin" => {"rust-target" => "x86_64-apple-darwin", "rake-compiler-dock" => {"cc" => "x86_64-apple-darwin-clang"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86_64-linux" => {"rust-target" => "x86_64-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "x86_64-redhat-linux-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86_64-linux-musl" => {"rust-target" => "x86_64-unknown-linux-musl", "rake-compiler-dock" => {"cc" => "x86_64-unknown-linux-musl-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}}
         
     | 
| 
      
 8 
     | 
    
         
            +
                DATA = {"arm-linux" => {"rust-target" => "arm-unknown-linux-gnueabihf", "rake-compiler-dock" => {"cc" => "arm-linux-gnueabihf-gcc"}, "docker-platform" => "linux/arm/v7", "supported" => true}, "aarch64-linux" => {"aliases" => ["aarch64-linux-gnu", "aarch64-unknown-linux-gnu"], "rust-target" => "aarch64-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "aarch64-linux-gnu-gcc"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "aarch64-linux-musl" => {"rust-target" => "aarch64-unknown-linux-musl", "rake-compiler-dock" => {"cc" => "aarch64-linux-musl-gcc"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "arm64-darwin" => {"rust-target" => "aarch64-apple-darwin", "rake-compiler-dock" => {"cc" => "aarch64-apple-darwin-clang"}, "docker-platform" => "linux/arm64/v8", "supported" => true}, "x64-mingw-ucrt" => {"rust-target" => "x86_64-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "x86_64-windows-gnu-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x64-mingw32" => {"rust-target" => "x86_64-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "x86_64-windows-gnu-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86-linux" => {"rust-target" => "i686-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "i686-redhat-linux-gcc"}, "docker-platform" => "linux/i386", "supported" => false}, "x86-mingw32" => {"rust-target" => "i686-pc-windows-gnu", "rake-compiler-dock" => {"cc" => "i686-w64-mingw32-gcc"}, "docker-platform" => "linux/i386", "supported" => false}, "x86_64-darwin" => {"rust-target" => "x86_64-apple-darwin", "rake-compiler-dock" => {"cc" => "x86_64-apple-darwin-clang"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86_64-linux" => {"aliases" => ["x86_64-linux-gnu", "x86_64-unknown-linux-gnu"], "rust-target" => "x86_64-unknown-linux-gnu", "rake-compiler-dock" => {"cc" => "x86_64-redhat-linux-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}, "x86_64-linux-musl" => {"rust-target" => "x86_64-unknown-linux-musl", "rake-compiler-dock" => {"cc" => "x86_64-unknown-linux-musl-gcc"}, "docker-platform" => "linux/amd64", "supported" => true}}
         
     | 
| 
       9 
9 
     | 
    
         
             
              end
         
     | 
| 
       10 
10 
     | 
    
         
             
            end
         
     | 
    
        data/lib/rb_sys/version.rb
    CHANGED
    
    
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,11 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rb_sys
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.9. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.111
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ian Ker-Seymer
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire:
         
     | 
| 
       9 
8 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
9 
     | 
    
         
             
            cert_chain:
         
     | 
| 
       11 
10 
     | 
    
         
             
            - |
         
     | 
| 
         @@ -29,9 +28,22 @@ cert_chain: 
     | 
|
| 
       29 
28 
     | 
    
         
             
              Lvd35BNvZkhFzs9xfykhurpkT2TiP2F3ZFn9dwLXMFe41pwrtEYLIWhYi8mUG4Ek
         
     | 
| 
       30 
29 
     | 
    
         
             
              6aR8M/tqIpChVV39
         
     | 
| 
       31 
30 
     | 
    
         
             
              -----END CERTIFICATE-----
         
     | 
| 
       32 
     | 
    
         
            -
            date: 2025- 
     | 
| 
       33 
     | 
    
         
            -
            dependencies: 
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
      
 31 
     | 
    
         
            +
            date: 2025-02-28 00:00:00.000000000 Z
         
     | 
| 
      
 32 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 33 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 34 
     | 
    
         
            +
              name: rake-compiler-dock
         
     | 
| 
      
 35 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 36 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 37 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 39 
     | 
    
         
            +
                    version: 1.9.1
         
     | 
| 
      
 40 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 41 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 42 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 43 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 44 
     | 
    
         
            +
                - - '='
         
     | 
| 
      
 45 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 46 
     | 
    
         
            +
                    version: 1.9.1
         
     | 
| 
       35 
47 
     | 
    
         
             
            email:
         
     | 
| 
       36 
48 
     | 
    
         
             
            - i.kerseymer@gmail.com
         
     | 
| 
       37 
49 
     | 
    
         
             
            executables:
         
     | 
| 
         @@ -66,7 +78,6 @@ metadata: 
     | 
|
| 
       66 
78 
     | 
    
         
             
              homepage_uri: https://oxidize-rb.github.io/rb-sys/
         
     | 
| 
       67 
79 
     | 
    
         
             
              source_code_uri: https://github.com/oxidize-rb/rb-sys
         
     | 
| 
       68 
80 
     | 
    
         
             
              rubygems_mfa_required: 'true'
         
     | 
| 
       69 
     | 
    
         
            -
            post_install_message:
         
     | 
| 
       70 
81 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       71 
82 
     | 
    
         
             
            require_paths:
         
     | 
| 
       72 
83 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -81,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       81 
92 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       82 
93 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       83 
94 
     | 
    
         
             
            requirements: []
         
     | 
| 
       84 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
       85 
     | 
    
         
            -
            signing_key:
         
     | 
| 
      
 95 
     | 
    
         
            +
            rubygems_version: 3.6.2
         
     | 
| 
       86 
96 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       87 
97 
     | 
    
         
             
            summary: Helpers for compiling Rust extensions for ruby
         
     | 
| 
       88 
98 
     | 
    
         
             
            test_files: []
         
     | 
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |