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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97ffe060ce65679a008799ecb48822ff5657c0aa5a109571ac87a29fbef0e226
4
- data.tar.gz: 0f71cdeee9fca8babc3c71a75382ccb12f8414768af5516e4ba3eac186676efa
3
+ metadata.gz: 5081c65167e542294aacaf7912ecd403518775de64725d4aa6b0ecd8127e9386
4
+ data.tar.gz: 0d6412e60b0556a5a2f6a4d9b2b27b0448d8ef9afd8a336f0df3a516e2d82f90
5
5
  SHA512:
6
- metadata.gz: c2e55e3e83ea393b8168262e99294ff860af832934b32fc47a805fa4a852cf83b61df314471315e0e27051767b8fd70b07bc139b68b595a3f9392bd86292ef5b
7
- data.tar.gz: f85373a6b369ae7e7ca77c9725ccb9df1ca0738165bcaf5a1f393c2f64ea87dd8ba0439fa18509b26f1e37ddc65644325f47272bd6c1b017261e006cb1256994
6
+ metadata.gz: 91035ec22ffeb7ee127f5db66f6ead32ff58cb8b107018f6176695cb70c31d20afaf7cceb5cfa039a3d0784b185fc8df859368cff6f4658ae50a87b7090bbdbf
7
+ data.tar.gz: 71ed5bbe8531ea558ed139f85bdda3ff60da8a7036cd1af813ce0dfef9ea5e7deff54e23e7d41eeda0bf4f3eca97706ea3afcfc0a4a9bb4e9a008732670bf9e0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 2.4.0 (2026-01-05)
5
+ ------------------
6
+
7
+ * Deprecated the `assign_nil` extension
8
+
4
9
  2.3.0 (2025-12-23)
5
10
  ------------------
6
11
  * Modules added:
@@ -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
@@ -3,7 +3,7 @@
3
3
  module RubyRailsExtensions
4
4
  module VERSION
5
5
  MAJOR = 2
6
- MINOR = 3
6
+ MINOR = 4
7
7
  TINY = 0
8
8
 
9
9
  # Set PRE to nil unless it's a pre-release (beta, rc, etc.)
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.3.0
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: 2025-12-23 00:00:00.000000000 Z
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.2.15
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: []