deep_cloneable 3.1.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +16 -5
- data/CHANGELOG.md +24 -2
- data/Gemfile +3 -3
- data/Gemfile.lock +42 -25
- data/LICENSE +1 -1
- data/Rakefile +1 -0
- data/deep_cloneable.gemspec +2 -2
- data/lib/deep_cloneable/version.rb +1 -1
- data/readme.md +5 -6
- 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: 2749ea92fe72a12b752f018602733db2b323419cd2888b7fda796953b15aaf2b
|
4
|
+
data.tar.gz: adb2ecc923a0d25ee51681577fc93b7ed11b6c294e84c38fddc99733ff48208c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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', '<
|
6
|
-
gem 'bundler',
|
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', '~>
|
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
|
-
activesupport (=
|
6
|
-
activerecord (
|
7
|
-
activemodel (=
|
8
|
-
activesupport (=
|
9
|
-
|
10
|
-
activesupport (
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
35
|
+
logger (1.6.1)
|
36
|
+
mini_portile2 (2.8.7)
|
37
|
+
minitest (5.25.1)
|
24
38
|
rake (12.3.3)
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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, <
|
52
|
+
activerecord (>= 3.1.0, < 9)
|
36
53
|
appraisal
|
37
|
-
bundler
|
54
|
+
bundler
|
38
55
|
minitest
|
39
56
|
rake (~> 12.3)
|
40
|
-
sqlite3 (~>
|
57
|
+
sqlite3 (~> 2.2)
|
41
58
|
|
42
59
|
BUNDLED WITH
|
43
|
-
|
60
|
+
2.5.20
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
data/deep_cloneable.gemspec
CHANGED
@@ -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', '<
|
20
|
+
s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 9'])
|
21
21
|
end
|
data/readme.md
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
# deep_cloneable
|
2
2
|
|
3
|
-
|
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
|
10
|
-
-
|
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
|
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 ©
|
242
|
+
Copyright © 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
|
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:
|
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: '
|
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: '
|
33
|
-
description:
|
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.
|
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
|