opera 0.2.4 → 0.2.5

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: b63b9dffc54255a4cc0e1e1c7f243258d36eb6e2812702a259073d705b1d680e
4
- data.tar.gz: 3dba8a4459b1215f61af896ee712de74cf870103e70681ba30301904632e6225
3
+ metadata.gz: e5d9c893a5fbb54c998d21da587625c5c4395325cba2e626daaecc7a09c8dfcb
4
+ data.tar.gz: 718d329ba4593be294625339bf7803764c3daba1b6af28d44bbd0d466d5bc0ac
5
5
  SHA512:
6
- metadata.gz: ef95fe48da334013d5c873e8b7a1f24dad951ce81b40b0d389c7b348d4a7f376b4bf1ff0b5e1fa861f22dd9fb22a74ad670a7b0ab536b671f85d889c55187651
7
- data.tar.gz: 6539b51d037350cab91486f43f837fb194b9dcf298e36266cde0759552ed277866538959307d5a107284fdbc983d36b4695f539957748a2947c490534cec7ba9
6
+ metadata.gz: 723969ac97c573f821395a239ed57fb4fcd8f39ab8ffe7f1d492c848b4625ab7e2b6a1e6a1460cddf5500fa1a486bb43aa6849e2d7bbd1e984ba915321f9aeff
7
+ data.tar.gz: eb67bdc92c6d8f6156566e00bae3da4b7cbe9ea7eb7911c287952726fae6b3d703258efe495ef9fcfcdb4b847b2593358d859e72426a75e1ce2fec70017091b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Opera Changelog
2
2
 
3
+ ### 0.2.5 - August 3, 2021
4
+
5
+ - make sure that `default` option in accessors is always lambda
6
+
3
7
  ### 0.2.4 - July 26, 2021
4
8
 
5
9
  - prevent default from overwrite falsy values
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opera (0.2.3)
4
+ opera (0.2.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -60,7 +60,7 @@ module Opera
60
60
  check_method_availability!(attribute)
61
61
 
62
62
  define_method(attribute) do
63
- value = send(method).key?(attribute) ? send(method)[attribute] : options[:default]
63
+ value = send(method).key?(attribute) ? send(method)[attribute] : self.instance_exec(&options[:default])
64
64
 
65
65
  if send(method).frozen?
66
66
  send(method)[attribute] || value
data/lib/opera/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opera
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ProFinda Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-26 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation