paperclip-permanent_records 0.7.2 → 0.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: f56b10014fe088d4ddef89034e32c1ccd37ba91b13c1425dcf4f1e1a01aac987
4
- data.tar.gz: e7a20ae5cdc2e5565011883ac89369fd04862210b707d496ab47484c45fba26a
3
+ metadata.gz: e0b250c4199905abb1421cad0c1a4e96d0509b2bef45f945366331d8c64e91c0
4
+ data.tar.gz: fb6020c5b6d98628ebb2235d83853ba7c40c3fa01cbaba93afc7b128a36070b9
5
5
  SHA512:
6
- metadata.gz: 10d9ea111c4fc1e935e825f20a0ccef862533b4ab9ccd4b6d3383a94f3344b923f346c9aa26f51fed825c795bbf77ad9fccc774f6fffd5054e5717d1c70c3b09
7
- data.tar.gz: 3ba3f2bbb9e47cbaef7056baac02fe0d7305716e2a29e3bda7435305e6888d58bc94458f2bcb6412f7d6901f657ff3e29baa9bb0b08e3acb1e733c70f807a575
6
+ metadata.gz: 0d7675ea84de5c2cea3492caa7b68c889208880b1a833ae5f194f112e8646647cf43d21ef12ce5794eeb66504bcaeefde7115dd3f22c923b726366500395ee48
7
+ data.tar.gz: 8b04afcda6a978ea1df59c88243fc4fda8d4d26bef901daa174cd898773eb021c1c53c5bb8b43a863bcdd55ddfa920c040b965c0e522affb86a2c14be83f0e77
@@ -12,3 +12,7 @@ updates:
12
12
  schedule:
13
13
  interval: "weekly"
14
14
  vendor: true
15
+ - package-ecosystem: "github-actions"
16
+ directory: "/"
17
+ schedule:
18
+ interval: "weekly"
@@ -13,7 +13,8 @@ jobs:
13
13
  - name: Setup ruby
14
14
  uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: 2.7.8
16
+ ruby-version: 3.0.6
17
+ bundler: 2.5
17
18
  - name: Install bundle
18
19
  run: bundle
19
20
  - name: Run rubocop
@@ -24,27 +25,18 @@ jobs:
24
25
  strategy:
25
26
  matrix:
26
27
  ruby:
27
- - 2.7.8
28
28
  - 3.0.6
29
29
  - 3.1.4
30
- - 3.2.3
30
+ - 3.2.6
31
+ - 3.3.6
31
32
  appraisal:
32
- - rails_5.2
33
- - rails_6.0
34
33
  - rails_6.1
35
34
  - rails_7.0
36
35
  - rails_7.1
36
+ - rails_7.2
37
37
  exclude:
38
38
  - ruby: 3.0.6
39
- appraisal: rails_5.2
40
- - ruby: 3.1.4
41
- appraisal: rails_5.2
42
- - ruby: 3.2.3
43
- appraisal: rails_5.2
44
- - ruby: 2.7.8
45
- appraisal: rails_7.0
46
- - ruby: 2.7.8
47
- appraisal: rails_7.1
39
+ appraisal: rails_7.2
48
40
  steps:
49
41
  - name: Install system dependencies
50
42
  run: sudo apt-get install -y libsqlite3-dev
@@ -53,10 +45,10 @@ jobs:
53
45
  uses: ruby/setup-ruby@v1
54
46
  with:
55
47
  ruby-version: ${{ matrix.ruby }}
56
- bundler: 2.4
48
+ bundler: 2.5
57
49
  - name: Install bundle
58
50
  run: bundle
59
51
  - name: Install appraisal
60
- run: bundle exec appraisal install
52
+ run: bundle exec appraisal ${{ matrix.appraisal }} bundle install
61
53
  - name: Run tests
62
54
  run: bundle exec appraisal ${{ matrix.appraisal }} rspec
