zombie_record 1.8.0 → 1.9.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: b3c6136aa69e27d806af680b1f1f24958a53dcde5778eb7e6f31786cd170216a
4
- data.tar.gz: aa3046d046ec6dfe9da888fb29c6bfbb4a875cd209ff0799c3bab1dfa71df6dd
3
+ metadata.gz: 32fde8c92c6a0b2b4bec566b00e77b87688ac52aed12e424f6528626734a7951
4
+ data.tar.gz: 8f5597984bd72f467bfe9a5bfe1b2ed279cdc7bcf92c40abe676e3375549c2bc
5
5
  SHA512:
6
- metadata.gz: 9841f53bea9f3cb637d99319c22c161e29c5c96651f7950a7f245dad0839d3d6932a4afa68c46deabf32a0fd3c484f479b21ee561b233c52de9dbf65debf882f
7
- data.tar.gz: e34fcb67ca5bec985e11d959b2e67f52e598489045fe589100482b9d4d3b398a8d94feecb7a1c3fb76861d17f8b667ae0488cc1e38ac9434eb66962ff3f3bd3b
6
+ metadata.gz: 3b28660bd2aebaf715af6cb1455219f0cc0c2f15ff333f5a6ff64aa29d18dd4ef5bbe210fb99218ed4b13be90acd700e4de67b43738e43a5cd7ba3bb726bfc63
7
+ data.tar.gz: 3d5d2ca3ce6940ea9c3864322f31fb0b084741124add965b0ecf08437ec4d30edd272a5c7d8b59150c45d119b7a9128ff0b9a29307e8974fb38ba54e39da71d1
@@ -9,14 +9,22 @@ jobs:
9
9
  strategy:
10
10
  matrix:
11
11
  ruby-version:
12
- - '3.1'
13
12
  - '3.2'
14
13
  - '3.3'
14
+ - '3.4'
15
15
  gemfile:
16
- - rails6.1
17
- - rails7.0
18
16
  - rails7.1
17
+ - rails7.2
18
+ - rails8.0
19
19
  - rails_main
20
+ include:
21
+ - {ruby-version: '3.1', gemfile: 'rails6.1'}
22
+ - {ruby-version: '3.1', gemfile: 'rails7.0'}
23
+ - {ruby-version: '3.1', gemfile: 'rails7.1'}
24
+ - {ruby-version: '3.2', gemfile: 'rails6.1'}
25
+ - {ruby-version: '3.2', gemfile: 'rails7.0'}
26
+ - {ruby-version: '3.3', gemfile: 'rails6.1'}
27
+ - {ruby-version: '3.3', gemfile: 'rails7.0'}
20
28
  env:
21
29
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
22
30
  steps:
@@ -12,7 +12,7 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  ruby-version:
15
- - '3.3'
15
+ - '3.4'
16
16
  gemfile:
17
17
  - rails_main
18
18
  env:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ###### Unreleased
2
2
 
3
+ ###### v1.9.0
4
+
5
+ * Don't delegate `:__id__` and `:__send__` to the deleted record object.
6
+
3
7
  ###### v1.8.0
4
8
 
5
9
  * Drop upper limit on Rails, test with Rails main.
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- source 'https://rubygems.org'
1
+ eval_gemfile "gemfiles/common.rb"
2
2
 
3
- # Specify your gem's dependencies in zombie_record.gemspec
4
- gemspec
3
+ gem "sqlite3"
data/Rakefile CHANGED
@@ -1,2 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
- require "bump/tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "byebug"
6
+ gem "rake"
7
+ gem "rspec", "~> 3.5"
8
+ gem "timecop"
@@ -1,6 +1,8 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: "../"
1
+ eval_gemfile "common.rb"
4
2
 
5
3
  gem "activerecord", "~> 6.1.0"
6
4
  gem "sqlite3", "~> 1.4"
