deep_cloneable 2.3.1 → 2.3.2

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
- SHA1:
3
- metadata.gz: 66564e7a8d80a1e53865df29962c198d806cfa1a
4
- data.tar.gz: 7c8225b19e4b29d9dd060114f9b3bd48844dc0f8
2
+ SHA256:
3
+ metadata.gz: 0ff9ad4fd2ffe0fcf8495c86114392032080de83d306325f9932e7752459be90
4
+ data.tar.gz: fcba14c118c7a7b2144f0d25f61cbf4c8a55098e92930a260284aba2eacd8f1b
5
5
  SHA512:
6
- metadata.gz: 96879e01a3bf45576bff535d91c143c62bd2512761083035651fb369df0269257e597ac0b675922c5a5c3b91881079e27940bea432c969fb795bc663cf6297f3
7
- data.tar.gz: 71a1f902e51e6087e0c2ed6413d1b0d6975d321360abfe467dc6a11aa9b15ba5f413991ebe593eed45eaa7b8c9fbb43eaba69efea86deb3b0cb2357ea02fd732
6
+ metadata.gz: d390f573c9730d707e841aa7ef658a39ac70de947af7aa9d750e98f0e9087e835288f471c9ed9599b783e3cd9726ed62c7e7c3f1986f6c92e3044f51f74575b2
7
+ data.tar.gz: ecc8d7314a3d745d619de830b479931d646924682939cf387f24b5557061703ba6644d1623c56f6b21b3d82237e9188546bfe8b6f54b186cb7f738e338e2f286
@@ -11,6 +11,12 @@ rvm:
11
11
  - 2.1.5
12
12
  - 2.2.2
13
13
  - 2.3.0
14
+ - 2.4.4
15
+ - 2.5.1
16
+
17
+ before_install:
18
+ - gem update --system
19
+ - gem install bundler
14
20
 
15
21
  gemfile:
16
22
  - gemfiles/3.1.gemfile
@@ -19,6 +25,8 @@ gemfile:
19
25
  - gemfiles/4.1.gemfile
20
26
  - gemfiles/4.2.gemfile
21
27
  - gemfiles/5.0.gemfile
28
+ - gemfiles/5.1.gemfile
29
+ - gemfiles/5.2.gemfile
22
30
 
23
31
  matrix:
24
32
  exclude:
@@ -30,6 +38,10 @@ matrix:
30
38
  gemfile: gemfiles/4.2.gemfile
31
39
  - rvm: 1.8.7
32
40
  gemfile: gemfiles/5.0.gemfile
41
+ - rvm: 1.8.7
42
+ gemfile: gemfiles/5.1.gemfile
43
+ - rvm: 1.8.7
44
+ gemfile: gemfiles/5.2.gemfile
33
45
  - rvm: 1.9.2
34
46
  gemfile: gemfiles/4.0.gemfile
35
47
  - rvm: 1.9.2
@@ -38,13 +50,53 @@ matrix:
38
50
  gemfile: gemfiles/4.2.gemfile
39
51
  - rvm: 1.9.2
40
52
  gemfile: gemfiles/5.0.gemfile
53
+ - rvm: 1.9.2
54
+ gemfile: gemfiles/5.1.gemfile
55
+ - rvm: 1.9.2
56
+ gemfile: gemfiles/5.2.gemfile
41
57
  - rvm: 1.9.3
42
58
  gemfile: gemfiles/5.0.gemfile
59
+ - rvm: 1.9.3
60
+ gemfile: gemfiles/5.1.gemfile
61
+ - rvm: 1.9.3
62
+ gemfile: gemfiles/5.2.gemfile
43
63
  - rvm: 2.0.0
44
64
  gemfile: gemfiles/5.0.gemfile
65
+ - rvm: 2.0.0
66
+ gemfile: gemfiles/5.1.gemfile
67
+ - rvm: 2.0.0
68
+ gemfile: gemfiles/5.2.gemfile
45
69
  - rvm: 2.1.5
46
70
  gemfile: gemfiles/5.0.gemfile
71
+ - rvm: 2.1.5
72
+ gemfile: gemfiles/5.1.gemfile
73
+ - rvm: 2.1.5
74
+ gemfile: gemfiles/5.2.gemfile
47
75
  - rvm: 2.2.2
48
76
  gemfile: gemfiles/3.1.gemfile
