prebake 0.3.1 → 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 +4 -4
- data/lib/prebake/backends/base.rb +0 -9
- data/lib/prebake/backends/gemstash.rb +3 -10
- data/lib/prebake/cache_key.rb +0 -4
- data/lib/prebake/extractor.rb +0 -2
- data/lib/prebake/platform.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 165d7d78f5647f35f50690133586dfd1c7d18b55958a184f20f812cd322587ce
|
|
4
|
+
data.tar.gz: e0f7ee51e509b3961bfaa812d142e4d84a1ea1ba8a110fa8330b5da74165e638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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)
|
data/lib/prebake/cache_key.rb
CHANGED
data/lib/prebake/extractor.rb
CHANGED
data/lib/prebake/platform.rb
CHANGED
|
@@ -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
|
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.
|
|
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-
|
|
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
|