5
+ gem "base64"
6
+ gem "bigdecimal"
7
+ gem "drb"
8
+ gem "mutex_m"
@@ -1,60 +1,69 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.8.0)
4
+ zombie_record (1.9.0)
5
5
  activerecord (>= 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.1.7.6)
11
- activesupport (= 6.1.7.6)
12
- activerecord (6.1.7.6)
13
- activemodel (= 6.1.7.6)
14
- activesupport (= 6.1.7.6)
15
- activesupport (6.1.7.6)
10
+ activemodel (6.1.7.10)
11
+ activesupport (= 6.1.7.10)
12
+ activerecord (6.1.7.10)
13
+ activemodel (= 6.1.7.10)
14
+ activesupport (= 6.1.7.10)
15
+ activesupport (6.1.7.10)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
19
19
  tzinfo (~> 2.0)
20
20
  zeitwerk (~> 2.3)
21
- bump (0.10.0)
21
+ base64 (0.2.0)
22
+ bigdecimal (3.1.9)
22
23
  byebug (11.1.3)
23
- concurrent-ruby (1.2.2)
24
- diff-lcs (1.5.0)
25
- i18n (1.14.1)
24
+ concurrent-ruby (1.3.5)
25
+ diff-lcs (1.6.0)
26
+ drb (2.2.1)
27
+ i18n (1.14.7)
26
28
  concurrent-ruby (~> 1.0)
27
- mini_portile2 (2.8.4)
28
- minitest (5.20.0)
29
- rake (13.0.6)
30
- rspec (3.12.0)
31
- rspec-core (~> 3.12.0)
32
- rspec-expectations (~> 3.12.0)
33
- rspec-mocks (~> 3.12.0)
34
- rspec-core (3.12.2)
35
- rspec-support (~> 3.12.0)
36
- rspec-expectations (3.12.3)
29
+ mini_portile2 (2.8.8)
30
+ minitest (5.25.5)
31
+ mutex_m (0.3.0)
32
+ rake (13.2.1)
33
+ rspec (3.13.0)
34
+ rspec-core (~> 3.13.0)
35
+ rspec-expectations (~> 3.13.0)
36
+ rspec-mocks (~> 3.13.0)
37
+ rspec-core (3.13.3)
38
+ rspec-support (~> 3.13.0)
39
+ rspec-expectations (3.13.3)
37
40
  diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.12.0)
39
- rspec-mocks (3.12.6)
41
+ rspec-support (~> 3.13.0)
42
+ rspec-mocks (3.13.2)
40
43
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.12.0)
42
- rspec-support (3.12.1)
43
- sqlite3 (1.6.7)
44
+ rspec-support (~> 3.13.0)
45
+ rspec-support (3.13.2)
46
+ sqlite3 (1.7.3)
44
47
  mini_portile2 (~> 2.8.0)
45
- timecop (0.9.8)
48
+ sqlite3 (1.7.3-arm64-darwin)
49
+ sqlite3 (1.7.3-x86_64-linux)
50
+ timecop (0.9.10)
46
51
  tzinfo (2.0.6)
47
52
  concurrent-ruby (~> 1.0)
48
- zeitwerk (2.6.12)
53
+ zeitwerk (2.6.18)
49
54
 
50
55
  PLATFORMS
56
+ arm64-darwin
51
57
  ruby
58
+ x86_64-linux
52
59
 
53
60
  DEPENDENCIES
54
61
  activerecord (~> 6.1.0)
55
- bump
56
- bundler
62
+ base64
63
+ bigdecimal
57
64
  byebug
65
+ drb
66
+ mutex_m
58
67
  rake
59
68
  rspec (~> 3.5)
60
69
  sqlite3 (~> 1.4)
@@ -62,4 +71,4 @@ DEPENDENCIES
62
71
  zombie_record!
63
72
 
64
73
  BUNDLED WITH
65
- 2.4.20
74
+ 2.6.6
@@ -1,6 +1,8 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: "../"
1
+ eval_gemfile "common.rb"
4
2
 