77
+ - rvm: 2.2.2
78
+ gemfile: gemfiles/4.2.gemfile
79
+ - rvm: 2.3.0
80
+ gemfile: gemfiles/3.1.gemfile
49
81
  - rvm: 2.3.0
82
+ gemfile: gemfiles/4.2.gemfile
83
+ - rvm: 2.4.4
50
84
  gemfile: gemfiles/3.1.gemfile
85
+ - rvm: 2.4.4
86
+ gemfile: gemfiles/3.2.gemfile
87
+ - rvm: 2.4.4
88
+ gemfile: gemfiles/4.0.gemfile
89
+ - rvm: 2.4.4
90
+ gemfile: gemfiles/4.1.gemfile
91
+ - rvm: 2.4.4
92
+ gemfile: gemfiles/4.2.gemfile
93
+ - rvm: 2.5.1
94
+ gemfile: gemfiles/3.1.gemfile
95
+ - rvm: 2.5.1
96
+ gemfile: gemfiles/3.2.gemfile
97
+ - rvm: 2.5.1
98
+ gemfile: gemfiles/4.0.gemfile
99
+ - rvm: 2.5.1
100
+ gemfile: gemfiles/4.1.gemfile
101
+ - rvm: 2.5.1
102
+ gemfile: gemfiles/4.2.gemfile
data/Appraisals CHANGED
@@ -1,27 +1,48 @@
1
1
  appraise '3.1' do
2
2
  gem 'activerecord', '~> 3.1.0'
3
- gem "addressable", "~> 2.3.8"
3
+ gem 'addressable', '~> 2.3.8'
4
+ gem 'i18n', '~> 0.6.5'
5
+ gem 'rdoc', '< 5', :group => :test
4
6
  end
5
7
 
6
8
  appraise '3.2' do
7
9
  gem 'activerecord', '~> 3.2.0'
8
- gem "addressable", "~> 2.3.8"
10
+ gem 'addressable', '~> 2.3.8'
11
+ gem 'i18n', '~> 0.6.5'
12
+ gem 'rdoc', '< 5', :group => :test
9
13
  end
10
14
 
11
15
  appraise '4.0' do
12
16
  gem 'activerecord', '~> 4.0.0'
17
+ gem 'i18n', '~> 0.6.5'
18
+ gem 'psych', '< 3', :group => :test
19
+ gem 'jeweler', '~> 2.1.1', :group => :test
13
20
  end
14
21
 
15
22
  appraise '4.1' do
16
23
  gem 'activerecord', '~> 4.1.0'
24
+ gem 'i18n', '~> 0.6.9'
25
+ gem 'psych', '< 3', :group => :test
26
+ gem 'jeweler', '~> 2.1.1', :group => :test
17
27
  end
18
28
 
19
29
  appraise '4.2' do
20
30
  gem 'activerecord', '~> 4.2.3'
21
31
  gem 'i18n', '~> 0.7.0'
32
+ gem 'psych', '< 3', :group => :test
33
+ gem 'jeweler', '~> 2.1.1', :group => :test
22
34
  end
23
35
 
24
36
  appraise '5.0' do
25
37
  gem 'activerecord', '~> 5.0.0'
26
38
  gem 'i18n', '~> 0.7.0'
