isomorfeus-preact 10.6.12 → 10.6.13

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: dbb1ab44f4abdcc7cae7f4d2e1eddd2be46f9598e3e632447e80df5565751388
4
- data.tar.gz: 1d090bea6a1c20472951832066106c01455b711c785bd6c8978917adacf411de
3
+ metadata.gz: 55b2185c8d266cd270e8e00bae7896a1593ff3e4590a61280888f9c6d4149ff8
4
+ data.tar.gz: 86a7cb16f143d7152afcf3eb1317cb9f8fb7252f135e79d59297b8f1db496513
5
5
  SHA512:
6
- metadata.gz: 1a3fe6e155523191ea2f39e858406b94df39a1e2a6a6afac92394cfb4af34adf51b9e1b314ba17441f8009e3e19ff0143efdde441d35de3c41259425aa274498
7
- data.tar.gz: ccc2b7b87060ae70fcc603539c51c2444d0638349e4e679faf88e884755864d02f5fa2004878e95ffe17e7dea50cc8f595be99dd30999fbeaf8014f2645869fd
6
+ metadata.gz: f0e06043e4ea705e63437a88aaa85a873d8ba081decda2c2fd652cd3646c8ebff95ac790730521bbf5a547c1a8c4a7a4eb86a78fada0606d8282e8fa874aa6c7
7
+ data.tar.gz: a351dd0fed547e8a7f0927c08c535fed18bccdff2a76cb6350de231c2c47b04c7bc0f35125cd4fcbceae545cfa3409e2f17107e06d3f3001e7b981078eecd418
@@ -30,7 +30,7 @@ module Isomorfeus
30
30
 
31
31
  def ensure(v = nil, &block)
32
32
  if block_given?
33
- @validation_hash[:ensure_block] = block
33
+ @validation_hash[:ensure] = block
34
34
  else
35
35
  @validation_hash[:ensure] = v
36
36
  end
@@ -52,10 +52,12 @@ module Isomorfeus
52
52
 
53
53
  def ensure!
54
54
  if @o.key?(:ensure)
55
- @v = @o[:ensure] unless @v
56
- true
57
- elsif @o.key?(:ensure_block)
58
- @v = @o[:ensure_block].call(@v)
55
+ proc_or_val = @o[:ensure]
56
+ if proc_or_val.class == Proc
57
+ @v = proc_or_val.call(@v)
58
+ else
59
+ @v = proc_or_val
60
+ end
59
61
  true
60
62
  else
61
63
  false
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.12'
2
+ VERSION = '10.6.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.12
4
+ version: 10.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby