core-state 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/core/state/version.rb +1 -1
- data/lib/is/stateful.rb +3 -3
- 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: 057a6a05e3723b496411920e3ab4776487985a2b68812bb1674fbf6cd637beb7
|
4
|
+
data.tar.gz: 891cc1ba332a5e157cd3f501b6361426a2985558b1079e6ac7c2eebae355ac72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5558c6a88f115482c0a86026405179206f0ce4b5f35ef47f22891d59722b3f12175445b6ba8a2b2551531e0bb79316ada7ae4431ecebaa7cc6458db219dd0b10
|
7
|
+
data.tar.gz: 80d3597facff509323fec18c1926ae45eb2ecb3e8bfbe8c08d903a7757371b11f50be989275da1b9bd161358f7366ceee4630cfae2e8facca79e7f5d3360e8cc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.1.7](https://github.com/metabahn/corerb/releases/tag/2021-11-23.1)
|
2
|
+
|
3
|
+
*released on 2021-11-23.1*
|
4
|
+
|
5
|
+
* `chg` [#109](https://github.com/metabahn/corerb/pull/109) Prefer `__send__` to `send` ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.1.6](https://github.com/metabahn/corerb/releases/tag/2021-11-02)
|
2
8
|
|
3
9
|
*released on 2021-11-02*
|
data/lib/core/state/version.rb
CHANGED
data/lib/is/stateful.rb
CHANGED
@@ -185,7 +185,7 @@ module Is
|
|
185
185
|
end
|
186
186
|
end
|
187
187
|
|
188
|
-
subclass.
|
188
|
+
subclass.__send__(:prepend_defined_state_modules)
|
189
189
|
subclass.instance_variable_set("@__defined_state__", @__defined_state__.each_with_object({}) { |(key, value), state|
|
190
190
|
state[key] = value.dup
|
191
191
|
})
|
@@ -240,7 +240,7 @@ module Is
|
|
240
240
|
extends :implementation, prepend: true do
|
241
241
|
def initialize(...)
|
242
242
|
self_class = self.class
|
243
|
-
self_class.
|
243
|
+
self_class.__send__(:defined_state).each_pair do |name, state|
|
244
244
|
if state[:instance]
|
245
245
|
if state[:class]
|
246
246
|
instance_variable_set(name, self_class.instance_variable_get(name))
|
@@ -264,7 +264,7 @@ module Is
|
|
264
264
|
# [public] Safely mutates state by name, yielding a copy of the current value to the block.
|
265
265
|
#
|
266
266
|
def mutate_state(name, &block)
|
267
|
-
|
267
|
+
__send__("#{name}=", block.call(__send__(name)))
|
268
268
|
end
|
269
269
|
|
270
270
|
private def defined_state_isolations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: core-state
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|