data/.rubocop.yml CHANGED
@@ -4,6 +4,7 @@ require:
4
4
  - rubocop-performance
5
5
  - rubocop-rake
6
6
  - rubocop-rspec
7
+ - rubocop-rspec_rails
7
8
 
8
9
  inherit_mode:
9
10
  merge:
@@ -22,7 +23,7 @@ AllCops:
22
23
  Exclude:
23
24
  - 'gemfiles/**/*.gemfile'
24
25
  NewCops: enable
25
- TargetRubyVersion: 2.7
26
+ TargetRubyVersion: 3.0
26
27
 
27
28
  Layout/ArgumentAlignment:
28
29
  EnforcedStyle: 'with_fixed_indentation'
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2024-03-13 13:32:20 UTC using RuboCop version 1.62.1.
3
+ # on 2024-11-11 19:35:08 UTC using RuboCop version 1.68.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -41,6 +41,12 @@ RSpec/ReceiveMessages:
41
41
  Exclude:
42
42
  - 'spec/paperclip/permanent_records_spec.rb'
43
43
 
44
+ # Offense count: 1
45
+ # This cop supports unsafe autocorrection (--autocorrect-all).
46
+ RSpec/StringAsInstanceDoubleConstant:
47
+ Exclude:
48
+ - 'spec/paperclip/permanent_records_spec.rb'
49
+
44
50
  # Offense count: 1
45
51
  # This cop supports unsafe autocorrection (--autocorrect-all).
46
52
  # Configuration parameters: .
data/Appraisals CHANGED
@@ -1,21 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails_5.2' do
4
- gem 'rails', '~> 5.2.0'
5
- end
6
-
7
- appraise 'rails_6.0' do
8
- gem 'rails', '~> 6.0.0'
9
- end
10
-
11
3
  appraise 'rails_6.1' do
12
4
  gem 'rails', '~> 6.1.0'
5
+ gem 'sqlite3', '~> 1.4'
13
6
  end
14
7
 
15
8
  appraise 'rails_7.0' do
16
9
  gem 'rails', '~> 7.0.0'
10
+ gem 'sqlite3', '~> 1.4'
17
11
  end
18
12
 
19
13
  appraise 'rails_7.1' do
20
14
  gem 'rails', '~> 7.1.0'
15
+ gem 'sqlite3', '~> 2.0'
16
+ end
17
+
18
+ appraise 'rails_7.2' do
19
+ gem 'rails', '~> 7.2.0'
20
+ gem 'sqlite3', '~> 2.0'
21
21
  end
data/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # (unreleased)
2
2
 
3
- # 0.7.2 (2024-11-11)
4
-
5
- * (backport) (dev) Fix: gem should be pushed to rubygems.org
3
+ # 0.8.0 (2024-11-11)
4
+
5
+ * Add support for ruby 3.3 and rails 7.1
6
+ * Drop support for ruby < 3.0 and rails < 6.1
7
+ * (dev) Fix: gem should be pushed to rubygems.org
8
+ * (dev) Fix github test action to only install the gems based on the current appraisal gemfile
9
+ * (dev) dependabot: add github-actions
10
+ * (internal) Update some dev dependencies incl. rubocop + config + fix some warnings
6
11
 
7
12
  # 0.7.1 (2024-04-04)
8
13
 
data/Gemfile CHANGED
@@ -6,11 +6,12 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'appraisal', '~> 2.5'
9
- gem 'bundler', '~> 2.4'
9
+ gem 'bundler', '~> 2.5'
10
10
  gem 'rake', '>= 13.0'
11
- gem 'rspec-rails', '~> 5.0'
12
- gem 'rubocop'
11
+ gem 'rspec-rails', '~> 6.0'
12
+ gem 'rubocop', '>= 1.68'
13
13
  gem 'rubocop-performance'
14
14
  gem 'rubocop-rake'
15
15
  gem 'rubocop-rspec'
16
+ gem 'rubocop-rspec_rails'
16
17
  gem 'sqlite3'
data/README.md CHANGED
@@ -9,13 +9,12 @@ NOTE: Since paperclip is not maintained any more, we have switched the dependenc
9
9
 
10
10
  ## Compatibility
11
11
 
12
- * rails 5.2: works with kt-paperclip 7 and ruby ~> 2.7
13
- * rails 6.0/6.1: works with kt-paperclip ~> 7.2 and ruby 2.7.8 or later
14
- * rails 7.0/7.1: works with kt-paperclip ~> 7.2 and ruby 3.0.6 or later
12
+ * rails 7.2: works with kt-paperclip ~> 7.2 and ruby 3.1.4 or later
13
+ * rails 6.1/7.0/7.1: works with kt-paperclip ~> 7.2 and ruby 3.0.6 or later
15
14
  * tested with permanent_records 6.0.0
16
- * previous versions of ruby/rails/paperclip: please check version 0.6.x of this gem
15
+ * previous versions of ruby/rails/paperclip: please check version 0.7.x of this gem
17
16
 
18
- Please see `.github/workflows/test.yml` and `Appraisals` for what combinations have actually been tested. Usage with other versions
17
+ Please see `.github/workflows/lint_and_test.yml` and `Appraisals` for what combinations have actually been tested. Usage with other versions
19
18
  might cause data loss.
20
19
 
21
20
  ## Installation
@@ -53,16 +52,16 @@ This gem does basically two things:
53
52
 
54
53
  Code style: Please use rubocop before you commit (`bundle exec rubocop`) and fix any warnings.
55
54
 
56
- Use `bundle exec appraisal generate` to generate the gemfiles if you change them in `Appraisals` and `.github/workflows/test.yml`.
55
+ Use `bundle exec appraisal generate` to generate the gemfiles if you change them in `Appraisals` and `.github/workflows/lint_and_test.yml`.
57
56
 
58
57
  ### Running tests
59
58
 
60
- To setup tests, make sure all the ruby versions defined in `.github/workflows/test.yml` are installed on your system.
59
+ To setup tests, make sure all the ruby versions defined in `.github/workflows/lint_and_test.yml` are installed on your system.
61
60
 