27
- end
39
+ end
40
+
41
+ appraise '5.1' do
42
+ gem 'activerecord', '~> 5.1.0'
43
+ gem 'i18n', '~> 0.7.0'
44
+ end
45
+
46
+ appraise '5.2' do
47
+ gem 'activerecord', '~> 5.2.0'
48
+ end
@@ -0,0 +1,186 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+ ### Added
9
+ - Support for Ruby 2.4 and 2.5
10
+ - Support for Rails 5.1 and 5.2
11
+ - CHANGELOG.md
12
+
13
+ ## [2.3.1] - 2017-10-03
14
+ ### Added
15
+ - Documentation on when the optional block is invoked, which is before attributes are excluded
16
+ ### Fixed
17
+ - Conditional includes for nested associations
18
+
19
+ ## [2.3.0] - 2017-06-14
20
+ ### Added
21
+ - Support for skipping missing associations
22
+ ### Fixed
23
+ - Multikey hashes in include arrays
24
+
25
+ ## [2.2.2] - 2016-10-10
26
+ ### Added
27
+ - Documentation on cloning associated Carrierwave files
28
+ ### Changed
29
+ - Use `inverse_of` when defined for finding the reverse association
30
+ - Cache bundler in Travis
31
+ - Use index operator for setting column defaults
32
+ - Explicitly require activerecord to resolve a sidekiq issue
33
+ - Bump rails 5.0 appraisal
34
+
35
+ ## [2.2.1] - 2016-05-27
36
+ ### Fixed
37
+ - Properly set column defaults for attributes
38
+ - Rails 5.0 compatibility
39
+
40
+ ## [2.2.0] - 2016-01-11
41
+ ### Added
42
+ - Support for conditional cloning when using array inclusions
43
+ ### Changed
44
+ - Bump rails 4.2 appraisal to 4.2.3
45
+
46
+ ## [2.1.0] - 2015-03-10
47
+ ### Added
48
+ - Support for conditional cloning
49
+ ### Changed
50
+ - Check the dictionary before cloning has_many through or habtm associations
51
+ - Refactor methods to refer to `dup` instead of `clone`
52
+
53
+ ## [2.0.2] - 2014-12-17
54
+ ### Fixed
55
+ - Broken activerecord dependency in gemspec
56
+
57
+ ## [2.0.1] - 2014-12-17
58
+ ### Fixed
59
+ - Rails 4.2.0.rc3 compatibility
60
+
61
+ ## [2.0.0] - 2014-06-26
62
+ ### Removed
63
+ - Override of `dup`
64
+ - References to `dup`
65
+ ### Fixed
66
+ - Open-ended dependency warning
67
+
68
+ ## [1.7.0] - 2014-06-25
69
+ ### Deprecated
70
+ - Deprecated `dup` in favor of `deep_clone`
71
+
72
+ ## [1.6.1] - 2014-04-16
73
+ ### Changed
74
+ - Switched test suite to minitest
75
+ - Update travis.yml with rails 4.1
76
+ ### Fixed
77
+ - Rails 4.1 compatibility
78
+
79
+ ## [1.6.0] - 2013-11-02
80
+ ### Added
81
+ - `:only` option for whitelisting attributes
82
+ - MIT license
83
+
84
+ ## [1.5.5] - 2013-08-28
85
+ ### Fixed
86
+ - Fix activerecord gem dependency
87
+
88
+ ## [1.5.4] - 2013-08-12
89
+ ### Removed
90
+ - Rails 3.0 support, as it was broken anyway
91
+ ### Changed
92
+ - Update travis.yml with rails 4.0
93
+ ### Fixed
94
+ - Appraisals should load the correct major version of rails
95
+ - Exclude unsupported builds in Travis
96
+
97
+ ## [1.5.3] - 2013-06-18
98
+ ### Fixed
99
+ - Fix `initialize_dup` error
100
+
101
+ ## [1.5.2] - 2013-06-10
102
+ ### Fixed
103
+ - Properly support has_many through associations
104
+ - Fix reverse association lookup for self-referential models
105
+ - Travis.ci status image
106
+
107
+ ## [1.5.1] - 2013-03-06
108
+ ### Fixed
109
+ - Ruby 2.0 compatibility
110
+
111
+ ## [1.5.0] - 2013-02-27
112
+ ### Added
113
+ - `:validate` option to disable validations when saving a cloned object
114
+ ### Fixed
115
+ - Depend on activerecord instead of rails
116
+
117
+ ## [1.4.1] - 2012-07-23
118
+ ### Fixed
119
+ - Don't save HABTM associations on clone
120
+
121
+ ## [1.4.0] - 2012-04-02
122
+ ### Added
123
+ - Possibility to add a optional block
124
+ ### Fixed
125
+ - Ruby 1.8.7 compatibility for rails 3.1
126
+
127
+ ## [1.3.1] - 2012-01-26
128
+ ### Fixed
129
+ - Rails 3.2 compatibility
130
+
131
+ ## [1.2.4] - 2011-06-15
132
+ ### Changed
133
+ - Raise an exception when the reverse association is missing
134
+ ### Fixed
135
+ - Reset column value when cloning associations
136
+
137
+ ## [1.2.3] - 2011-02-27
138
+ ### Changed
139
+ - Find and set the reverse association when cloning associations
140
+
141
+ ## [1.2.2] - 2011-02-21
142
+ ### Fixed
143
+ - Use association reflection for fetching the primary key name
144
+
145
+ ## [1.2.1] - 2011-02-07
146
+ ### Fixed
147
+ - Cloning for polymorphic associations
148
+
149
+ ## [1.2.0] - 2010-10-20
150
+ ### Added
151
+ - `:except` option for excluding attributes
152
+ ### Fixed
153
+ - Set foreign keys properly
154
+
155
+ ## 1.0.0 - 2010-10-18
156
+ ### Fixed
157
+ - Convert existing code to a gem
158
+
159
+ [Unreleased]: https://github.com/moiristo/deep_cloneable/compare/v2.3.1...HEAD
160
+ [2.3.1]: https://github.com/moiristo/deep_cloneable/compare/v2.3.0...v2.3.1
161
+ [2.3.0]: https://github.com/moiristo/deep_cloneable/compare/v2.2.2...v2.3.0
162
+ [2.2.2]: https://github.com/moiristo/deep_cloneable/compare/v2.2.1...v2.2.2
163
+ [2.2.1]: https://github.com/moiristo/deep_cloneable/compare/v2.2.0...v2.2.1
164
+ [2.2.0]: https://github.com/moiristo/deep_cloneable/compare/v2.1.0...v2.2.0
165
+ [2.1.0]: https://github.com/moiristo/deep_cloneable/compare/v2.0.2...v2.1.0
166
+ [2.0.2]: https://github.com/moiristo/deep_cloneable/compare/v2.0.1...v2.0.2
167
+ [2.0.1]: https://github.com/moiristo/deep_cloneable/compare/v2.0.0...v2.0.1
168
+ [2.0.0]: https://github.com/moiristo/deep_cloneable/compare/v1.7.0...v2.0.0
169
+ [1.7.0]: https://github.com/moiristo/deep_cloneable/compare/v1.6.1...v1.7.0
170
+ [1.6.1]: https://github.com/moiristo/deep_cloneable/compare/v1.6.0...v1.6.1
171
+ [1.6.0]: https://github.com/moiristo/deep_cloneable/compare/v1.5.5...v1.6.0
172
+ [1.5.5]: https://github.com/moiristo/deep_cloneable/compare/v1.5.4...v1.5.5
173
+ [1.5.4]: https://github.com/moiristo/deep_cloneable/compare/v1.5.3...v1.5.4
174
+ [1.5.3]: https://github.com/moiristo/deep_cloneable/compare/v1.5.2...v1.5.3
175
+ [1.5.2]: https://github.com/moiristo/deep_cloneable/compare/v1.5.1...v1.5.2
176
+ [1.5.1]: https://github.com/moiristo/deep_cloneable/compare/v1.5.0...v1.5.1
177
+ [1.5.0]: https://github.com/moiristo/deep_cloneable/compare/v1.4.1...v1.5.0
178
+ [1.4.1]: https://github.com/moiristo/deep_cloneable/compare/v1.4.0...v1.4.1
179
+ [1.4.0]: https://github.com/moiristo/deep_cloneable/compare/v1.3.1...v1.4.0
180
+ [1.3.1]: https://github.com/moiristo/deep_cloneable/compare/v1.2.4...v1.3.1
181
+ [1.2.4]: https://github.com/moiristo/deep_cloneable/compare/v1.2.3...v1.2.4
182
+ [1.2.3]: https://github.com/moiristo/deep_cloneable/compare/v1.2.2...v1.2.3
183
+ [1.2.2]: https://github.com/moiristo/deep_cloneable/compare/v1.2.1...v1.2.2
184
+ [1.2.1]: https://github.com/moiristo/deep_cloneable/compare/v1.2.0...v1.2.1
185
+ [1.2.0]: https://github.com/moiristo/deep_cloneable/compare/v1.1.0...v1.2.0
186
+ [1.1.0]: https://github.com/moiristo/deep_cloneable/compare/v1.0.0...v1.1.0
data/Gemfile CHANGED
@@ -1,8 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'activerecord', '>= 3.1.0', '< 5.2.0'
3
+ gem 'activerecord', '>= 3.1.0', '< 6'
4
4
 
