ruby-rails-extensions 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ruby-rails-extensions/extensions/assign_nil.rb +8 -0
- data/lib/ruby-rails-extensions/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5081c65167e542294aacaf7912ecd403518775de64725d4aa6b0ecd8127e9386
|
|
4
|
+
data.tar.gz: 0d6412e60b0556a5a2f6a4d9b2b27b0448d8ef9afd8a336f0df3a516e2d82f90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91035ec22ffeb7ee127f5db66f6ead32ff58cb8b107018f6176695cb70c31d20afaf7cceb5cfa039a3d0784b185fc8df859368cff6f4658ae50a87b7090bbdbf
|
|
7
|
+
data.tar.gz: 71ed5bbe8531ea558ed139f85bdda3ff60da8a7036cd1af813ce0dfef9ea5e7deff54e23e7d41eeda0bf4f3eca97706ea3afcfc0a4a9bb4e9a008732670bf9e0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'active_support/deprecation'
|
|
4
|
+
|
|
3
5
|
# requires `ActiveModel::AttributeAssignment` and `Hash#stringify_keys`
|
|
4
6
|
module ActiveModel
|
|
5
7
|
module AttributeAssignment
|
|
8
|
+
# @deprecated Will be removed in ruby-rails-extensions 3.0
|
|
9
|
+
#
|
|
6
10
|
# Allows you to set nil attributes by passing in a hash of attributes with
|
|
7
11
|
# keys matching the attribute names.
|
|
8
12
|
#
|
|
@@ -32,6 +36,10 @@ module ActiveModel
|
|
|
32
36
|
# @return [void]
|
|
33
37
|
#
|
|
34
38
|
def assign_nil_attributes(new_attributes)
|
|
39
|
+
ActiveSupport::Deprecation
|
|
40
|
+
.new('3.0', 'ruby-rails-extensions')
|
|
41
|
+
.warn('assign_nil_attributes is deprecated and will be removed from ruby-rails-extensions 3.0')
|
|
42
|
+
|
|
35
43
|
unless new_attributes.respond_to?(:stringify_keys)
|
|
36
44
|
raise(ArgumentError, 'When assigning attributes, you must pass a hash as an argument.')
|
|
37
45
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-rails-extensions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brands Insurance
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description:
|
|
14
14
|
email:
|
|
15
15
|
- documents@brandsinsurance.com
|
|
16
16
|
executables: []
|
|
@@ -101,7 +101,7 @@ licenses:
|
|
|
101
101
|
metadata:
|
|
102
102
|
rubygems_mfa_required: 'true'
|
|
103
103
|
source_code_uri: https://github.com/BrandsInsurance/rails-extensions
|
|
104
|
-
post_install_message:
|
|
104
|
+
post_install_message:
|
|
105
105
|
rdoc_options: []
|
|
106
106
|
require_paths:
|
|
107
107
|
- lib
|
|
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 3.
|
|
120
|
-
signing_key:
|
|
119
|
+
rubygems_version: 3.5.11
|
|
120
|
+
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Loads custom methods on various ruby classes
|
|
123
123
|
test_files: []
|