zombie_record 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -4
- data/.github/workflows/test_against_rails_main.yml +28 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/gemfiles/rails6.1.gemfile.lock +2 -2
- data/gemfiles/rails7.0.gemfile.lock +2 -2
- data/gemfiles/rails7.1.gemfile +1 -0
- data/gemfiles/rails7.1.gemfile.lock +4 -6
- data/gemfiles/rails_main.gemfile +6 -0
- data/lib/zombie_record/restorable.rb +2 -4
- data/lib/zombie_record/version.rb +1 -1
- data/zombie_record.gemspec +2 -2
- metadata +6 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c6136aa69e27d806af680b1f1f24958a53dcde5778eb7e6f31786cd170216a
|
4
|
+
data.tar.gz: aa3046d046ec6dfe9da888fb29c6bfbb4a875cd209ff0799c3bab1dfa71df6dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9841f53bea9f3cb637d99319c22c161e29c5c96651f7950a7f245dad0839d3d6932a4afa68c46deabf32a0fd3c484f479b21ee561b233c52de9dbf65debf882f
|
7
|
+
data.tar.gz: e34fcb67ca5bec985e11d959b2e67f52e598489045fe589100482b9d4d3b398a8d94feecb7a1c3fb76861d17f8b667ae0488cc1e38ac9434eb66962ff3f3bd3b
|
data/.github/workflows/ci.yml
CHANGED
@@ -9,20 +9,20 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
matrix:
|
11
11
|
ruby-version:
|
12
|
-
- '2.7'
|
13
|
-
- '3.0'
|
14
12
|
- '3.1'
|
15
13
|
- '3.2'
|
14
|
+
- '3.3'
|
16
15
|
gemfile:
|
17
16
|
- rails6.1
|
18
17
|
- rails7.0
|
19
18
|
- rails7.1
|
19
|
+
- rails_main
|
20
20
|
env:
|
21
21
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
22
22
|
steps:
|
23
|
-
- uses:
|
23
|
+
- uses: actions/checkout@v4
|
24
24
|
- name: Set up Ruby
|
25
|
-
uses:
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
26
|
with:
|
27
27
|
ruby-version: ${{ matrix.ruby-version }}
|
28
28
|
bundler-cache: true
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Test against Rails main
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: "0 0 * * *" # Run every day at 00:00 UTC
|
6
|
+
workflow_dispatch:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
specs:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version:
|
15
|
+
- '3.3'
|
16
|
+
gemfile:
|
17
|
+
- rails_main
|
18
|
+
env:
|
19
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v4
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: ${{ matrix.ruby-version }}
|
26
|
+
bundler-cache: true
|
27
|
+
- name: RSpec
|
28
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/gemfiles/rails7.1.gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
zombie_record (1.
|
5
|
-
activerecord (>= 6.1
|
4
|
+
zombie_record (1.8.0)
|
5
|
+
activerecord (>= 6.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -30,8 +30,7 @@ GEM
|
|
30
30
|
concurrent-ruby (1.2.2)
|
31
31
|
connection_pool (2.4.1)
|
32
32
|
diff-lcs (1.5.0)
|
33
|
-
drb (2.
|
34
|
-
ruby2_keywords
|
33
|
+
drb (2.2.1)
|
35
34
|
i18n (1.14.1)
|
36
35
|
concurrent-ruby (~> 1.0)
|
37
36
|
mini_portile2 (2.8.4)
|
@@ -51,7 +50,6 @@ GEM
|
|
51
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
51
|
rspec-support (~> 3.12.0)
|
53
52
|
rspec-support (3.12.1)
|
54
|
-
ruby2_keywords (0.0.5)
|
55
53
|
sqlite3 (1.6.7)
|
56
54
|
mini_portile2 (~> 2.8.0)
|
57
55
|
timecop (0.9.8)
|
@@ -69,7 +67,7 @@ DEPENDENCIES
|
|
69
67
|
byebug
|
70
68
|
rake
|
71
69
|
rspec (~> 3.5)
|
72
|
-
sqlite3
|
70
|
+
sqlite3 (~> 1.4)
|
73
71
|
timecop
|
74
72
|
zombie_record!
|
75
73
|
|
@@ -92,12 +92,10 @@ module ZombieRecord
|
|
92
92
|
@record = record
|
93
93
|
end
|
94
94
|
|
95
|
-
def method_missing(name,
|
96
|
-
delegate_to_record(name) { @record.public_send(name,
|
95
|
+
def method_missing(name, ...)
|
96
|
+
delegate_to_record(name) { @record.public_send(name, ...) }
|
97
97
|
end
|
98
98
|
|
99
|
-
ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
|
100
|
-
|
101
99
|
# We want *all* methods to be delegated.
|
102
100
|
BasicObject.instance_methods.each do |name|
|
103
101
|
define_method(name) do |*args, &block|
|
data/zombie_record.gemspec
CHANGED
@@ -15,9 +15,9 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.required_ruby_version = ">=
|
18
|
+
spec.required_ruby_version = ">= 3.1"
|
19
19
|
|
20
|
-
spec.add_dependency "activerecord", ">= 6.1"
|
20
|
+
spec.add_dependency "activerecord", ">= 6.1"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "byebug"
|
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.
|
4
|
+
version: 1.8.0
|
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: 2024-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6.1'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '7.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '6.1'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '7.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: bundler
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,6 +132,7 @@ extra_rdoc_files: []
|
|
138
132
|
files:
|
139
133
|
- ".github/workflows/ci.yml"
|
140
134
|
- ".github/workflows/publish.yml"
|
135
|
+
- ".github/workflows/test_against_rails_main.yml"
|
141
136
|
- ".gitignore"
|
142
137
|
- ".rspec"
|
143
138
|
- CHANGELOG.md
|
@@ -152,6 +147,7 @@ files:
|
|
152
147
|
- gemfiles/rails7.0.gemfile.lock
|
153
148
|
- gemfiles/rails7.1.gemfile
|
154
149
|
- gemfiles/rails7.1.gemfile.lock
|
150
|
+
- gemfiles/rails_main.gemfile
|
155
151
|
- lib/zombie_record.rb
|
156
152
|
- lib/zombie_record/restorable.rb
|
157
153
|
- lib/zombie_record/version.rb
|
@@ -170,14 +166,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
170
166
|
requirements:
|
171
167
|
- - ">="
|
172
168
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
169
|
+
version: '3.1'
|
174
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
171
|
requirements:
|
176
172
|
- - ">="
|
177
173
|
- !ruby/object:Gem::Version
|
178
174
|
version: '0'
|
179
175
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
176
|
+
rubygems_version: 3.5.11
|
181
177
|
signing_key:
|
182
178
|
specification_version: 4
|
183
179
|
summary: Allows restoring your Active Records from the dead!
|