bootsnap 1.1.6-java → 1.1.7-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/bootsnap/bootsnap.c +3 -3
- data/lib/bootsnap/load_path_cache/store.rb +4 -1
- data/lib/bootsnap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5f10f537a39d959ca44add8ad51a7462fe90bf
|
4
|
+
data.tar.gz: 4ca0d0257a071a636f5631c45e56070fd24b5380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ebf046d14780e75792abf63960b2b0232a8b1fce5d0405b556b15e317e79a6833af032575b733877ffb039928e284884da1d3721a861f9f6fac976ca63a2e2
|
7
|
+
data.tar.gz: 67c4a9238bac9ec0e38ec040cbfc7c1c3b92dfa1ccdaa328315d932795efbab525666d7e9ca7d3bb4f2391b2b0dda95c3b35216092f1f5000fafff344c0e2444
|
data/CHANGELOG.md
CHANGED
data/ext/bootsnap/bootsnap.c
CHANGED
@@ -476,13 +476,13 @@ atomic_write_cache_file(char * path, struct bs_cache_key * key, VALUE data, char
|
|
476
476
|
strcat(dest, ".tmp.XXXXXX");
|
477
477
|
|
478
478
|
tmp_path = mktemp(template);
|
479
|
-
fd = open(tmp_path, O_WRONLY | O_CREAT,
|
479
|
+
fd = open(tmp_path, O_WRONLY | O_CREAT, 0664);
|
480
480
|
if (fd < 0) {
|
481
|
-
if (mkpath(path,
|
481
|
+
if (mkpath(path, 0775) < 0) {
|
482
482
|
*errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:mkpath";
|
483
483
|
return -1;
|
484
484
|
}
|
485
|
-
fd = open(tmp_path, O_WRONLY | O_CREAT,
|
485
|
+
fd = open(tmp_path, O_WRONLY | O_CREAT, 0664);
|
486
486
|
if (fd < 0) {
|
487
487
|
*errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:open";
|
488
488
|
return -1;
|
@@ -71,8 +71,11 @@ module Bootsnap
|
|
71
71
|
# caches if they read at an inopportune time.
|
72
72
|
tmp = "#{@store_path}.#{Process.pid}.#{(rand * 100000).to_i}.tmp"
|
73
73
|
FileUtils.mkpath(File.dirname(tmp))
|
74
|
-
File
|
74
|
+
exclusive_write = File::Constants::CREAT | File::Constants::EXCL | File::Constants::WRONLY
|
75
|
+
File.binwrite(tmp, MessagePack.dump(@data), mode: exclusive_write)
|
75
76
|
FileUtils.mv(tmp, @store_path)
|
77
|
+
rescue Errno::EEXIST
|
78
|
+
retry
|
76
79
|
end
|
77
80
|
end
|
78
81
|
end
|
data/lib/bootsnap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootsnap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|