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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0996f31d1919f871bba75e8a21edf967c36b8f83b2b96d9d291db75e74f8982c'
4
- data.tar.gz: 8a52efb01d99b98ab88d93b67d93bb1d6143d6fad6f24e081185a2f104e5f836
3
+ metadata.gz: b3c6136aa69e27d806af680b1f1f24958a53dcde5778eb7e6f31786cd170216a
4
+ data.tar.gz: aa3046d046ec6dfe9da888fb29c6bfbb4a875cd209ff0799c3bab1dfa71df6dd
5
5
  SHA512:
6
- metadata.gz: e2c0b0bec32563691aff52c2287a363916a436f1c9356a9e9019490c7d0e67feb61b7dcc991143087390282c5e1e67090eabbbe90f803f78cd1bf9c4d6fd48cc
7
- data.tar.gz: d7dd89008db2ea47d71113960097a95d667785b91ffdc27cf7549cc277defcb1361457c20f959d4e96354853b385f4fa970964c7e95df73711b268da7c7ac19f
6
+ metadata.gz: 9841f53bea9f3cb637d99319c22c161e29c5c96651f7950a7f245dad0839d3d6932a4afa68c46deabf32a0fd3c484f479b21ee561b233c52de9dbf65debf882f
7
+ data.tar.gz: e34fcb67ca5bec985e11d959b2e67f52e598489045fe589100482b9d4d3b398a8d94feecb7a1c3fb76861d17f8b667ae0488cc1e38ac9434eb66962ff3f3bd3b
@@ -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: zendesk/checkout@v2
23
+ - uses: actions/checkout@v4
24
24
  - name: Set up Ruby
25
- uses: zendesk/setup-ruby@v1
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
@@ -4,6 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  /Gemfile.lock
7
+ /gemfiles/rails_main.gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
9
10
  coverage
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ###### Unreleased
2
2
 
3
+ ###### v1.8.0
4
+
5
+ * Drop upper limit on Rails, test with Rails main.
6
+ * Drop support for Rails < 6.0.
7
+ * Drop support for Ruby 2.7 & 3.0.
8
+
3
9
  ###### v1.7.0
4
10
 
5
11
  * Add support for Rails 7.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.7.0)
5
- activerecord (>= 6.1, < 7.2)
4
+ zombie_record (1.8.0)
5
+ activerecord (>= 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.7.0)
5
- activerecord (>= 6.1, < 7.2)
4
+ zombie_record (1.8.0)
5
+ activerecord (>= 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec path: "../"
4
4
 
5
5
  gem "activerecord", "~> 7.1.0"
6
+ gem "sqlite3", "~> 1.4"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- zombie_record (1.7.0)
5
- activerecord (>= 6.1, < 7.2)
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.1.1)
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
 
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: "../"
4
+
5
+ gem "activerecord", github: "rails/rails", branch: "main"
6
+ gem "sqlite3"
@@ -92,12 +92,10 @@ module ZombieRecord
92
92
  @record = record
93
93
  end
94
94
 
95
- def method_missing(name, *args, &block)
96
- delegate_to_record(name) { @record.public_send(name, *args, &block) }
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|
@@ -1,3 +1,3 @@
1
1
  module ZombieRecord
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
@@ -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 = ">= 2.7"
18
+ spec.required_ruby_version = ">= 3.1"
19
19
 
20
- spec.add_dependency "activerecord", ">= 6.1", "< 7.2"
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.7.0
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: 2023-10-19 00:00:00.000000000 Z
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: '2.7'
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.0.3.1
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!