zombie_record 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Rakefile +1 -0
- data/gemfiles/rails4.1.gemfile.lock +3 -1
- data/gemfiles/rails4.2.gemfile.lock +3 -1
- data/gemfiles/rails5.0.gemfile +1 -1
- data/gemfiles/rails5.0.gemfile.lock +12 -16
- data/lib/zombie_record/restorable.rb +8 -2
- data/lib/zombie_record/version.rb +1 -1
- data/zombie_record.gemspec +2 -4
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea378400a5d0ed7e8fca681c1a9c8d3930729db
|
4
|
+
data.tar.gz: 0de41938e4b71a6460241fa1be73d53daa5db4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b89647924130a7a41d14b8881dcbff500935179a4fd73d9b010cf75332c29e0e997dc558af443d13fd34e8d513a1d5251b2cede37cefecf6887bd2235a35b1
|
7
|
+
data.tar.gz: e8af2f78981866fbe8bbad28c2fb71ebc1cdf29ac6ff4538edb7d7cc417b705db3e2224c454f6f4a3624ff1647a6b37becaddf6e5d99f2c2764c4bd2c5e38cb0
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
zombie_record (1.3.
|
4
|
+
zombie_record (1.3.1)
|
5
5
|
activerecord (>= 4.0, < 5.1)
|
6
6
|
mysql2
|
7
7
|
|
@@ -23,6 +23,7 @@ GEM
|
|
23
23
|
tzinfo (~> 1.1)
|
24
24
|
arel (5.0.1.20140414130214)
|
25
25
|
builder (3.2.2)
|
26
|
+
bump (0.5.3)
|
26
27
|
byebug (8.2.1)
|
27
28
|
diff-lcs (1.2.5)
|
28
29
|
i18n (0.7.0)
|
@@ -49,6 +50,7 @@ PLATFORMS
|
|
49
50
|
|
50
51
|
DEPENDENCIES
|
51
52
|
activerecord (~> 4.1.8)
|
53
|
+
bump
|
52
54
|
bundler (~> 1.3)
|
53
55
|
byebug
|
54
56
|
mysql2 (~> 0.3.0)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
zombie_record (1.3.
|
4
|
+
zombie_record (1.3.1)
|
5
5
|
activerecord (>= 4.0, < 5.1)
|
6
6
|
mysql2
|
7
7
|
|
@@ -23,6 +23,7 @@ GEM
|
|
23
23
|
tzinfo (~> 1.1)
|
24
24
|
arel (6.0.3)
|
25
25
|
builder (3.2.2)
|
26
|
+
bump (0.5.3)
|
26
27
|
byebug (8.2.1)
|
27
28
|
diff-lcs (1.2.5)
|
28
29
|
i18n (0.7.0)
|
@@ -49,6 +50,7 @@ PLATFORMS
|
|
49
50
|
|
50
51
|
DEPENDENCIES
|
51
52
|
activerecord (~> 4.2.0)
|
53
|
+
bump
|
52
54
|
bundler (~> 1.3)
|
53
55
|
byebug
|
54
56
|
rake
|
data/gemfiles/rails5.0.gemfile
CHANGED
@@ -1,36 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
zombie_record (1.3.
|
4
|
+
zombie_record (1.3.1)
|
5
5
|
activerecord (>= 4.0, < 5.1)
|
6
6
|
mysql2
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (5.0.0.
|
12
|
-
activesupport (= 5.0.0.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
activesupport (= 5.0.0.beta1)
|
11
|
+
activemodel (5.0.0.beta3)
|
12
|
+
activesupport (= 5.0.0.beta3)
|
13
|
+
activerecord (5.0.0.beta3)
|
14
|
+
activemodel (= 5.0.0.beta3)
|
15
|
+
activesupport (= 5.0.0.beta3)
|
17
16
|
arel (~> 7.0)
|
18
|
-
activesupport (5.0.0.
|
17
|
+
activesupport (5.0.0.beta3)
|
19
18
|
concurrent-ruby (~> 1.0)
|
20
19
|
i18n (~> 0.7)
|
21
|
-
json (~> 1.7, >= 1.7.7)
|
22
|
-
method_source
|
23
20
|
minitest (~> 5.1)
|
24
21
|
tzinfo (~> 1.1)
|
25
22
|
arel (7.0.0)
|
26
|
-
|
23
|
+
bump (0.5.3)
|
27
24
|
byebug (8.2.1)
|
28
|
-
concurrent-ruby (1.0.
|
25
|
+
concurrent-ruby (1.0.1)
|
29
26
|
diff-lcs (1.2.5)
|
30
27
|
i18n (0.7.0)
|
31
|
-
|
32
|
-
method_source (0.8.2)
|
33
|
-
minitest (5.8.3)
|
28
|
+
minitest (5.8.4)
|
34
29
|
mysql2 (0.4.2)
|
35
30
|
rake (10.4.2)
|
36
31
|
rspec (2.14.1)
|
@@ -51,7 +46,8 @@ PLATFORMS
|
|
51
46
|
ruby
|
52
47
|
|
53
48
|
DEPENDENCIES
|
54
|
-
activerecord (~> 5.0.0.
|
49
|
+
activerecord (~> 5.0.0.beta3)
|
50
|
+
bump
|
55
51
|
bundler (~> 1.3)
|
56
52
|
byebug
|
57
53
|
rake
|
@@ -148,8 +148,14 @@ module ZombieRecord
|
|
148
148
|
end
|
149
149
|
|
150
150
|
module WithDeletedAssociationsWrapper
|
151
|
-
|
152
|
-
|
151
|
+
if ActiveRecord::VERSION::MAJOR < 5
|
152
|
+
def to_a
|
153
|
+
super.map(&:with_deleted_associations)
|
154
|
+
end
|
155
|
+
else
|
156
|
+
def records
|
157
|
+
super.map(&:with_deleted_associations)
|
158
|
+
end
|
153
159
|
end
|
154
160
|
end
|
155
161
|
|
data/zombie_record.gemspec
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'zombie_record/version'
|
1
|
+
require './lib/zombie_record/version'
|
5
2
|
|
6
3
|
Gem::Specification.new do |spec|
|
7
4
|
spec.name = "zombie_record"
|
@@ -24,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
24
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
22
|
spec.add_development_dependency "byebug"
|
26
23
|
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "bump"
|
27
25
|
spec.add_development_dependency "rspec", "~> 2.14.1"
|
28
26
|
spec.add_development_dependency "timecop", "~> 0.7.0"
|
29
27
|
spec.add_development_dependency "wwtd", ">= 0.5.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zombie_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: bump
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: rspec
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
189
|
version: '0'
|
176
190
|
requirements: []
|
177
191
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.5.
|
192
|
+
rubygems_version: 2.5.2
|
179
193
|
signing_key:
|
180
194
|
specification_version: 4
|
181
195
|
summary: Allows restoring your Active Records from the dead!
|