paperclip-permanent_records 0.7.2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +4 -0
- data/.github/workflows/lint_and_test.yml +8 -16
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +7 -1
- data/Appraisals +8 -8
- data/CHANGELOG.md +11 -2
- data/Gemfile +4 -3
- data/README.md +7 -8
- data/gemfiles/rails_6.1.gemfile +5 -4
- data/gemfiles/rails_7.0.gemfile +5 -4
- data/gemfiles/rails_7.1.gemfile +5 -4
- data/gemfiles/{rails_5.2.gemfile → rails_7.2.gemfile} +6 -5
- data/lib/paperclip/permanent_records/active_record.rb +1 -1
- data/lib/paperclip/permanent_records/version.rb +1 -1
- data/paperclip-permanent_records.gemspec +9 -2
- metadata +10 -7
- data/gemfiles/rails_6.0.gemfile +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2cc53de11e65a936c91313a44e7e206895bacd2310c6571819338714cd70125
|
4
|
+
data.tar.gz: fe217f448773211ff70035c087f2bd296a44ab6564051a2e788fa9acff6d3b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 196800491d76e8b712a4298d1fc98715a722c26ae334a75c6142464abc10b6dffcadf8ec6a3b197944801da046a081f94d94a7d959589fc1130bf5045d9e8255
|
7
|
+
data.tar.gz: a36a75a2a6a29e5fff5c4e2ca2638641a3634cea744a99a21019badc7667072f87e57296736cc1469ccaa6d897e917a8bcbbc64d1d8035336eaae2d30449af50
|
data/.github/dependabot.yml
CHANGED
@@ -13,7 +13,8 @@ jobs:
|
|
13
13
|
- name: Setup ruby
|
14
14
|
uses: ruby/setup-ruby@v1
|
15
15
|
with:
|
16
|
-
ruby-version:
|
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.
|
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:
|
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.
|
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:
|
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-
|
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,17 @@
|
|
1
1
|
# (unreleased)
|
2
2
|
|
3
|
-
# 0.
|
3
|
+
# 0.8.1 (2024-11-11)
|
4
4
|
|
5
|
-
* (
|
5
|
+
* (internal) Add some metadata for rubygems.org
|
6
|
+
|
7
|
+
# 0.8.0 (2024-11-11)
|
8
|
+
|
9
|
+
* Add support for ruby 3.3 and rails 7.1
|
10
|
+
* Drop support for ruby < 3.0 and rails < 6.1
|
11
|
+
* (dev) Fix: gem should be pushed to rubygems.org
|
12
|
+
* (dev) Fix github test action to only install the gems based on the current appraisal gemfile
|
13
|
+
* (dev) dependabot: add github-actions
|
14
|
+
* (internal) Update some dev dependencies incl. rubocop + config + fix some warnings
|
6
15
|
|
7
16
|
# 0.7.1 (2024-04-04)
|
8
17
|
|
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.
|
9
|
+
gem 'bundler', '~> 2.5'
|
10
10
|
gem 'rake', '>= 13.0'
|
11
|
-
gem 'rspec-rails', '~>
|
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
|
13
|
-
* rails 6.0/
|
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.
|
15
|
+
* previous versions of ruby/rails/paperclip: please check version 0.7.x of this gem
|
17
16
|
|
18
|
-
Please see `.github/workflows/
|
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/
|
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/
|
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=
|
64
|
+
RBENV_VERSION=3.0.6 bundle exec appraisal rspec
|
66
65
|
```
|
67
66
|
|
68
67
|
## Install and release
|
data/gemfiles/rails_6.1.gemfile
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.5"
|
6
|
-
gem "bundler", "~> 2.
|
6
|
+
gem "bundler", "~> 2.5"
|
7
7
|
gem "rake", ">= 13.0"
|
8
|
-
gem "rspec-rails", "~>
|
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 "
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
14
15
|
gem "rails", "~> 6.1.0"
|
15
16
|
|
16
17
|
gemspec path: "../"
|
data/gemfiles/rails_7.0.gemfile
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.5"
|
6
|
-
gem "bundler", "~> 2.
|
6
|
+
gem "bundler", "~> 2.5"
|
7
7
|
gem "rake", ">= 13.0"
|
8
|
-
gem "rspec-rails", "~>
|
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 "
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
14
15
|
gem "rails", "~> 7.0.0"
|
15
16
|
|
16
17
|
gemspec path: "../"
|
data/gemfiles/rails_7.1.gemfile
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "appraisal", "~> 2.5"
|
6
|
-
gem "bundler", "~> 2.
|
6
|
+
gem "bundler", "~> 2.5"
|
7
7
|
gem "rake", ">= 13.0"
|
8
|
-
gem "rspec-rails", "~>
|
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 "
|
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.
|
6
|
+
gem "bundler", "~> 2.5"
|
7
7
|
gem "rake", ">= 13.0"
|
8
|
-
gem "rspec-rails", "~>
|
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 "
|
14
|
-
gem "
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.2.0"
|
15
16
|
|
16
17
|
gemspec path: "../"
|
@@ -14,13 +14,20 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'https://github.com/emjot/paperclip-permanent_records'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
|
+
spec.metadata = {
|
18
|
+
'bug_tracker_uri' => 'https://github.com/emjot/paperclip-permanent_records/issues',
|
19
|
+
'changelog_uri' => 'https://github.com/emjot/paperclip-permanent_records/blob/main/CHANGELOG.md',
|
20
|
+
'homepage_uri' => 'https://github.com/emjot/paperclip-permanent_records',
|
21
|
+
'source_code_uri' => 'https://github.com/emjot/paperclip-permanent_records'
|
22
|
+
}
|
23
|
+
|
17
24
|
spec.files = `git ls-files -z`.split("\x0")
|
18
25
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
26
|
spec.require_paths = ['lib']
|
20
27
|
|
21
|
-
spec.required_ruby_version = '>=
|
28
|
+
spec.required_ruby_version = '>= 3.0'
|
22
29
|
|
23
|
-
spec.add_dependency 'activerecord', '>=
|
30
|
+
spec.add_dependency 'activerecord', '>= 6.1'
|
24
31
|
spec.add_dependency 'kt-paperclip', ['>= 7.2', '< 8']
|
25
32
|
spec.add_dependency 'permanent_records', '>= 6.0'
|
26
33
|
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.
|
4
|
+
version: 0.8.1
|
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: '
|
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: '
|
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
|
@@ -97,7 +96,11 @@ files:
|
|
97
96
|
homepage: https://github.com/emjot/paperclip-permanent_records
|
98
97
|
licenses:
|
99
98
|
- MIT
|
100
|
-
metadata:
|
99
|
+
metadata:
|
100
|
+
bug_tracker_uri: https://github.com/emjot/paperclip-permanent_records/issues
|
101
|
+
changelog_uri: https://github.com/emjot/paperclip-permanent_records/blob/main/CHANGELOG.md
|
102
|
+
homepage_uri: https://github.com/emjot/paperclip-permanent_records
|
103
|
+
source_code_uri: https://github.com/emjot/paperclip-permanent_records
|
101
104
|
post_install_message:
|
102
105
|
rdoc_options: []
|
103
106
|
require_paths:
|
@@ -106,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
109
|
requirements:
|
107
110
|
- - ">="
|
108
111
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
112
|
+
version: '3.0'
|
110
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
114
|
requirements:
|
112
115
|
- - ">="
|
data/gemfiles/rails_6.0.gemfile
DELETED
@@ -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: "../"
|