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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d8e18bc4a17547fa9177a538b991388f3e98dd37dcb98e6d87e76ac56c10b67
4
- data.tar.gz: 9f6662fa3ed3d8c45495c5f3d07135e84323ea929d0725c2292b0fc3cdcb5b6a
3
+ metadata.gz: 057a6a05e3723b496411920e3ab4776487985a2b68812bb1674fbf6cd637beb7
4
+ data.tar.gz: 891cc1ba332a5e157cd3f501b6361426a2985558b1079e6ac7c2eebae355ac72
5
5
  SHA512:
6
- metadata.gz: ea6cbfec043568a05545f37a06407b869c484072043b45a16d7c6d7e52bfed2e00f9b6629c8ac14d898f4970c3415f4d286350f86fab8573cf2184c2ec227a3c
7
- data.tar.gz: 86e0e24ac6324a28ddcf1153e10cfb5f65efe06a79240fef3d159f4bf851ebb1d81e2a8e6b0bb7aa496ddc7116faaae657aa1da06b1b7cf88bd91aea39a86b32
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*
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module State
5
- VERSION = "0.1.6"
5
+ VERSION = "0.1.7"
6
6
 
7
7
  def self.version
8
8
  VERSION
data/lib/is/stateful.rb CHANGED
@@ -185,7 +185,7 @@ module Is
185
185
  end
186
186
  end
187
187
 
188
- subclass.send(:prepend_defined_state_modules)
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.send(:defined_state).each_pair do |name, state|
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
- send("#{name}=", block.call(send(name)))
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.6
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-02 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: core-extension