5
- gem 'i18n', '~> 0.6.5', :group => :test
6
5
  gem 'highline', '~> 1.6.0', :group => :test
7
6
  gem 'rake', '~> 10.4', :group => :test
8
7
  gem 'rack', '~> 1.6', :group => :test
@@ -11,10 +10,6 @@ gem 'git', '~> 1.2.9', :group => :test
11
10
  gem 'minitest', :group => :test
12
11
  gem 'appraisal', :group => :test
13
12
  gem 'sqlite3', :group => :test
14
- gem 'rdoc', '>= 2.4.2', :group => :test
15
-
13
+ gem 'rdoc', '>= 2.4.2', '< 6', :group => :test
16
14
  gem 'nokogiri', '~> 1.5.0', :group => :test
17
-
18
- group :test do
19
- gem 'jeweler'
20
- end
15
+ gem 'jeweler', :group => :test
@@ -1,26 +1,25 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (4.1.15)
5
- activesupport (= 4.1.15)
6
- builder (~> 3.1)
7
- activerecord (4.1.15)
8
- activemodel (= 4.1.15)
9
- activesupport (= 4.1.15)
10
- arel (~> 5.0.0)
11
- activesupport (4.1.15)
12
- i18n (~> 0.6, >= 0.6.9)
13
- json (~> 1.7, >= 1.7.7)
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)
14
13
  minitest (~> 5.1)