5
3
  gem "activerecord", "~> 7.0.0"
6
4
  gem "sqlite3", "~> 1.4"
5
+ gem "base64"
6
+ gem "bigdecimal"
7
+ gem "drb"
8
+ gem "mutex_m"
@@ -1,58 +1,67 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.8.0)
4
+ zombie_record (1.9.0)
5
5
  activerecord (>= 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.0.8)
11
- activesupport (= 7.0.8)
12
- activerecord (7.0.8)
13
- activemodel (= 7.0.8)
14
- activesupport (= 7.0.8)
15
- activesupport (7.0.8)
10
+ activemodel (7.0.8.7)
11
+ activesupport (= 7.0.8.7)
12
+ activerecord (7.0.8.7)
13
+ activemodel (= 7.0.8.7)
14
+ activesupport (= 7.0.8.7)
15
+ activesupport (7.0.8.7)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
19
19
  tzinfo (~> 2.0)
20
- bump (0.10.0)
20
+ base64 (0.2.0)
21
+ bigdecimal (3.1.9)
21
22
  byebug (11.1.3)
22
- concurrent-ruby (1.2.2)
23
- diff-lcs (1.5.0)
24
- i18n (1.14.1)
23
+ concurrent-ruby (1.3.5)
24
+ diff-lcs (1.6.0)
25
+ drb (2.2.1)
26
+ i18n (1.14.7)
25
27
  concurrent-ruby (~> 1.0)
26
- mini_portile2 (2.8.4)
27
- minitest (5.20.0)
28
- rake (13.0.6)
29
- rspec (3.12.0)
30
- rspec-core (~> 3.12.0)
31
- rspec-expectations (~> 3.12.0)
32
- rspec-mocks (~> 3.12.0)
33
- rspec-core (3.12.2)
34
- rspec-support (~> 3.12.0)
35
- rspec-expectations (3.12.3)
28
+ mini_portile2 (2.8.8)
29
+ minitest (5.25.5)
30
+ mutex_m (0.3.0)
31
+ rake (13.2.1)
32
+ rspec (3.13.0)
33
+ rspec-core (~> 3.13.0)
34
+ rspec-expectations (~> 3.13.0)
35
+ rspec-mocks (~> 3.13.0)
36
+ rspec-core (3.13.3)
37
+ rspec-support (~> 3.13.0)
38
+ rspec-expectations (3.13.3)
36
39
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.12.0)
38
- rspec-mocks (3.12.6)
40
+ rspec-support (~> 3.13.0)
41
+ rspec-mocks (3.13.2)
39
42
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.12.0)
41
- rspec-support (3.12.1)
42
- sqlite3 (1.6.7)
43
+ rspec-support (~> 3.13.0)
44
+ rspec-support (3.13.2)
45
+ sqlite3 (1.7.3)
43
46
  mini_portile2 (~> 2.8.0)
44
- timecop (0.9.8)
47
+ sqlite3 (1.7.3-arm64-darwin)
48
+ sqlite3 (1.7.3-x86_64-linux)
49
+ timecop (0.9.10)
45
50
  tzinfo (2.0.6)
46
51
  concurrent-ruby (~> 1.0)
47
52
 
48
53
  PLATFORMS
54
+ arm64-darwin
49
55
  ruby
56
+ x86_64-linux
50
57
 
51
58
  DEPENDENCIES
52
59
  activerecord (~> 7.0.0)
53
- bump
54
- bundler
60
+ base64
61
+ bigdecimal
55
62
  byebug
63
+ drb
64
+ mutex_m
56
65
  rake
57
66
  rspec (~> 3.5)
58
67
  sqlite3 (~> 1.4)
@@ -60,4 +69,4 @@ DEPENDENCIES
60
69
  zombie_record!
61
70
 
62
71
  BUNDLED WITH
63
- 2.4.20
72
+ 2.6.6
@@ -1,6 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: "../"
1
+ eval_gemfile "common.rb"
4
2
 
