prebake 0.3.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27e9af4988afacc2c07ae6e09eac8aa9efa26d44dc95401cd4f1d52e14993bd6
4
- data.tar.gz: 801beefc4a2eed88cda591e6cf0b6abbef13a8f597f185eececeafd49b9e6857
3
+ metadata.gz: 165d7d78f5647f35f50690133586dfd1c7d18b55958a184f20f812cd322587ce
4
+ data.tar.gz: e0f7ee51e509b3961bfaa812d142e4d84a1ea1ba8a110fa8330b5da74165e638
5
5
  SHA512:
6
- metadata.gz: 9911d705b900209619e8051a3d01acb4fdd1337b026f93b577f6b6113cee8ce0a18fa5f88af9316988c7433f01232700731776ff562b8f7d85910cdcd94c802f
7
- data.tar.gz: 80a33006c4a8159bb0b5f594b95c9b60f443e0126f3862fc2c526424794bc2acf6ff2c90ad4bbbec88c58ce0a1dba40ff05c7cc48001e9c0568675f53013fc07
6
+ metadata.gz: eeeb9c110e82c848a208738c35e565c9590586f7848e782524de04e6482fd9fa378da70a9be3191a2e40821c09ddcd7273d2ec2963028d7bfab6783addd90c4c
7
+ data.tar.gz: 22d403d28812c4ff75a3f620ff67d8761ffcfb2917727233e55d6d7b59687e689256ec42ec81685ccbbdeb05d27756e737f76b3c5a10bb4ec2f9ee0eca82c06e
@@ -35,21 +35,12 @@ module Prebake
35
35
  return if url.start_with?("https://")
36
36
  return if ENV.fetch("PREBAKE_ALLOW_INSECURE", "false") == "true"
37
37
  return unless url.start_with?("http://")
38
- return if darwin_with_default_host?(url)
39
38
 
40
39
  Logger.warn(
41
40
  "Using insecure HTTP connection to #{url}. " \
42
41
  "Set PREBAKE_ALLOW_INSECURE=true to suppress this warning."
43
42
  )
44
43
  end
45
-
46
- private
47
-
48
- def darwin_with_default_host?(url)
49
- RUBY_PLATFORM.include?("darwin") &&
50
- Prebake.backend_type == "http" &&
51
- url.chomp("/") == Prebake::DEFAULT_HTTP_URL
52
- end
53
44
  end
54
45
  end
55
46
  end
@@ -44,20 +44,13 @@ module Prebake
44
44
  nil
45
45
  end
46
46
 
47
- def fetch_checksum(_cache_key)
48
- # Gemstash doesn't store arbitrary files alongside gems.
49
- # Checksum verification is skipped for Gemstash backend.
50
- nil
51
- end
52
-
47
+ # Gemstash doesn't store arbitrary files alongside gems, so checksum
48
+ # verification is skipped. fetch_checksum and delete inherit Base's
49
+ # nil/false defaults.
53
50
  def checksums_supported?
54
51
  false
55
52
  end
56
53
 
57
- def delete(_cache_key)
58
- false
59
- end
60
-
61
54
  def push(gem_path, cache_key, _checksum)
62
55
  uri = URI("#{@url}/private/api/v1/gems")
63
56
  gem_content = File.binread(gem_path)
@@ -5,9 +5,5 @@ module Prebake
5
5
  def self.for(name, version, platform)
6
6
  "#{name}-#{version}-#{platform}-ruby#{Prebake::RUBY_ABI_VERSION}.gem"
7
7
  end
8
-
9
- def self.checksum_for(name, version, platform)
10
- "#{self.for(name, version, platform)}.sha256"
11
- end
12
8
  end
13
9
  end
@@ -6,8 +6,6 @@ require_relative "logger"
6
6
 
7
7
  module Prebake
8
8
  module Extractor
9
- BINARY_EXTENSIONS = %w[.so .bundle .dll].freeze
10
-
11
9
  def self.install(gem_path, spec)
12
10
  Logger.debug "Extracting precompiled binaries from #{File.basename(gem_path)}"
13
11
 
@@ -5,8 +5,6 @@ module Prebake
5
5
  NORMALIZATIONS = [
6
6
  [/\Aarm64-darwin(-\d+)?\z/, "arm64-darwin"],
7
7
  [/\Ax86_64-darwin(-\d+)?\z/, "x86_64-darwin"],
8
- [/\Ax86_64-linux-musl\z/, "x86_64-linux-musl"],
9
- [/\Aaarch64-linux-musl\z/, "aarch64-linux-musl"],
10
8
  [/\Ax86_64-linux(-gnu)?\z/, "x86_64-linux"],
11
9
  [/\Aaarch64-linux(-gnu)?\z/, "aarch64-linux"]
12
10
  ].freeze
@@ -8,7 +8,9 @@ module Prebake
8
8
  # Gems whose native extensions are entirely optional — the gem runs correctly in pure Ruby
9
9
  # mode when the extension can't be loaded. Prebake skips the extension for these gems
10
10
  # instead of installing a broken .so. Extend via PREBAKE_OPTIONAL_NATIVE_EXTENSIONS=gem1,gem2.
11
- OPTIONAL_NATIVE_EXTENSIONS_DEFAULT = %w[bootsnap].freeze
11
+ # Intentionally empty: bootsnap 1.18+ requires its native extension unconditionally;
12
+ # skipping the build produces a broken install.
13
+ OPTIONAL_NATIVE_EXTENSIONS_DEFAULT = %w[].freeze
12
14
 
13
15
  class << self
14
16
  def optional_native_extensions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prebake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thejus Paul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-23 00:00:00.000000000 Z
11
+ date: 2026-09-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Prebake speeds up bundle install by skipping native gem compilation.
14
14
  It fetches precompiled binaries for gems like puma, nokogiri, pg, grpc, and bootsnap