deep_cloneable 3.1.0 → 3.2.1

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: 3ab5e4168e665bb1fb1c355db74edd575e13c3a21b43fb3403bfaf473b52a0cb
4
- data.tar.gz: 532db121e78af89fd2ab97f4b64d3c26f5760bea51782f8653b76dd3b621bbd5
3
+ metadata.gz: 2749ea92fe72a12b752f018602733db2b323419cd2888b7fda796953b15aaf2b
4
+ data.tar.gz: adb2ecc923a0d25ee51681577fc93b7ed11b6c294e84c38fddc99733ff48208c
5
5
  SHA512:
6
- metadata.gz: 0373631aaff4684b61dfd22c04bcf7d8c81684252cf7c7320074cc5d8bb79aaba8a594ca84ce6742f6d6fafb4507f101453e6e3e529081cb6e3455b873d5f9ca
7
- data.tar.gz: 5d288ed325b1579387ac96e087566587f9b47dc84dc0a642549f570e999bd328d6f27cd97d6cff2f9d2f478f05ab651a5ba600c546366e8f14beae909afd5aad
6
+ metadata.gz: fad4e3914d636d48f3230869229a28a111fdab97d66469fb539fe34bd248f3b278559346a4517c3c5f43fa2664ea040763f6b5d442a7dd1be4e7e1db9a3a8017
7
+ data.tar.gz: 5b6a8a672b640178389d38e1fb13b8110f40ab9e9a2cffc0637f948323ea640e0f1508f672410538809ecc353cd2e90976a06ba9087ad25e2d3b3405a5c7a2e6
data/Appraisals CHANGED
@@ -1,46 +1,57 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise '3.1' do
4
- gem 'activerecord', '~> 3.1.0'
5
- gem 'i18n', '~> 0.6.5'
6
- end
7
-
8
3
  appraise '3.2' do
9
4
  gem 'activerecord', '~> 3.2.0'
10
5
  gem 'i18n', '~> 0.6.5'
6
+ gem 'sqlite3', '~> 1.3.13'
11
7
  end
12
8
 
13
9
  appraise '4.0' do
14
10
  gem 'activerecord', '~> 4.0.0'
15
11
  gem 'i18n', '~> 0.6.5'
12
+ gem 'sqlite3', '~> 1.3.13'
16
13
  end
17
14
 
18
15
  appraise '4.1' do
19
16
  gem 'activerecord', '~> 4.1.0'
20
17
  gem 'i18n', '~> 0.6.9'
18
+ gem 'sqlite3', '~> 1.3.13'
21
19
  end
22
20
 
23
21
  appraise '4.2' do
24
22
  gem 'activerecord', '~> 4.2.3'
25
23
  gem 'i18n', '~> 0.7.0'
24
+ gem 'sqlite3', '~> 1.3.13'
26
25
  end
27
26
 
28
27
  appraise '5.0' do
29
28
  gem 'activerecord', '~> 5.0.0'
30
29
  gem 'i18n', '~> 0.7.0'
30
+ gem 'sqlite3', '~> 1.3.13'
31
31
  end
32
32
 
33
33
  appraise '5.1' do
34
34
  gem 'activerecord', '~> 5.1.0'
35
35
  gem 'i18n', '~> 0.7.0'
36
+ gem 'sqlite3', '~> 1.3.13'
36
37
  end
37
38
 
38
39
  appraise '5.2' do
39
40
  gem 'activerecord', '~> 5.2.0'
40
41
  gem 'i18n', '~> 0.7.0'
42
+ gem 'sqlite3', '~> 1.3.13'
41
43
  end
42
44
 
43
45
  appraise '6.0' do
44
46
  gem 'activerecord', '~> 6.0.0'
45
47
  gem 'sqlite3', '~> 1.4.1'
46
48
  end
49
+
50
+ appraise '7.0' do
51
+ gem 'activerecord', '~> 7.0.0'
52
+ gem 'sqlite3', '~> 1.4.1'
53
+ end
54
+
55
+ appraise '8.0' do
56
+ gem 'activerecord', '~> 8.0.0'
57
+ end
data/CHANGELOG.md CHANGED
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.2.1] - 2024-11-20
11
+
12
+ ### Added
13
+
14
+ - Added Ruby 3.3.5 support
15
+ - Added Rails 8.0 support
16
+
17
+ ## [3.2.0] - 2021-12-28
18
+
19
+ ### Added
20
+
21
+ - Added GitHub Actions integration & badge
22
+ - Added Ruby 2.7.5 support
23
+ - Added Rails 7.0 support
24
+
25
+ ### Removed
26
+
27
+ - Removed Travis-ci integration
28
+ - Remove EOL rubies from CI (ruby 1.9-2.2)
29
+
10
30
  ## [3.1.0] - 2021-02-17
