shareable-guaranteed 0.0.1 → 0.0.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/CHANGELOG.md +5 -1
- data/lib/ractor_shack/shareable_guaranteed.rb +9 -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: 833e0ae97eee139993ff2d33fb0d09c6f37fcb1b1cb221ffc835a2599f329674
|
|
4
|
+
data.tar.gz: 33634f456756379b9fb3dc075b76c49b0cccdab9ebe76ca679faf9ba3789d381
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1086d8697e4e7a8f85a4c667e3e0d58af927e12785943a5a5974638d70140e32449abbda545afe8e983612009ffd19dca7853cd8ffc6cd8bdaf2487ae84a042d
|
|
7
|
+
data.tar.gz: d7805899be25ad8c68ac63f09b13a395406e9832297c76072c58af3fee841f19224845aeb145464f883b59826bf8c1dd1bb85d97652fb98934dd522e3f733bba
|
data/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@ module RactorShack
|
|
|
3
3
|
class << self
|
|
4
4
|
def consider_shareable(klass = (no_class = true))
|
|
5
5
|
if no_class
|
|
6
|
-
@consider_shareable
|
|
6
|
+
@consider_shareable
|
|
7
7
|
else
|
|
8
8
|
@consider_shareable = [*@consider_shareable, klass].freeze
|
|
9
9
|
end
|
|
@@ -20,8 +20,16 @@ module RactorShack
|
|
|
20
20
|
|
|
21
21
|
base.prepend InstanceOverrides
|
|
22
22
|
end
|
|
23
|
+
|
|
24
|
+
private
|
|
25
|
+
|
|
26
|
+
def clear_consider_shareable
|
|
27
|
+
@consider_shareable = [].freeze
|
|
28
|
+
end
|
|
23
29
|
end
|
|
24
30
|
|
|
31
|
+
clear_consider_shareable
|
|
32
|
+
|
|
25
33
|
class NonShareableError < StandardError; end
|
|
26
34
|
|
|
27
35
|
class NonShareablePassedToConstructorError < NonShareableError
|