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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db495761cd564d756fb99e985b29d4e8176c532d605724a321670cfa8888e4b9
4
- data.tar.gz: 96f7b2337e73e82a7ea5735a98e7b6a7055b9098656248e4c658584d5eb074b7
3
+ metadata.gz: 4d8e18bc4a17547fa9177a538b991388f3e98dd37dcb98e6d87e76ac56c10b67
4
+ data.tar.gz: 9f6662fa3ed3d8c45495c5f3d07135e84323ea929d0725c2292b0fc3cdcb5b6a
5
5
  SHA512:
6
- metadata.gz: fe3dfb3399854e9ffd96cd257b195b545cd31cda25d95db4af6be40c17890653322a015881672c75df64d4a451d4c11cf7004b90aa62cb83937d29de90d1ea9a
7
- data.tar.gz: 229caf7f8a616ed01498420f688f6c8366663684791be54581e074836f035d52c1cd5d2123c953da2ac861bbf703984b0324fbbbd2d0b4142989cb20a4175c7d
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*
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module State
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
 
7
7
  def self.version
8
8
  VERSION
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("@__defined_state", @__defined_state.each_with_object({}) { |(key, value), state|
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
- @__defined_state ||= {}
197
+ @__defined_state__ ||= {}
198
198
  end
199
199
 
200
200
  private def defined_state_class_module
201
- @__defined_state_class_module ||= Module.new
201
+ @__defined_state_class_module__ ||= Module.new
202
202
  end
203
203
 
204
204
  private def defined_state_instance_module
205
- @__defined_state_instance_module ||= Module.new
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
- @__defined_state_isolations = []
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
- @__defined_state_isolations ||= []
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.5
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-10-23 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: core-extension