11
31
 
12
32
  ### Added
@@ -17,7 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17
37
  ### Fixed
18
38
 
19
39
  - Ensure the initial options hash is never modified
20
- - When using conditions in combination with array includes, ensure nested includes are not accidentally deleted
40
+ - When using conditions in combination with array includes, ensure nested includes are not accidentally deleted
21
41
 
22
42
  ### Removed
23
43
 
@@ -294,7 +314,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
294
314
 
295
315
  - Convert existing code to a gem
296
316
 
297
- [unreleased]: https://github.com/moiristo/deep_cloneable/compare/v3.1.0...HEAD
317
+ [unreleased]: https://github.com/moiristo/deep_cloneable/compare/v3.2.1...HEAD
318
+ [3.2.1]: https://github.com/moiristo/deep_cloneable/compare/v3.2.0...v3.2.1
319
+ [3.2.0]: https://github.com/moiristo/deep_cloneable/compare/v3.1.0...v3.2.0
298
320
  [3.1.0]: https://github.com/moiristo/deep_cloneable/compare/v3.0.0...v3.1.0
299
321
  [3.0.0]: https://github.com/moiristo/deep_cloneable/compare/v2.4.0...v3.0.0
300
322
  [2.4.0]: https://github.com/moiristo/deep_cloneable/compare/v2.3.2...v2.4.0
data/Gemfile CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  source 'http://rubygems.org'
4
4
 
5
- gem 'activerecord', '>= 3.1.0', '< 7'
6
- gem 'bundler', '~> 1.17.3', :group => :test
5
+ gem 'activerecord', '>= 3.1.0', '< 9'
6
+ gem 'bundler', :group => :test
7
7
  gem 'rake', '~> 12.3', :group => :test
8
8
 
9
9
  gem 'appraisal', :group => :test
10
10
  gem 'minitest', :group => :test
11
- gem 'sqlite3', '~> 1.3.13', :group => :test
11
+ gem 'sqlite3', '~> 2.2', :group => :test
data/Gemfile.lock CHANGED
@@ -1,43 +1,60 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (5.2.0)
5
- activesupport (= 5.2.0)
6
- activerecord (5.2.0)
7
- activemodel (= 5.2.0)
8
- activesupport (= 5.2.0)
9
- arel (>= 9.0)
10
- activesupport (5.2.0)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (>= 0.7, < 2)
13
- minitest (~> 5.1)
14
- tzinfo (~> 1.1)
15
- appraisal (2.2.0)
4
+ activemodel (8.0.0)
5
+ activesupport (= 8.0.0)
6
+ activerecord (8.0.0)
7
+ activemodel (= 8.0.0)
8
+ activesupport (= 8.0.0)
9
+ timeout (>= 0.4.0)
10
+ activesupport (8.0.0)
11
+ base64
12
+ benchmark (>= 0.3)
13
+ bigdecimal
14
+ concurrent-ruby (~> 1.0, >= 1.3.1)
15
+ connection_pool (>= 2.2.5)
16
+ drb
17
+ i18n (>= 1.6, < 2)
18
+ logger (>= 1.4.2)
19
+ minitest (>= 5.1)
20
+ securerandom (>= 0.3)
21
+ tzinfo (~> 2.0, >= 2.0.5)
22
+ uri (>= 0.13.1)
23
+ appraisal (2.5.0)
16
24
  bundler
17
25
  rake
18
26
  thor (>= 0.14.0)
19
- arel (9.0.0)
20
- concurrent-ruby (1.0.5)
21
- i18n (1.0.0)
27
+ base64 (0.2.0)
28
+ benchmark (0.4.0)
29
+ bigdecimal (3.1.8)
30
+ concurrent-ruby (1.3.4)
31
+ connection_pool (2.4.1)
32
+ drb (2.2.1)
33
+ i18n (1.14.6)
22
34
  concurrent-ruby (~> 1.0)
23
- minitest (5.11.3)
35
+ logger (1.6.1)
36
+ mini_portile2 (2.8.7)
37
+ minitest (5.25.1)
24
38
  rake (12.3.3)
25
- sqlite3 (1.3.13)
26
- thor (0.20.0)
27
- thread_safe (0.3.6)
28
- tzinfo (1.2.5)
29
- thread_safe (~> 0.1)
39
+ securerandom (0.3.2)
40
+ sqlite3 (2.2.0)
41
+ mini_portile2 (~> 2.8.0)
42
+ thor (1.3.2)
43
+ timeout (0.4.2)
44
+ tzinfo (2.0.6)
45
+ concurrent-ruby (~> 1.0)
46
+ uri (1.0.2)
30
47
 
