attribeauty 0.4.3 → 0.4.4

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: 6815673fc0f4d65774d12f0dff065883a9243bb8495c3379f2adc293cbc2f988
4
- data.tar.gz: 5201b83d32ada2367130f5c7de336c012b8c157a4aa9331db1acca883407d4df
3
+ metadata.gz: cea80fa1b1b1eedce5673a87e9a4a34e65e897d4f1f1756d044a8ee37c4d961e
4
+ data.tar.gz: 798d5bab20443753941eebb76810a667700e09e70b9c82019e2a20ec2a64a2d5
5
5
  SHA512:
6
- metadata.gz: dd30d11344376e152a20d8723c977b1434db36111be25ccfda3bbad20206da75d28d4c7c02cf71c05f15a0912ebbcf3102c5a07bc8ae19031629e281d850ee21
7
- data.tar.gz: f063c90c743d67436000eb357b6b3868a92f790bff1c80c8638e7ba849b9d7a452416970053329106d06b648efe8143c51dc56a5e2953ae960b67217662cde19
6
+ metadata.gz: 232c14b463c2f6fcffc213079b0df03c61078f6b3f4c680784a4613c4025fb36249d87f17c5fc144749863cb0baa3af8ff1fa08d04d3ec399286f4c3c5e31175
7
+ data.tar.gz: e2e7426248fdd68bc46c5efb5b3aea9d4841e6012c92ed105e1b1c7d7db7965025acf0622945dc109dc20f257564593663bb67588ade867274200c0bd09901ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.4] - 2024-06-26
4
+
5
+ - get `default:` working. Not expecting to use them since db will handle that, but nice to have?
6
+
3
7
  ## [0.4.3] - 2024-06-25
4
8
 
5
9
  - allow certain values with `allow` option
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attribeauty (0.4.3)
4
+ attribeauty (0.4.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -93,8 +93,9 @@ module Attribeauty
93
93
 
94
94
  def exclude_nil?
95
95
  return false if allows_array.include?(:nil?)
96
+ return false unless original_val.nil? && default.nil?
96
97
 
97
- !required? && original_val.nil?
98
+ original_val.nil? && !required?
98
99
  end
99
100
 
100
101
  def allows_array
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Attribeauty
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribeauty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby