bootsnap 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bootsnap/load_path_cache/store.rb +7 -2
- data/lib/bootsnap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc142349008790c310bcbc875a437996403242e579f85fb48f46eceecb383ad
|
4
|
+
data.tar.gz: fa1d21fafa8a4fa4d44ced76d597b773d3321e077dc815ccbcae3fe9dc4e661a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81445538692ae0dc34b7309c44195fce5c864e508afe6eed4124d3d87bc1bfa07fd2ddb2c602faa2409f1537f8da63b885fd692bdc74e961febdd2a39e6e1919
|
7
|
+
data.tar.gz: 6389ce3a667c528660976665ce8184fb61d638da6cd4040e7b2d55441679574bdf691e4991294396c19a6e79bbf185ba1cdca848d5ea499a5b8e197dca143a5f
|
data/CHANGELOG.md
CHANGED
@@ -29,8 +29,8 @@ module Bootsnap
|
|
29
29
|
|
30
30
|
v = get(key)
|
31
31
|
unless v
|
32
|
-
@dirty = true
|
33
32
|
v = yield
|
33
|
+
mark_for_mutation!
|
34
34
|
@data[key] = v
|
35
35
|
end
|
36
36
|
v
|
@@ -40,7 +40,7 @@ module Bootsnap
|
|
40
40
|
raise(SetOutsideTransactionNotAllowed) unless @txn_mutex.owned?
|
41
41
|
|
42
42
|
if value != @data[key]
|
43
|
-
|
43
|
+
mark_for_mutation!
|
44
44
|
@data[key] = value
|
45
45
|
end
|
46
46
|
end
|
@@ -59,6 +59,11 @@ module Bootsnap
|
|
59
59
|
|
60
60
|
private
|
61
61
|
|
62
|
+
def mark_for_mutation!
|
63
|
+
@dirty = true
|
64
|
+
@data = @data.dup if @data.frozen?
|
65
|
+
end
|
66
|
+
|
62
67
|
def commit_transaction
|
63
68
|
if @dirty
|
64
69
|
dump_data
|
data/lib/bootsnap/version.rb
CHANGED