paperclip-permanent_records 0.6.0 → 0.8.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 +4 -4
- data/.github/dependabot.yml +18 -0
- data/.github/workflows/lint_and_test.yml +54 -0
- data/.rubocop.yml +37 -291
- data/.rubocop_todo.yml +50 -2
- data/Appraisals +12 -12
- data/CHANGELOG.md +24 -0
- data/Gemfile +11 -0
- data/README.md +24 -10
- data/Rakefile +6 -2
- data/gemfiles/rails_6.1.gemfile +17 -0
- data/gemfiles/rails_7.0.gemfile +17 -0
- data/gemfiles/rails_7.1.gemfile +17 -0
- data/gemfiles/rails_7.2.gemfile +17 -0
- data/lib/paperclip/permanent_records/active_record.rb +3 -1
- data/lib/paperclip/permanent_records/gem_helper.rb +8 -17
- data/lib/paperclip/permanent_records/paperclip_patch.rb +3 -1
- data/lib/paperclip/permanent_records/version.rb +3 -1
- data/lib/paperclip/permanent_records.rb +3 -1
- data/paperclip-permanent_records.gemspec +5 -16
- data/spec/data/models.rb +2 -0
- data/spec/data/schema.rb +2 -0
- data/spec/paperclip/permanent_records_spec.rb +8 -6
- data/spec/spec_helper.rb +8 -7
- metadata +17 -157
- data/.travis.yml +0 -10
- data/gemfiles/rails_5.2_pc_6.2.gemfile +0 -10
- data/gemfiles/rails_5.2_pc_6.4.gemfile +0 -10
- data/gemfiles/rails_5.2_pc_7.0.gemfile +0 -10
- data/gemfiles/rails_5.2_pc_7.1.gemfile +0 -10
- data/lib/paperclip/permanent_records/gem_tasks.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b250c4199905abb1421cad0c1a4e96d0509b2bef45f945366331d8c64e91c0
|
4
|
+
data.tar.gz: fb6020c5b6d98628ebb2235d83853ba7c40c3fa01cbaba93afc7b128a36070b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d7675ea84de5c2cea3492caa7b68c889208880b1a833ae5f194f112e8646647cf43d21ef12ce5794eeb66504bcaeefde7115dd3f22c923b726366500395ee48
|
7
|
+
data.tar.gz: 8b04afcda6a978ea1df59c88243fc4fda8d4d26bef901daa174cd898773eb021c1c53c5bb8b43a863bcdd55ddfa920c040b965c0e522affb86a2c14be83f0e77
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler"
|
9
|
+
directory: "/"
|
10
|
+
registries: "*"
|
11
|
+
insecure-external-code-execution: allow
|
12
|
+
schedule:
|
13
|
+
interval: "weekly"
|
14
|
+
vendor: true
|
15
|
+
- package-ecosystem: "github-actions"
|
16
|
+
directory: "/"
|
17
|
+
schedule:
|
18
|
+
interval: "weekly"
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: Lint & Test
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
lint:
|
7
|
+
name: Lint
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- name: Install system dependencies
|
11
|
+
run: sudo apt-get install -y libsqlite3-dev
|
12
|
+
- uses: actions/checkout@master
|
13
|
+
- name: Setup ruby
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 3.0.6
|
17
|
+
bundler: 2.5
|
18
|
+
- name: Install bundle
|
19
|
+
run: bundle
|
20
|
+
- name: Run rubocop
|
21
|
+
run: bundle exec rubocop
|
22
|
+
test:
|
23
|
+
name: Test
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
strategy:
|
26
|
+
matrix:
|
27
|
+
ruby:
|
28
|
+
- 3.0.6
|
29
|
+
- 3.1.4
|
30
|
+
- 3.2.6
|
31
|
+
- 3.3.6
|
32
|
+
appraisal:
|
33
|
+
- rails_6.1
|
34
|
+
- rails_7.0
|
35
|
+
- rails_7.1
|
36
|
+
- rails_7.2
|
37
|
+
exclude:
|
38
|
+
- ruby: 3.0.6
|
39
|
+
appraisal: rails_7.2
|
40
|
+
steps:
|
41
|
+
- name: Install system dependencies
|
42
|
+
run: sudo apt-get install -y libsqlite3-dev
|
43
|
+
- uses: actions/checkout@master
|
44
|
+
- name: Setup ruby
|
45
|
+
uses: ruby/setup-ruby@v1
|
46
|
+
with:
|
47
|
+
ruby-version: ${{ matrix.ruby }}
|
48
|
+
bundler: 2.5
|
49
|
+
- name: Install bundle
|
50
|
+
run: bundle
|
51
|
+
- name: Install appraisal
|
52
|
+
run: bundle exec appraisal ${{ matrix.appraisal }} bundle install
|
53
|
+
- name: Run tests
|
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:
|
@@ -18,13 +19,11 @@ AllCops:
|
|
18
19
|
- '**/Gemfile'
|
19
20
|
- '**/Rakefile'
|
20
21
|
- '**/Capfile'
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
Gemspec/RequireMFA: # new in 1.23
|
27
|
-
Enabled: true
|
22
|
+
- '**/*.rb'
|
23
|
+
Exclude:
|
24
|
+
- 'gemfiles/**/*.gemfile'
|
25
|
+
NewCops: enable
|
26
|
+
TargetRubyVersion: 3.0
|
28
27
|
|
29
28
|
Layout/ArgumentAlignment:
|
30
29
|
EnforcedStyle: 'with_fixed_indentation'
|
@@ -36,15 +35,6 @@ Layout/HashAlignment:
|
|
36
35
|
EnforcedColonStyle: 'table'
|
37
36
|
EnforcedHashRocketStyle: 'table'
|
38
37
|
|
39
|
-
Layout/LineContinuationLeadingSpace: # new in 1.31
|
40
|
-
Enabled: true
|
41
|
-
|
42
|
-
Layout/LineContinuationSpacing: # new in 1.31
|
43
|
-
Enabled: true
|
44
|
-
|
45
|
-
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
46
|
-
Enabled: true
|
47
|
-
|
48
38
|
Layout/LineLength:
|
49
39
|
Exclude:
|
50
40
|
- 'app/controllers/**/*'
|
@@ -53,9 +43,6 @@ Layout/LineLength:
|
|
53
43
|
Layout/ParameterAlignment:
|
54
44
|
EnforcedStyle: 'with_fixed_indentation'
|
55
45
|
|
56
|
-
Layout/SpaceBeforeBrackets: # (new in 1.7)
|
57
|
-
Enabled: true
|
58
|
-
|
59
46
|
Layout/SpaceBeforeFirstArg:
|
60
47
|
Exclude:
|
61
48
|
- 'config/routes.rb'
|
@@ -64,159 +51,41 @@ Layout/SpaceBeforeFirstArg:
|
|
64
51
|
Layout/SpaceInsideHashLiteralBraces:
|
65
52
|
EnforcedStyle: 'no_space'
|
66
53
|
|
67
|
-
Lint/AmbiguousAssignment: # (new in 1.7)
|
68
|
-
Enabled: true
|
69
|
-
|
70
54
|
Lint/AmbiguousBlockAssociation:
|
71
55
|
Exclude:
|
72
56
|
- "spec/**/*"
|
73
57
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
Enabled: true
|
106
|
-
|
107
|
-
Lint/NonAtomicFileOperation: # new in 1.31
|
108
|
-
Enabled: true
|
109
|
-
|
110
|
-
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
111
|
-
Enabled: true
|
112
|
-
|
113
|
-
Lint/NumberedParameterAssignment: # (new in 1.9)
|
114
|
-
Enabled: true
|
115
|
-
|
116
|
-
Lint/OrAssignmentToConstant: # (new in 1.9)
|
117
|
-
Enabled: true
|
118
|
-
|
119
|
-
Lint/RedundantDirGlobSort: # (new in 1.8)
|
120
|
-
Enabled: true
|
121
|
-
|
122
|
-
Lint/RefinementImportMethods: # new in 1.27
|
123
|
-
Enabled: true
|
124
|
-
|
125
|
-
Lint/RequireRangeParentheses: # new in 1.32
|
126
|
-
Enabled: true
|
127
|
-
|
128
|
-
Lint/RequireRelativeSelfPath: # new in 1.22
|
129
|
-
Enabled: true
|
130
|
-
|
131
|
-
Lint/SymbolConversion: # (new in 1.9)
|
132
|
-
Enabled: true
|
133
|
-
|
134
|
-
Lint/ToEnumArguments: # (new in 1.1)
|
135
|
-
Enabled: true
|
136
|
-
|
137
|
-
Lint/TripleQuotes: # (new in 1.9)
|
138
|
-
Enabled: true
|
139
|
-
|
140
|
-
Lint/UnexpectedBlockArity: # (new in 1.5)
|
141
|
-
Enabled: true
|
142
|
-
|
143
|
-
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
144
|
-
Enabled: true
|
145
|
-
|
146
|
-
Lint/UselessRuby2Keywords: # new in 1.23
|
147
|
-
Enabled: true
|
148
|
-
|
149
|
-
Naming/BlockForwarding: # new in 1.24
|
150
|
-
Enabled: true
|
151
|
-
|
152
|
-
Naming/InclusiveLanguage: # (new in 1.18)
|
153
|
-
Enabled: true
|
154
|
-
|
155
|
-
Performance/AncestorsInclude: # (new in 1.7)
|
156
|
-
Enabled: true
|
157
|
-
|
158
|
-
Performance/BigDecimalWithNumericArgument: # (new in 1.7)
|
159
|
-
Enabled: true
|
160
|
-
|
161
|
-
Performance/BlockGivenWithExplicitBlock: # (new in 1.9)
|
162
|
-
Enabled: true
|
163
|
-
|
164
|
-
Performance/CollectionLiteralInLoop: # (new in 1.8)
|
165
|
-
Enabled: true
|
166
|
-
|
167
|
-
Performance/ConcurrentMonotonicTime: # new in 1.12
|
168
|
-
Enabled: true
|
169
|
-
|
170
|
-
Performance/ConstantRegexp: # (new in 1.9)
|
171
|
-
Enabled: true
|
172
|
-
|
173
|
-
Performance/MapCompact: # (new in 1.11)
|
174
|
-
Enabled: true
|
175
|
-
|
176
|
-
Performance/MethodObjectAsBlock: # (new in 1.9)
|
177
|
-
Enabled: true
|
178
|
-
|
179
|
-
Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
|
180
|
-
Enabled: true
|
181
|
-
|
182
|
-
Performance/RedundantSortBlock: # (new in 1.7)
|
183
|
-
Enabled: true
|
184
|
-
|
185
|
-
Performance/RedundantSplitRegexpArgument: # (new in 1.10)
|
186
|
-
Enabled: true
|
187
|
-
|
188
|
-
Performance/RedundantStringChars: # (new in 1.7)
|
189
|
-
Enabled: true
|
190
|
-
|
191
|
-
Performance/ReverseFirst: # (new in 1.7)
|
192
|
-
Enabled: true
|
193
|
-
|
194
|
-
Performance/SortReverse: # (new in 1.7)
|
195
|
-
Enabled: true
|
196
|
-
|
197
|
-
Performance/Squeeze: # (new in 1.7)
|
198
|
-
Enabled: true
|
199
|
-
|
200
|
-
Performance/StringIdentifierArgument: # new in 1.13
|
201
|
-
Enabled: true
|
202
|
-
|
203
|
-
Performance/StringInclude: # (new in 1.7)
|
204
|
-
Enabled: true
|
205
|
-
|
206
|
-
Performance/Sum: # (new in 1.8)
|
207
|
-
Enabled: true
|
208
|
-
|
209
|
-
RSpec/BeEq: # new in 2.9.0
|
210
|
-
Enabled: true
|
211
|
-
|
212
|
-
RSpec/BeNil: # new in 2.9.0
|
213
|
-
Enabled: true
|
214
|
-
|
215
|
-
RSpec/Capybara/SpecificMatcher: # new in 2.12
|
216
|
-
Enabled: true
|
217
|
-
|
218
|
-
RSpec/ChangeByZero: # new in 2.11.0
|
219
|
-
Enabled: true
|
58
|
+
Naming/MethodParameterName:
|
59
|
+
AllowedNames:
|
60
|
+
# defaults:
|
61
|
+
- io
|
62
|
+
- id
|
63
|
+
- to
|
64
|
+
- by
|
65
|
+
- 'on'
|
66
|
+
- in
|
67
|
+
- at
|
68
|
+
- ip
|
69
|
+
- db
|
70
|
+
- os
|
71
|
+
- pp
|
72
|
+
# emjot additions:
|
73
|
+
- q
|
74
|
+
- dj
|
75
|
+
|
76
|
+
Naming/VariableNumber:
|
77
|
+
EnforcedStyle: 'snake_case'
|
78
|
+
AllowedIdentifiers:
|
79
|
+
# defaults (as of rubocop 1.9.1):
|
80
|
+
- capture3 # Open3.capture3
|
81
|
+
- iso8601 # Time#iso8601
|
82
|
+
- rfc1123_date # CGI.rfc1123_date
|
83
|
+
- rfc822 # Time#rfc822
|
84
|
+
- rfc2822 # Time#rfc2822
|
85
|
+
- rfc3339 # DateTime.rfc3339
|
86
|
+
# emjot additions:
|
87
|
+
- html5
|
88
|
+
- s3
|
220
89
|
|
221
90
|
RSpec/DescribeClass:
|
222
91
|
Exclude:
|
@@ -225,147 +94,24 @@ RSpec/DescribeClass:
|
|
225
94
|
RSpec/DescribedClass:
|
226
95
|
Enabled: false
|
227
96
|
|
228
|
-
RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
229
|
-
Enabled: true
|
230
|
-
|
231
|
-
RSpec/FactoryBot/SyntaxMethods: # new in 2.7
|
232
|
-
Enabled: true
|
233
|
-
|
234
|
-
RSpec/FilePath:
|
235
|
-
Enabled: false
|
236
|
-
|
237
|
-
RSpec/IdenticalEqualityAssertion: # (new in 2.4)
|
238
|
-
Enabled: true
|
239
|
-
|
240
97
|
RSpec/ImplicitSubject:
|
241
98
|
EnforcedStyle: 'single_statement_only'
|
242
99
|
|
243
100
|
RSpec/LetSetup:
|
244
101
|
Enabled: false
|
245
102
|
|
246
|
-
RSpec/Rails/AvoidSetupHook: # (new in 2.4)
|
247
|
-
Enabled: true
|
248
|
-
|
249
|
-
RSpec/Rails/HaveHttpStatus: # new in 2.12
|
250
|
-
Enabled: true
|
251
|
-
|
252
|
-
RSpec/SubjectDeclaration: # new in 2.5
|
253
|
-
Enabled: true
|
254
|
-
|
255
|
-
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
256
|
-
Enabled: true
|
257
|
-
|
258
|
-
Security/CompoundHash: # new in 1.28
|
259
|
-
Enabled: true
|
260
|
-
|
261
|
-
Security/IoMethods: # new in 1.22
|
262
|
-
Enabled: true
|
263
|
-
|
264
|
-
Style/ArgumentsForwarding: # (new in 1.1)
|
265
|
-
Enabled: true
|
266
|
-
|
267
|
-
Style/CollectionCompact: # (new in 1.2)
|
268
|
-
Enabled: true
|
269
|
-
|
270
103
|
Style/Documentation:
|
271
104
|
Exclude:
|
272
105
|
- 'db/migrate/**/*'
|
273
106
|
|
274
|
-
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
275
|
-
Enabled: true
|
276
|
-
|
277
|
-
Style/EmptyHeredoc: # new in 1.32
|
278
|
-
Enabled: true
|
279
|
-
|
280
|
-
Style/EndlessMethod: # (new in 1.8)
|
281
|
-
Enabled: true
|
282
|
-
|
283
|
-
Style/EnvHome: # new in 1.29
|
284
|
-
Enabled: true
|
285
|
-
|
286
|
-
Style/FetchEnvVar: # new in 1.28
|
287
|
-
Enabled: true
|
288
|
-
|
289
|
-
Style/FileRead: # new in 1.24
|
290
|
-
Enabled: true
|
291
|
-
|
292
|
-
Style/FileWrite: # new in 1.24
|
293
|
-
Enabled: true
|
294
|
-
|
295
107
|
Style/FormatStringToken:
|
296
108
|
Enabled: false # too many false positives in version 0.49.1; see e.g. https://github.com/bbatsov/rubocop/issues/4425
|
297
109
|
|
298
|
-
Style/HashConversion: # (new in 1.10)
|
299
|
-
Enabled: true
|
300
|
-
|
301
|
-
Style/HashExcept: # (new in 1.7)
|
302
|
-
Enabled: true
|
303
|
-
|
304
|
-
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
305
|
-
Enabled: true
|
306
|
-
|
307
|
-
Style/InPatternThen: # (new in 1.16)
|
308
|
-
Enabled: true
|
309
|
-
|
310
|
-
Style/MagicCommentFormat: # new in 1.35
|
311
|
-
Enabled: true
|
312
|
-
|
313
|
-
Style/MapCompactWithConditionalBlock: # new in 1.30
|
314
|
-
Enabled: true
|
315
|
-
|
316
|
-
Style/MapToHash: # new in 1.24
|
317
|
-
Enabled: true
|
318
|
-
|
319
|
-
Style/MultilineInPatternThen: # (new in 1.16)
|
320
|
-
Enabled: true
|
321
|
-
|
322
|
-
Style/NegatedIfElseCondition: # (new in 1.2)
|
323
|
-
Enabled: true
|
324
|
-
|
325
|
-
Style/NestedFileDirname: # new in 1.26
|
326
|
-
Enabled: true
|
327
|
-
|
328
|
-
Style/NilLambda: # (new in 1.3)
|
329
|
-
Enabled: true
|
330
|
-
|
331
|
-
Style/NumberedParameters: # new in 1.22
|
332
|
-
Enabled: true
|
333
|
-
|
334
|
-
Style/NumberedParametersLimit: # new in 1.22
|
335
|
-
Enabled: true
|
336
|
-
|
337
|
-
Style/ObjectThen: # new in 1.28
|
338
|
-
Enabled: true
|
339
|
-
|
340
|
-
Style/OpenStructUse: # new in 1.23
|
341
|
-
Enabled: true
|
342
|
-
|
343
|
-
Style/QuotedSymbols: # (new in 1.16)
|
344
|
-
Enabled: true
|
345
|
-
|
346
|
-
Style/RedundantArgument: # (new in 1.4)
|
347
|
-
Enabled: true
|
348
|
-
|
349
|
-
Style/RedundantInitialize: # new in 1.27
|
350
|
-
Enabled: true
|
351
|
-
|
352
|
-
Style/RedundantSelfAssignmentBranch: # (new in 1.19)
|
353
|
-
Enabled: true
|
354
|
-
|
355
110
|
Style/RescueStandardError:
|
356
111
|
Enabled: false
|
357
112
|
|
358
|
-
Style/SelectByRegexp: # new in 1.22
|
359
|
-
Enabled: true
|
360
|
-
|
361
113
|
Style/SignalException:
|
362
114
|
Enabled: false
|
363
115
|
|
364
116
|
Style/SoleNestedConditional:
|
365
117
|
AllowModifier: true
|
366
|
-
|
367
|
-
Style/StringChars: # (new in 1.12)
|
368
|
-
Enabled: true
|
369
|
-
|
370
|
-
Style/SwapValues: # (new in 1.1)
|
371
|
-
Enabled: true
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
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
|
@@ -8,8 +8,56 @@
|
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
11
|
-
# Configuration parameters: Include.
|
11
|
+
# Configuration parameters: Severity, Include.
|
12
12
|
# Include: **/*.gemspec
|
13
13
|
Gemspec/RequireMFA:
|
14
14
|
Exclude:
|
15
15
|
- 'paperclip-permanent_records.gemspec'
|
16
|
+
|
17
|
+
# Offense count: 4
|
18
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
19
|
+
# Prefixes: when, with, without
|
20
|
+
RSpec/ContextWording:
|
21
|
+
Exclude:
|
22
|
+
- 'spec/paperclip/permanent_records_spec.rb'
|
23
|
+
|
24
|
+
# Offense count: 2
|
25
|
+
# Configuration parameters: CountAsOne.
|
26
|
+
RSpec/ExampleLength:
|
27
|
+
Max: 6
|
28
|
+
|
29
|
+
# Offense count: 4
|
30
|
+
RSpec/MultipleExpectations:
|
31
|
+
Max: 4
|
32
|
+
|
33
|
+
# Offense count: 2
|
34
|
+
# Configuration parameters: AllowedGroups.
|
35
|
+
RSpec/NestedGroups:
|
36
|
+
Max: 4
|
37
|
+
|
38
|
+
# Offense count: 2
|
39
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
40
|
+
RSpec/ReceiveMessages:
|
41
|
+
Exclude:
|
42
|
+
- 'spec/paperclip/permanent_records_spec.rb'
|
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
|
+
|
50
|
+
# Offense count: 1
|
51
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
52
|
+
# Configuration parameters: .
|
53
|
+
# SupportedStyles: constant, string
|
54
|
+
RSpec/VerifiedDoubleReference:
|
55
|
+
EnforcedStyle: string
|
56
|
+
|
57
|
+
# Offense count: 3
|
58
|
+
# Configuration parameters: AllowedConstants.
|
59
|
+
Style/Documentation:
|
60
|
+
Exclude:
|
61
|
+
- 'lib/paperclip/permanent_records.rb'
|
62
|
+
- 'lib/paperclip/permanent_records/active_record.rb'
|
63
|
+
- 'lib/paperclip/permanent_records/paperclip_patch.rb'
|
data/Appraisals
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise '
|
4
|
-
gem 'rails', '~>
|
5
|
-
gem '
|
3
|
+
appraise 'rails_6.1' do
|
4
|
+
gem 'rails', '~> 6.1.0'
|
5
|
+
gem 'sqlite3', '~> 1.4'
|
6
6
|
end
|
7
7
|
|
8
|
-
appraise '
|
9
|
-
gem 'rails', '~>
|
10
|
-
gem '
|
8
|
+
appraise 'rails_7.0' do
|
9
|
+
gem 'rails', '~> 7.0.0'
|
10
|
+
gem 'sqlite3', '~> 1.4'
|
11
11
|
end
|
12
12
|
|
13
|
-
appraise '
|
14
|
-
gem 'rails', '~>
|
15
|
-
gem '
|
13
|
+
appraise 'rails_7.1' do
|
14
|
+
gem 'rails', '~> 7.1.0'
|
15
|
+
gem 'sqlite3', '~> 2.0'
|
16
16
|
end
|
17
17
|
|
18
|
-
appraise '
|
19
|
-
gem 'rails', '~>
|
20
|
-
gem '
|
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,3 +1,27 @@
|
|
1
|
+
# (unreleased)
|
2
|
+
|
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
|
11
|
+
|
12
|
+
# 0.7.1 (2024-04-04)
|
13
|
+
|
14
|
+
* (dev) Fix some requires
|
15
|
+
|
16
|
+
# 0.7.0 (not released)
|
17
|
+
|
18
|
+
* Add support for rails 6.0/6.1/7.0/7.1, ruby 3.0/3.1/3.2
|
19
|
+
* Drop support for kt-paperclip < 7.2
|
20
|
+
* Drop support for ruby < 2.7
|
21
|
+
* (dev) switch to GitHub Actions for CI tests
|
22
|
+
* (dev) add rake:release task
|
23
|
+
* (dev) update dev dependencies, fix rubocop config, fix rubocop warnings
|
24
|
+
|
1
25
|
# 0.6.0 (2022-09-02)
|
2
26
|
|
3
27
|
To upgrade to this version, remove any dependencies to paperclip from your project and switch to kt-paperclip (https://github.com/kreeti/kt-paperclip).
|
data/Gemfile
CHANGED
@@ -4,3 +4,14 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in paperclip-permanent_records.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'appraisal', '~> 2.5'
|
9
|
+
gem 'bundler', '~> 2.5'
|
10
|
+
gem 'rake', '>= 13.0'
|
11
|
+
gem 'rspec-rails', '~> 6.0'
|
12
|
+
gem 'rubocop', '>= 1.68'
|
13
|
+
gem 'rubocop-performance'
|
14
|
+
gem 'rubocop-rake'
|
15
|
+
gem 'rubocop-rspec'
|
16
|
+
gem 'rubocop-rspec_rails'
|
17
|
+
gem 'sqlite3'
|
data/README.md
CHANGED
@@ -9,11 +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
|
-
*
|
14
|
-
*
|
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
|
14
|
+
* tested with permanent_records 6.0.0
|
15
|
+
* previous versions of ruby/rails/paperclip: please check version 0.7.x of this gem
|
15
16
|
|
16
|
-
Please see `.
|
17
|
+
Please see `.github/workflows/lint_and_test.yml` and `Appraisals` for what combinations have actually been tested. Usage with other versions
|
17
18
|
might cause data loss.
|
18
19
|
|
19
20
|
## Installation
|
@@ -51,11 +52,24 @@ This gem does basically two things:
|
|
51
52
|
|
52
53
|
Code style: Please use rubocop before you commit (`bundle exec rubocop`) and fix any warnings.
|
53
54
|
|
54
|
-
|
55
|
-
Use `bundle exec appraisal generate` to generate the gemfiles if you change them in `Appraisals` and `.travis.yml`.
|
55
|
+
Use `bundle exec appraisal generate` to generate the gemfiles if you change them in `Appraisals` and `.github/workflows/lint_and_test.yml`.
|
56
56
|
|
57
|
-
|
57
|
+
### Running tests
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
To setup tests, make sure all the ruby versions defined in `.github/workflows/lint_and_test.yml` are installed on your system.
|
60
|
+
|
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:
|
62
|
+
|
63
|
+
```
|
64
|
+
RBENV_VERSION=3.0.6 bundle exec appraisal rspec
|
65
|
+
```
|
66
|
+
|
67
|
+
## Install and release
|
68
|
+
|
69
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
70
|
+
|
71
|
+
* Prepare:
|
72
|
+
* update `CHANGELOG.md` documentation
|
73
|
+
* update the version number in `lib/paperclip/permanent_records/version.rb`
|
74
|
+
* Release
|
75
|
+
* run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to rubygems.org
|
data/Rakefile
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'bundler/setup'
|
4
|
-
|
4
|
+
|
5
|
+
require 'bundler/gem_helper'
|
6
|
+
require 'paperclip/permanent_records/gem_helper'
|
7
|
+
Bundler::GemHelper.prepend(Paperclip::PermanentRecords::GemHelper)
|
8
|
+
require 'bundler/gem_tasks'
|
9
|
+
|
5
10
|
require 'appraisal'
|
6
11
|
require 'rspec/core/rake_task'
|
7
|
-
require 'wwtd/tasks'
|
8
12
|
|
9
13
|
desc 'Default: run all tests with all supported versions'
|
10
14
|
task default: :all
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal", "~> 2.5"
|
6
|
+
gem "bundler", "~> 2.5"
|
7
|
+
gem "rake", ">= 13.0"
|
8
|
+
gem "rspec-rails", "~> 6.0"
|
9
|
+
gem "rubocop", ">= 1.68"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
15
|
+
gem "rails", "~> 6.1.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal", "~> 2.5"
|
6
|
+
gem "bundler", "~> 2.5"
|
7
|
+
gem "rake", ">= 13.0"
|
8
|
+
gem "rspec-rails", "~> 6.0"
|
9
|
+
gem "rubocop", ">= 1.68"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 1.4"
|
15
|
+
gem "rails", "~> 7.0.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal", "~> 2.5"
|
6
|
+
gem "bundler", "~> 2.5"
|
7
|
+
gem "rake", ">= 13.0"
|
8
|
+
gem "rspec-rails", "~> 6.0"
|
9
|
+
gem "rubocop", ">= 1.68"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.1.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal", "~> 2.5"
|
6
|
+
gem "bundler", "~> 2.5"
|
7
|
+
gem "rake", ">= 13.0"
|
8
|
+
gem "rspec-rails", "~> 6.0"
|
9
|
+
gem "rubocop", ">= 1.68"
|
10
|
+
gem "rubocop-performance"
|
11
|
+
gem "rubocop-rake"
|
12
|
+
gem "rubocop-rspec"
|
13
|
+
gem "rubocop-rspec_rails"
|
14
|
+
gem "sqlite3", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.2.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Paperclip
|
2
4
|
module PermanentRecords
|
3
5
|
module ActiveRecord
|
@@ -10,7 +12,7 @@ module Paperclip
|
|
10
12
|
schedule_attachments_for_deletion # => delete the attachments
|
11
13
|
end
|
12
14
|
|
13
|
-
super
|
15
|
+
super
|
14
16
|
end
|
15
17
|
|
16
18
|
private
|
@@ -1,22 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Paperclip
|
2
4
|
module PermanentRecords
|
3
|
-
#
|
4
|
-
# (
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
task 'build' do
|
10
|
-
built_gem_path = build_gem
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Build and install #{name}-#{version}.gem into system gems."
|
14
|
-
task 'install' => 'build' do
|
15
|
-
install_gem(built_gem_path)
|
16
|
-
end
|
17
|
-
|
18
|
-
GemHelper.instance = self
|
19
|
-
end
|
5
|
+
# Patches Bundler::GemHelper to change version tagging without the "v" Prefix, just the plain version
|
6
|
+
# (also ignores any GemHelper.tag_prefix if you would set it!).
|
7
|
+
#
|
8
|
+
# Based on bundler v2.5.23
|
9
|
+
module GemHelper
|
10
|
+
protected
|
20
11
|
|
21
12
|
def version_tag
|
22
13
|
version.to_s
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'paperclip/permanent_records/version'
|
2
4
|
|
3
5
|
require 'paperclip'
|
@@ -7,7 +9,7 @@ require 'paperclip/permanent_records/active_record'
|
|
7
9
|
module Paperclip
|
8
10
|
module PermanentRecords
|
9
11
|
ActiveSupport.on_load(:active_record) do
|
10
|
-
::ActiveRecord::Base.
|
12
|
+
::ActiveRecord::Base.include Paperclip::PermanentRecords::ActiveRecord
|
11
13
|
end
|
12
14
|
|
13
15
|
require 'paperclip/permanent_records/paperclip_patch'
|
@@ -11,27 +11,16 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ['herold@emjot.de']
|
12
12
|
spec.summary = 'Make paperclip attachments work with permanent_records'
|
13
13
|
spec.description = 'Make paperclip attachments work with permanent_records'
|
14
|
-
spec.homepage = ''
|
14
|
+
spec.homepage = 'https://github.com/emjot/paperclip-permanent_records'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
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 = '>=
|
21
|
+
spec.required_ruby_version = '>= 3.0'
|
22
22
|
|
23
|
-
spec.add_dependency 'activerecord', '>=
|
24
|
-
spec.add_dependency 'kt-paperclip', ['>=
|
25
|
-
spec.add_dependency 'permanent_records', '>=
|
26
|
-
|
27
|
-
spec.add_development_dependency 'appraisal', '~> 2.2'
|
28
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
|
-
spec.add_development_dependency 'rake', '>= 10.0'
|
30
|
-
spec.add_development_dependency 'rspec-rails', '~> 5.0'
|
31
|
-
spec.add_development_dependency 'rubocop'
|
32
|
-
spec.add_development_dependency 'rubocop-performance'
|
33
|
-
spec.add_development_dependency 'rubocop-rake'
|
34
|
-
spec.add_development_dependency 'rubocop-rspec'
|
35
|
-
spec.add_development_dependency 'sqlite3'
|
36
|
-
spec.add_development_dependency 'wwtd', '~> 1.3'
|
23
|
+
spec.add_dependency 'activerecord', '>= 6.1'
|
24
|
+
spec.add_dependency 'kt-paperclip', ['>= 7.2', '< 8']
|
25
|
+
spec.add_dependency 'permanent_records', '>= 6.0'
|
37
26
|
end
|
data/spec/data/models.rb
CHANGED
data/spec/data/schema.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
RSpec.describe Paperclip::PermanentRecords do
|
@@ -32,23 +34,23 @@ RSpec.describe Paperclip::PermanentRecords do
|
|
32
34
|
it "keeps the attachments' files" do
|
33
35
|
model.destroy
|
34
36
|
expect(model).to be_image
|
35
|
-
expect(File).to
|
37
|
+
expect(File).to exist(file_path)
|
36
38
|
|
37
39
|
# should still be okay even after saving again
|
38
40
|
model.save!
|
39
41
|
expect(model).to be_image
|
40
|
-
expect(File).to
|
42
|
+
expect(File).to exist(file_path)
|
41
43
|
end
|
42
44
|
|
43
45
|
it "keeps the attachments' files after revive" do
|
44
46
|
model.destroy.revive
|
45
47
|
expect(model).to be_image
|
46
|
-
expect(File).to
|
48
|
+
expect(File).to exist(file_path)
|
47
49
|
|
48
50
|
# should still be okay even after saving again
|
49
51
|
model.save!
|
50
52
|
expect(model).to be_image
|
51
|
-
expect(File).to
|
53
|
+
expect(File).to exist(file_path)
|
52
54
|
end
|
53
55
|
|
54
56
|
context 'with :force option' do
|
@@ -59,7 +61,7 @@ RSpec.describe Paperclip::PermanentRecords do
|
|
59
61
|
it "deletes the attachments' files" do
|
60
62
|
model.destroy(:force)
|
61
63
|
expect(model).not_to be_image
|
62
|
-
expect(File).not_to
|
64
|
+
expect(File).not_to exist(file_path)
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
@@ -93,7 +95,7 @@ RSpec.describe Paperclip::PermanentRecords do
|
|
93
95
|
it "deletes the attachments' files" do
|
94
96
|
model.destroy
|
95
97
|
expect(model).not_to be_image
|
96
|
-
expect(File).not_to
|
98
|
+
expect(File).not_to exist(file_path)
|
97
99
|
end
|
98
100
|
end
|
99
101
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
2
4
|
require 'pathname'
|
3
5
|
require 'fileutils'
|
4
6
|
|
@@ -26,7 +28,7 @@ RSpec.configure do |config|
|
|
26
28
|
Kernel.srand config.seed
|
27
29
|
|
28
30
|
config.after(:suite) do
|
29
|
-
FileUtils.rm_rf TEST_ASSETS_PATH
|
31
|
+
FileUtils.rm_rf TEST_ASSETS_PATH
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
@@ -34,22 +36,21 @@ require 'active_record'
|
|
34
36
|
require 'active_support'
|
35
37
|
require 'paperclip/permanent_records'
|
36
38
|
|
37
|
-
ActiveRecord::Base.
|
39
|
+
ActiveRecord::Base.include Paperclip::Glue
|
38
40
|
|
39
41
|
Paperclip.interpolates(:test_env_number) do |_, _|
|
40
42
|
ENV['TEST_ENV_NUMBER'].presence || '0'
|
41
43
|
end
|
42
44
|
|
43
45
|
# set up models
|
44
|
-
require 'fileutils'
|
45
46
|
require 'logger'
|
46
47
|
tmpdir = File.join(File.dirname(__FILE__), '../tmp')
|
47
|
-
FileUtils.
|
48
|
+
FileUtils.mkdir_p(tmpdir)
|
48
49
|
log = File.expand_path(File.join(tmpdir, 'permanent_records_test.log'))
|
49
50
|
FileUtils.touch(log) unless File.exist?(log)
|
50
51
|
ActiveRecord::Base.logger = Logger.new(log)
|
51
52
|
ActiveRecord::LogSubscriber.attach_to(:active_record)
|
52
53
|
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
|
53
|
-
require File.expand_path('
|
54
|
-
require File.expand_path('
|
54
|
+
require File.expand_path('data/schema', __dir__)
|
55
|
+
require File.expand_path('data/models', __dir__)
|
55
56
|
I18n.locale = I18n.default_locale = :en
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximilian Herold
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,21 +16,21 @@ 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
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '7.2'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '8'
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: '7.2'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '8'
|
@@ -50,154 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '6.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: appraisal
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '2.2'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '2.2'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: bundler
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '2.0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: rake
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '10.0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '10.0'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rspec-rails
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '5.0'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '5.0'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: rubocop
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '0'
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: rubocop-performance
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - ">="
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: rubocop-rake
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - ">="
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - ">="
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0'
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: rubocop-rspec
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - ">="
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - ">="
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '0'
|
173
|
-
- !ruby/object:Gem::Dependency
|
174
|
-
name: sqlite3
|
175
|
-
requirement: !ruby/object:Gem::Requirement
|
176
|
-
requirements:
|
177
|
-
- - ">="
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: '0'
|
180
|
-
type: :development
|
181
|
-
prerelease: false
|
182
|
-
version_requirements: !ruby/object:Gem::Requirement
|
183
|
-
requirements:
|
184
|
-
- - ">="
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: '0'
|
187
|
-
- !ruby/object:Gem::Dependency
|
188
|
-
name: wwtd
|
189
|
-
requirement: !ruby/object:Gem::Requirement
|
190
|
-
requirements:
|
191
|
-
- - "~>"
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
version: '1.3'
|
194
|
-
type: :development
|
195
|
-
prerelease: false
|
196
|
-
version_requirements: !ruby/object:Gem::Requirement
|
197
|
-
requirements:
|
198
|
-
- - "~>"
|
199
|
-
- !ruby/object:Gem::Version
|
200
|
-
version: '1.3'
|
60
|
+
version: '6.0'
|
201
61
|
description: Make paperclip attachments work with permanent_records
|
202
62
|
email:
|
203
63
|
- herold@emjot.de
|
@@ -206,25 +66,25 @@ extensions: []
|
|
206
66
|
extra_rdoc_files: []
|
207
67
|
files:
|
208
68
|
- ".editorconfig"
|
69
|
+
- ".github/dependabot.yml"
|
70
|
+
- ".github/workflows/lint_and_test.yml"
|
209
71
|
- ".gitignore"
|
210
72
|
- ".rspec"
|
211
73
|
- ".rubocop.yml"
|
212
74
|
- ".rubocop_todo.yml"
|
213
|
-
- ".travis.yml"
|
214
75
|
- Appraisals
|
215
76
|
- CHANGELOG.md
|
216
77
|
- Gemfile
|
217
78
|
- LICENSE.txt
|
218
79
|
- README.md
|
219
80
|
- Rakefile
|
220
|
-
- gemfiles/
|
221
|
-
- gemfiles/
|
222
|
-
- gemfiles/
|
223
|
-
- gemfiles/
|
81
|
+
- gemfiles/rails_6.1.gemfile
|
82
|
+
- gemfiles/rails_7.0.gemfile
|
83
|
+
- gemfiles/rails_7.1.gemfile
|
84
|
+
- gemfiles/rails_7.2.gemfile
|
224
85
|
- lib/paperclip/permanent_records.rb
|
225
86
|
- lib/paperclip/permanent_records/active_record.rb
|
226
87
|
- lib/paperclip/permanent_records/gem_helper.rb
|
227
|
-
- lib/paperclip/permanent_records/gem_tasks.rb
|
228
88
|
- lib/paperclip/permanent_records/paperclip_patch.rb
|
229
89
|
- lib/paperclip/permanent_records/version.rb
|
230
90
|
- paperclip-permanent_records.gemspec
|
@@ -233,7 +93,7 @@ files:
|
|
233
93
|
- spec/data/test.png
|
234
94
|
- spec/paperclip/permanent_records_spec.rb
|
235
95
|
- spec/spec_helper.rb
|
236
|
-
homepage:
|
96
|
+
homepage: https://github.com/emjot/paperclip-permanent_records
|
237
97
|
licenses:
|
238
98
|
- MIT
|
239
99
|
metadata: {}
|
@@ -245,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
245
105
|
requirements:
|
246
106
|
- - ">="
|
247
107
|
- !ruby/object:Gem::Version
|
248
|
-
version: '
|
108
|
+
version: '3.0'
|
249
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
110
|
requirements:
|
251
111
|
- - ">="
|
252
112
|
- !ruby/object:Gem::Version
|
253
113
|
version: '0'
|
254
114
|
requirements: []
|
255
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.2.33
|
256
116
|
signing_key:
|
257
117
|
specification_version: 4
|
258
118
|
summary: Make paperclip attachments work with permanent_records
|
data/.travis.yml
DELETED