5
3
  gem "activerecord", "~> 7.1.0"
6
- gem "sqlite3", "~> 1.4"
4
+ gem "sqlite3", ">= 1.4"
@@ -1,75 +1,82 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.8.0)
4
+ zombie_record (1.9.0)
5
5
  activerecord (>= 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.1.1)
11
- activesupport (= 7.1.1)
12
- activerecord (7.1.1)
13
- activemodel (= 7.1.1)
14
- activesupport (= 7.1.1)
10
+ activemodel (7.1.5.1)
11
+ activesupport (= 7.1.5.1)
12
+ activerecord (7.1.5.1)
13
+ activemodel (= 7.1.5.1)
14
+ activesupport (= 7.1.5.1)
15
15
  timeout (>= 0.4.0)
16
- activesupport (7.1.1)
16
+ activesupport (7.1.5.1)
17
17
  base64
18
+ benchmark (>= 0.3)
18
19
  bigdecimal
19
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
21
  connection_pool (>= 2.2.5)
21
22
  drb
22
23
  i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
23
25
  minitest (>= 5.1)
24
26
  mutex_m
27
+ securerandom (>= 0.3)
25
28
  tzinfo (~> 2.0)
26
- base64 (0.1.1)
27
- bigdecimal (3.1.4)
28
- bump (0.10.0)
29
+ base64 (0.2.0)
30
+ benchmark (0.4.0)
31
+ bigdecimal (3.1.9)
29
32
  byebug (11.1.3)
30
- concurrent-ruby (1.2.2)
31
- connection_pool (2.4.1)
32
- diff-lcs (1.5.0)
33
+ concurrent-ruby (1.3.5)
34
+ connection_pool (2.5.0)
35
+ diff-lcs (1.6.0)
33
36
  drb (2.2.1)
34
- i18n (1.14.1)
37
+ i18n (1.14.7)
35
38
  concurrent-ruby (~> 1.0)
36
- mini_portile2 (2.8.4)
37
- minitest (5.20.0)
38
- mutex_m (0.1.2)
39
- rake (13.0.6)
40
- rspec (3.12.0)
41
- rspec-core (~> 3.12.0)
42
- rspec-expectations (~> 3.12.0)
43
- rspec-mocks (~> 3.12.0)
44
- rspec-core (3.12.2)
45
- rspec-support (~> 3.12.0)
46
- rspec-expectations (3.12.3)
39
+ logger (1.6.6)
40
+ mini_portile2 (2.8.8)
41
+ minitest (5.25.5)
42
+ mutex_m (0.3.0)
43
+ rake (13.2.1)
44
+ rspec (3.13.0)
45
+ rspec-core (~> 3.13.0)
46
+ rspec-expectations (~> 3.13.0)
47
+ rspec-mocks (~> 3.13.0)
48
+ rspec-core (3.13.3)
49
+ rspec-support (~> 3.13.0)
50
+ rspec-expectations (3.13.3)
47
51
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.12.0)
49
- rspec-mocks (3.12.6)
52
+ rspec-support (~> 3.13.0)
53
+ rspec-mocks (3.13.2)
50
54
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.12.0)
52
- rspec-support (3.12.1)
53
- sqlite3 (1.6.7)
55
+ rspec-support (~> 3.13.0)
56
+ rspec-support (3.13.2)
57
+ securerandom (0.4.1)
58
+ sqlite3 (2.6.0)
54
59
  mini_portile2 (~> 2.8.0)
55
- timecop (0.9.8)
56
- timeout (0.4.0)
60
+ sqlite3 (2.6.0-arm64-darwin)
61
+ sqlite3 (2.6.0-x86_64-linux-gnu)
62
+ timecop (0.9.10)
63
+ timeout (0.4.3)
57
64
  tzinfo (2.0.6)
58
65
  concurrent-ruby (~> 1.0)
59
66
 
