core-state 0.1.5 → 0.1.6
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 +6 -6
- 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: 4d8e18bc4a17547fa9177a538b991388f3e98dd37dcb98e6d87e76ac56c10b67
|
4
|
+
data.tar.gz: 9f6662fa3ed3d8c45495c5f3d07135e84323ea929d0725c2292b0fc3cdcb5b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea6cbfec043568a05545f37a06407b869c484072043b45a16d7c6d7e52bfed2e00f9b6629c8ac14d898f4970c3415f4d286350f86fab8573cf2184c2ec227a3c
|
7
|
+
data.tar.gz: 86e0e24ac6324a28ddcf1153e10cfb5f65efe06a79240fef3d159f4bf851ebb1d81e2a8e6b0bb7aa496ddc7116faaae657aa1da06b1b7cf88bd91aea39a86b32
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.1.6](https://github.com/metabahn/corerb/releases/tag/2021-11-02)
|
2
|
+
|
3
|
+
*released on 2021-11-02*
|
4
|
+
|
5
|
+
* `chg` [#97](https://github.com/metabahn/corerb/pull/97) Designate internal state with leading and trailing double underscores ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.1.5](https://github.com/metabahn/corerb/releases/tag/2021-10-22)
|
2
8
|
|
3
9
|
*released on 2021-10-22*
|
data/lib/core/state/version.rb
CHANGED
data/lib/is/stateful.rb
CHANGED
@@ -186,7 +186,7 @@ module Is
|
|
186
186
|
end
|
187
187
|
|
188
188
|
subclass.send(:prepend_defined_state_modules)
|
189
|
-
subclass.instance_variable_set("@
|
189
|
+
subclass.instance_variable_set("@__defined_state__", @__defined_state__.each_with_object({}) { |(key, value), state|
|
190
190
|
state[key] = value.dup
|
191
191
|
})
|
192
192
|
|
@@ -194,15 +194,15 @@ module Is
|
|
194
194
|
end
|
195
195
|
|
196
196
|
private def defined_state
|
197
|
-
@
|
197
|
+
@__defined_state__ ||= {}
|
198
198
|
end
|
199
199
|
|
200
200
|
private def defined_state_class_module
|
201
|
-
@
|
201
|
+
@__defined_state_class_module__ ||= Module.new
|
202
202
|
end
|
203
203
|
|
204
204
|
private def defined_state_instance_module
|
205
|
-
@
|
205
|
+
@__defined_state_instance_module__ ||= Module.new
|
206
206
|
end
|
207
207
|
|
208
208
|
private def prepend_defined_state_modules
|
@@ -254,7 +254,7 @@ module Is
|
|
254
254
|
end
|
255
255
|
|
256
256
|
def initialize_copy(...)
|
257
|
-
@
|
257
|
+
@__defined_state_isolations__ = []
|
258
258
|
|
259
259
|
super
|
260
260
|
end
|
@@ -268,7 +268,7 @@ module Is
|
|
268
268
|
end
|
269
269
|
|
270
270
|
private def defined_state_isolations
|
271
|
-
@
|
271
|
+
@__defined_state_isolations__ ||= []
|
272
272
|
end
|
273
273
|
end
|
274
274
|
|
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.6
|
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
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|