15
- thread_safe (~> 0.1)
16
14
  tzinfo (~> 1.1)
17
15
  addressable (2.4.0)
18
- appraisal (2.1.0)
16
+ appraisal (2.2.0)
19
17
  bundler
20
18
  rake
21
19
  thor (>= 0.14.0)
22
- arel (5.0.1.20140414130214)
23
- builder (3.2.2)
20
+ arel (9.0.0)
21
+ builder (3.2.3)
22
+ concurrent-ruby (1.0.5)
24
23
  descendants_tracker (0.0.4)
25
24
  thread_safe (~> 0.3, >= 0.3.1)
26
25
  faraday (0.9.2)
@@ -33,25 +32,25 @@ GEM
33
32
  hashie (>= 3.4)
34
33
  mime-types (>= 1.16, < 3.0)
35
34
  oauth2 (~> 1.0)
36
- hashie (3.5.5)
35
+ hashie (3.5.7)
37
36
  highline (1.6.21)
38
- i18n (0.6.11)
39
- jeweler (2.3.6)
37
+ i18n (1.0.0)
38
+ concurrent-ruby (~> 1.0)
39
+ jeweler (2.3.9)
40
40
  builder
41
- bundler (>= 1)
41
+ bundler
42
42
  git (>= 1.2.5)
43
43
  github_api (~> 0.16.0)
44
44
  highline (>= 1.6.15)
45
45
  nokogiri (>= 1.5.10)
46
- psych (~> 2.2)
46
+ psych
47
47
  rake
48
48
  rdoc
49
49
  semver2
50
- json (1.8.3)
51
50
  jwt (1.5.6)
52
51
  mime-types (2.99.3)
53
- minitest (5.9.0)
54
- multi_json (1.12.1)
52
+ minitest (5.11.3)
53
+ multi_json (1.13.1)
55
54
  multi_xml (0.6.0)
56
55
  multipart-post (2.0.0)
57
56
  nokogiri (1.5.11)
@@ -61,34 +60,32 @@ GEM
61
60
  multi_json (~> 1.3)
62
61
  multi_xml (~> 0.5)
63
62
  rack (>= 1.2, < 3)
64
- psych (2.2.4)
65
- rack (1.6.4)
63
+ psych (3.0.2)
64
+ rack (1.6.9)
66
65
  rake (10.5.0)
67
- rdoc (4.2.2)
68
- json (~> 1.4)
66
+ rdoc (5.1.0)
69
67
  semver2 (3.4.2)
70
- sqlite3 (1.3.11)
71
- thor (0.19.1)
72
- thread_safe (0.3.5)
73
- tzinfo (1.2.2)
68
+ sqlite3 (1.3.13)
69
+ thor (0.20.0)
70
+ thread_safe (0.3.6)
71
+ tzinfo (1.2.5)
74
72
  thread_safe (~> 0.1)
75
73
 
76
74
  PLATFORMS
77
75
  ruby
78
76
 
79
77
  DEPENDENCIES
80
- activerecord (>= 3.1.0, < 5.2.0)
78
+ activerecord (>= 3.1.0, < 6)
81
79
  appraisal
82
80
  git (~> 1.2.9)
83
81
  highline (~> 1.6.0)
84
- i18n (~> 0.6.5)
85
82
  jeweler
86
83
  minitest
87
84
  nokogiri (~> 1.5.0)
88
85
  rack (~> 1.6)
89
86
  rake (~> 10.4)
90
- rdoc (>= 2.4.2)
87
+ rdoc (>= 2.4.2, < 6)
91
88
  sqlite3
92
89
 
93
90
  BUNDLED WITH
94
- 1.14.6
91
+ 1.16.1