60
67
  PLATFORMS
68
+ arm64-darwin
61
69
  ruby
70
+ x86_64-linux
62
71
 
63
72
  DEPENDENCIES
64
73
  activerecord (~> 7.1.0)
65
- bump
66
- bundler
67
74
  byebug
68
75
  rake
69
76
  rspec (~> 3.5)
70
- sqlite3 (~> 1.4)
77
+ sqlite3 (>= 1.4)
71
78
  timecop
72
79
  zombie_record!
73
80
 
74
81
  BUNDLED WITH
75
- 2.4.20
82
+ 2.6.6
@@ -0,0 +1,4 @@
1
+ eval_gemfile "common.rb"
2
+
3
+ gem "activerecord", "~> 7.2.0"
4
+ gem "sqlite3", ">= 1.4"
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ zombie_record (1.9.0)
5
+ activerecord (>= 6.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (7.2.2.1)
11
+ activesupport (= 7.2.2.1)
12
+ activerecord (7.2.2.1)
13
+ activemodel (= 7.2.2.1)
14
+ activesupport (= 7.2.2.1)
15
+ timeout (>= 0.4.0)
16
+ activesupport (7.2.2.1)
17
+ base64
18
+ benchmark (>= 0.3)
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ base64 (0.2.0)
29
+ benchmark (0.4.0)
30
+ bigdecimal (3.1.9)
31
+ byebug (11.1.3)
32
+ concurrent-ruby (1.3.5)
33
+ connection_pool (2.5.0)
34
+ diff-lcs (1.6.0)
35
+ drb (2.2.1)
36
+ i18n (1.14.7)
37
+ concurrent-ruby (~> 1.0)
38
+ logger (1.6.6)
39
+ minitest (5.25.5)
40
+ rake (13.2.1)
41
+ rspec (3.13.0)
42
+ rspec-core (~> 3.13.0)
43
+ rspec-expectations (~> 3.13.0)
44
+ rspec-mocks (~> 3.13.0)
45
+ rspec-core (3.13.3)
46
+ rspec-support (~> 3.13.0)
47
+ rspec-expectations (3.13.3)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.13.0)
50
+ rspec-mocks (3.13.2)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.13.0)
53
+ rspec-support (3.13.2)
54
+ securerandom (0.4.1)
55
+ sqlite3 (2.6.0-aarch64-linux-gnu)
56
+ sqlite3 (2.6.0-aarch64-linux-musl)
57
+ sqlite3 (2.6.0-arm-linux-gnu)
58
+ sqlite3 (2.6.0-arm-linux-musl)
59
+ sqlite3 (2.6.0-arm64-darwin)
60
+ sqlite3 (2.6.0-x86-linux-gnu)
61
+ sqlite3 (2.6.0-x86-linux-musl)
62
+ sqlite3 (2.6.0-x86_64-darwin)
63
+ sqlite3 (2.6.0-x86_64-linux-gnu)
64
+ sqlite3 (2.6.0-x86_64-linux-musl)
65
+ timecop (0.9.10)
66
+ timeout (0.4.3)
67
+ tzinfo (2.0.6)
68
+ concurrent-ruby (~> 1.0)
69
+
70
+ PLATFORMS
71
+ aarch64-linux-gnu
72
+ aarch64-linux-musl
73
+ arm-linux-gnu
74
+ arm-linux-musl
75
+ arm64-darwin
76
+ x86-linux-gnu
77
+ x86-linux-musl
78
+ x86_64-darwin
79
+ x86_64-linux-gnu
80
+ x86_64-linux-musl
81
+
82
+ DEPENDENCIES
83
+ activerecord (~> 7.2.0)
84
+ byebug
85
+ rake
86
+ rspec (~> 3.5)
87
+ sqlite3 (>= 1.4)
88
+ timecop
89
+ zombie_record!
90
+
91
+ BUNDLED WITH
92
+ 2.6.6
@@ -0,0 +1,4 @@
1
+ eval_gemfile "common.rb"
2
+
3
+ gem "activerecord", "~> 8.0.0"
4
+ gem "sqlite3", ">= 2.1"
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ zombie_record (1.9.0)
5
+ activerecord (>= 6.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (8.0.2)
11
+ activesupport (= 8.0.2)
12
+ activerecord (8.0.2)
13
+ activemodel (= 8.0.2)
14
+ activesupport (= 8.0.2)
15
+ timeout (>= 0.4.0)
16
+ activesupport (8.0.2)
17
+ base64
18
+ benchmark (>= 0.3)
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ uri (>= 0.13.1)
29
+ base64 (0.2.0)
30
+ benchmark (0.4.0)
31
+ bigdecimal (3.1.9)
32
+ byebug (11.1.3)
33
+ concurrent-ruby (1.3.5)
34
+ connection_pool (2.5.0)
35
+ diff-lcs (1.6.0)
36
+ drb (2.2.1)
37
+ i18n (1.14.7)
38
+ concurrent-ruby (~> 1.0)
39
+ logger (1.6.6)
40
+ minitest (5.25.5)
41
+ rake (13.2.1)
42
+ rspec (3.13.0)
43
+ rspec-core (~> 3.13.0)
44
+ rspec-expectations (~> 3.13.0)
45
+ rspec-mocks (~> 3.13.0)
46
+ rspec-core (3.13.3)
47
+ rspec-support (~> 3.13.0)
48
+ rspec-expectations (3.13.3)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.13.0)
51
+ rspec-mocks (3.13.2)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.13.0)
54
+ rspec-support (3.13.2)
55
+ securerandom (0.4.1)
56
+ sqlite3 (2.6.0-aarch64-linux-gnu)
57
+ sqlite3 (2.6.0-aarch64-linux-musl)
58
+ sqlite3 (2.6.0-arm-linux-gnu)
59
+ sqlite3 (2.6.0-arm-linux-musl)
60
+ sqlite3 (2.6.0-arm64-darwin)
61
+ sqlite3 (2.6.0-x86-linux-gnu)
62
+ sqlite3 (2.6.0-x86-linux-musl)
63
+ sqlite3 (2.6.0-x86_64-darwin)
64
+ sqlite3 (2.6.0-x86_64-linux-gnu)
65
+ sqlite3 (2.6.0-x86_64-linux-musl)
66
+ timecop (0.9.10)
67
+ timeout (0.4.3)
68
+ tzinfo (2.0.6)
69
+ concurrent-ruby (~> 1.0)
70
+ uri (1.0.3)
71
+
72
+ PLATFORMS
73
+ aarch64-linux-gnu
74
+ aarch64-linux-musl
75
+ arm-linux-gnu
76
+ arm-linux-musl
77
+ arm64-darwin
78
+ x86-linux-gnu
79
+ x86-linux-musl
80
+ x86_64-darwin
81
+ x86_64-linux-gnu
82
+ x86_64-linux-musl
83
+
84
+ DEPENDENCIES
85
+ activerecord (~> 8.0.0)
86
+ byebug
87
+ rake
88
+ rspec (~> 3.5)
89
+ sqlite3 (>= 2.1)
90
+ timecop
91
+ zombie_record!
92
+
93
+ BUNDLED WITH
94
+ 2.6.6
@@ -1,6 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: "../"
1
+ eval_gemfile "common.rb"
4
2
 