31
48
  PLATFORMS
32
49
  ruby
33
50
 
34
51
  DEPENDENCIES
35
- activerecord (>= 3.1.0, < 7)
52
+ activerecord (>= 3.1.0, < 9)
36
53
  appraisal
37
- bundler (~> 1.17.3)
54
+ bundler
38
55
  minitest
39
56
  rake (~> 12.3)
40
- sqlite3 (~> 1.3.13)
57
+ sqlite3 (~> 2.2)
41
58
 
42
59
  BUNDLED WITH
43
- 1.17.3
60
+ 2.5.20
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021 Reinier de Lange
1
+ Copyright (c) 2024 Reinier de Lange
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'bundler/setup'
5
+ require 'bundler/gem_tasks'
5
6
  require 'appraisal'
6
7
  require 'rake/testtask'
7
8
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.name = 'deep_cloneable'
8
8
  s.version = DeepCloneable::VERSION
9
9
  s.authors = ['Reinier de Lange']
10
- s.description = 'Extends the functionality of ActiveRecord::Base#dup to perform a deep clone that includes user specified associations. '
10
+ s.description = 'Extends the functionality of ActiveRecord::Base#dup to perform a deep clone that includes user specified associations.'
11
11
  s.summary = 'This gem gives every ActiveRecord::Base object the possibility to do a deep clone.'
12
12
  s.email = 'rjdelange@icloud.com'
13
13
  s.extra_rdoc_files = ['LICENSE']
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.platform = Gem::Platform::RUBY
18
18
  s.required_ruby_version = '>= 1.9.3'
19
19
  s.require_paths = ['lib']
20
- s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 7'])
20
+ s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 9'])
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module DeepCloneable
2
- VERSION = '3.1.0'
2
+ VERSION = '3.2.1'
3
3
  end
data/readme.md CHANGED
@@ -1,14 +1,13 @@
1
1
  # deep_cloneable
2
2
 
3
- [![Build Status](https://travis-ci.org/moiristo/deep_cloneable.svg?branch=master)](https://travis-ci.org/moiristo/deep_cloneable)
3
+ ![Build Status](https://github.com/moiristo/deep_cloneable/actions/workflows/ruby.yml/badge.svg)
4
4
 
5
5
  This gem gives every ActiveRecord::Base object the possibility to do a deep clone that includes user specified associations. It is a rails 3+ upgrade of the [deep_cloning plugin](http://github.com/openminds/deep_cloning).
6
6
 
7
7
  ## Requirements
8
8
 
9
- - Ruby 1.9.3, 2.0.0, 2.1.5, 2.2.2, 2.3.0, 2.4.4, 2.5.5, 2.6.3 (tested)
10
- - TruffleRuby 20.2.0
11
- - Activerecord 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0 (tested)
9
+ - Ruby 2.3.0, 2.4.4, 2.5.5, 2.6.3, 2.7.5, 3.3.5 (tested)
10
+ - Activerecord 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 7.0, 8.0 (tested)
12
11
  - Rails 2.x/3.0 users, please check out the 'rails2.x-3.0' branch
13
12
 
14
13
  ## Installation
@@ -16,7 +15,7 @@ This gem gives every ActiveRecord::Base object the possibility to do a deep clon
16
15
  - Add deep_cloneable to your Gemfile:
17
16
 
18
17
  ```ruby
19
- gem 'deep_cloneable', '~> 3.1.0'
18
+ gem 'deep_cloneable', '~> 3.2.1'
20
19
  ```
21
20
 
22
21
  ## Upgrade details
@@ -240,4 +239,4 @@ pirate.deep_clone include: [:parrot, :rum], skip_missing_associations: true
240
239
 
241
240
  ### Copyright
242
241
 
243
- Copyright &copy; 2021 Reinier de Lange. See LICENSE for details.
242
+ Copyright &copy; 2024 Reinier de Lange. See LICENSE for details.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_cloneable
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reinier de Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7'
22
+ version: '9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,9 +29,9 @@ dependencies:
29
29
  version: 3.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7'
33
- description: 'Extends the functionality of ActiveRecord::Base#dup to perform a deep
34
- clone that includes user specified associations. '
32
+ version: '9'
33
+ description: Extends the functionality of ActiveRecord::Base#dup to perform a deep
34
+ clone that includes user specified associations.
35
35
  email: rjdelange@icloud.com
36
36
  executables: []
37
37
  extensions: []
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.0.3
74
+ rubygems_version: 3.5.20
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: This gem gives every ActiveRecord::Base object the possibility to do a deep