62
61
  Assuming you are using [rbenv](https://github.com/rbenv/rbenv) or [rvm](https://rvm.io/), run tests with each of the supported ruby versions:
63
62
 
64
63
  ```
65
- RBENV_VERSION=2.7.8 bundle exec appraisal rspec
64
+ RBENV_VERSION=3.0.6 bundle exec appraisal rspec
66
65
  ```
67
66
 
68
67
  ## Install and release
@@ -3,14 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.5"
6
- gem "bundler", "~> 2.4"
6
+ gem "bundler", "~> 2.5"
7
7
  gem "rake", ">= 13.0"
8
- gem "rspec-rails", "~> 5.0"
9
- gem "rubocop"
8
+ gem "rspec-rails", "~> 6.0"
9
+ gem "rubocop", ">= 1.68"
10
10
  gem "rubocop-performance"
11
11
  gem "rubocop-rake"
12
12
  gem "rubocop-rspec"
13
- gem "sqlite3"
13
+ gem "rubocop-rspec_rails"
14
+ gem "sqlite3", "~> 1.4"
14
15
  gem "rails", "~> 6.1.0"
15
16
 
16
17
  gemspec path: "../"
@@ -3,14 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.5"
6
- gem "bundler", "~> 2.4"
6
+ gem "bundler", "~> 2.5"
7
7
  gem "rake", ">= 13.0"
8
- gem "rspec-rails", "~> 5.0"
9
- gem "rubocop"
8
+ gem "rspec-rails", "~> 6.0"
9
+ gem "rubocop", ">= 1.68"
10
10
  gem "rubocop-performance"
11
11
  gem "rubocop-rake"
12
12
  gem "rubocop-rspec"
13
- gem "sqlite3"
13
+ gem "rubocop-rspec_rails"
14
+ gem "sqlite3", "~> 1.4"
14
15
  gem "rails", "~> 7.0.0"
15
16
 
16
17
  gemspec path: "../"
@@ -3,14 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.5"
6
- gem "bundler", "~> 2.4"
6
+ gem "bundler", "~> 2.5"
7
7
  gem "rake", ">= 13.0"
8
- gem "rspec-rails", "~> 5.0"
9
- gem "rubocop"
8
+ gem "rspec-rails", "~> 6.0"
9
+ gem "rubocop", ">= 1.68"
10
10
  gem "rubocop-performance"
11
11
  gem "rubocop-rake"
12
12
  gem "rubocop-rspec"
13
- gem "sqlite3"
13
+ gem "rubocop-rspec_rails"
14
+ gem "sqlite3", "~> 2.0"
14
15
  gem "rails", "~> 7.1.0"
15
16
 
16
17
  gemspec path: "../"
@@ -3,14 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.5"
6
- gem "bundler", "~> 2.4"
6
+ gem "bundler", "~> 2.5"
7
7
  gem "rake", ">= 13.0"
8
- gem "rspec-rails", "~> 5.0"
9
- gem "rubocop"
8
+ gem "rspec-rails", "~> 6.0"
9
+ gem "rubocop", ">= 1.68"
10
10
  gem "rubocop-performance"
11
11
  gem "rubocop-rake"
12
12
  gem "rubocop-rspec"
13
- gem "sqlite3"
14
- gem "rails", "~> 5.2.0"
13
+ gem "rubocop-rspec_rails"
14
+ gem "sqlite3", "~> 2.0"
15
+ gem "rails", "~> 7.2.0"
15
16
 
16
17
  gemspec path: "../"
@@ -12,7 +12,7 @@ module Paperclip
12
12
  schedule_attachments_for_deletion # => delete the attachments
13
13
  end
14
14
 
15
- super(force)
15
+ super
16
16
  end
17
17
 
18
18
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Paperclip
4
4
  module PermanentRecords
5
- VERSION = '0.7.2'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 2.7'
21
+ spec.required_ruby_version = '>= 3.0'
22
22
 
23
- spec.add_dependency 'activerecord', '>= 5.2'
23
+ spec.add_dependency 'activerecord', '>= 6.1'
24
24
  spec.add_dependency 'kt-paperclip', ['>= 7.2', '< 8']
25
25
  spec.add_dependency 'permanent_records', '>= 6.0'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-permanent_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximilian Herold
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: kt-paperclip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,11 +78,10 @@ files:
78
78
  - LICENSE.txt
79
79
  - README.md
80
80
  - Rakefile
81
- - gemfiles/rails_5.2.gemfile
82
- - gemfiles/rails_6.0.gemfile
83
81
  - gemfiles/rails_6.1.gemfile
84
82
  - gemfiles/rails_7.0.gemfile
85
83
  - gemfiles/rails_7.1.gemfile
84
+ - gemfiles/rails_7.2.gemfile
86
85
  - lib/paperclip/permanent_records.rb
87
86
  - lib/paperclip/permanent_records/active_record.rb
88
87
  - lib/paperclip/permanent_records/gem_helper.rb
@@ -106,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - ">="
108
107
  - !ruby/object:Gem::Version
109
- version: '2.7'
108
+ version: '3.0'
110
109
  required_rubygems_version: !ruby/object:Gem::Requirement
111
110
  requirements:
112
111
  - - ">="
@@ -1,16 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.5"
6
- gem "bundler", "~> 2.4"
7
- gem "rake", ">= 13.0"
8
- gem "rspec-rails", "~> 5.0"
9
- gem "rubocop"
10
- gem "rubocop-performance"
11
- gem "rubocop-rake"
12
- gem "rubocop-rspec"
13
- gem "sqlite3"
14
- gem "rails", "~> 6.0.0"
15
-
16
- gemspec path: "../"