5
3
  gem "activerecord", github: "rails/rails", branch: "main"
6
4
  gem "sqlite3"
@@ -13,7 +13,7 @@ module ZombieRecord
13
13
  # Returns nothing.
14
14
  def restore!
15
15
  if frozen?
16
- raise "cannot restore an object that has been destroyed directly; " <<
16
+ raise "cannot restore an object that has been destroyed directly; " \
17
17
  "please make sure to load it from the database again."
18
18
  end
19
19
 
@@ -96,8 +96,9 @@ module ZombieRecord
96
96
  delegate_to_record(name) { @record.public_send(name, ...) }
97
97
  end
98
98
 
99
- # We want *all* methods to be delegated.
100
- BasicObject.instance_methods.each do |name|
99
+ # We want *almost all* methods to be delegated.
100
+ delegated_methods = BasicObject.instance_methods - [:__send__, :__id__]
101
+ delegated_methods.each do |name|
101
102
  define_method(name) do |*args, &block|
102
103
  @record.public_send(name, *args, &block)
103
104
  end
@@ -1,3 +1,3 @@
1
1
  module ZombieRecord
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,11 @@
1
1
  require 'bundler/setup'
2
+ require 'logger'
2
3
  require 'active_record'
3
4
  require 'timecop'
4
5
  require 'byebug'
5
6
 
7
+ Warning[:deprecated] = true
8
+
6
9
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
7
10
  require 'zombie_record'
8
11
 
@@ -18,12 +18,4 @@ Gem::Specification.new do |spec|
18
18
  spec.required_ruby_version = ">= 3.1"
19
19
 
20
20
  spec.add_dependency "activerecord", ">= 6.1"
21
-
22
- spec.add_development_dependency "bundler"
23
- spec.add_development_dependency "byebug"
24
- spec.add_development_dependency "rake"
25
- spec.add_development_dependency "bump"
26
- spec.add_development_dependency "rspec", "~> 3.5"
27
- spec.add_development_dependency "sqlite3"
28
- spec.add_development_dependency "timecop"
29
21
  end
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.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-01 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -24,104 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6.1'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: byebug
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: bump
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.5'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.5'
97
- - !ruby/object:Gem::Dependency
98
- name: sqlite3
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: timecop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
27
  description: Allows restoring your Active Records from the dead!
126
28
  email:
127
29
  - dasch@zendesk.com
@@ -132,7 +34,7 @@ extra_rdoc_files: []
132
34
  files:
133
35
  - ".github/workflows/ci.yml"
134
36
  - ".github/workflows/publish.yml"
135
- - ".github/workflows/test_against_rails_main.yml"
37
+ - ".github/workflows/rails_main_testing.yml"
136
38
  - ".gitignore"
137
39
  - ".rspec"
138
40
  - CHANGELOG.md
@@ -141,12 +43,17 @@ files:
141
43
  - README.md
142
44
  - Rakefile
143
45
  - bin/bundle_all
46
+ - gemfiles/common.rb
144
47
  - gemfiles/rails6.1.gemfile
145
48
  - gemfiles/rails6.1.gemfile.lock
146
49
  - gemfiles/rails7.0.gemfile
147
50
  - gemfiles/rails7.0.gemfile.lock
148
51
  - gemfiles/rails7.1.gemfile
149
52
  - gemfiles/rails7.1.gemfile.lock
53
+ - gemfiles/rails7.2.gemfile
54
+ - gemfiles/rails7.2.gemfile.lock
55
+ - gemfiles/rails8.0.gemfile
56
+ - gemfiles/rails8.0.gemfile.lock
150
57
  - gemfiles/rails_main.gemfile
151
58
  - lib/zombie_record.rb
152
59
  - lib/zombie_record/restorable.rb
@@ -158,7 +65,7 @@ homepage: https://github.com/zendesk/zombie_record
158
65
  licenses:
159
66
  - MIT
160
67
  metadata: {}
161
- post_install_message:
68
+ post_install_message:
162
69
  rdoc_options: []
163
70
  require_paths:
164
71
  - lib
@@ -173,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
80
  - !ruby/object:Gem::Version
174
81
  version: '0'
175
82
  requirements: []
176
- rubygems_version: 3.5.11
177
- signing_key:
83
+ rubygems_version: 3.5.22
84
+ signing_key:
178
85
  specification_version: 4
179
86
  summary: Allows restoring your Active Records from the dead!
180
87
  test_files: