kt-paperclip 6.2.0 → 6.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +3 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  4. data/.github/ISSUE_TEMPLATE/custom.md +10 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.hound.yml +364 -357
  7. data/.rubocop.yml +2 -0
  8. data/.travis.yml +7 -9
  9. data/Gemfile +3 -2
  10. data/README.md +38 -17
  11. data/lib/kt-paperclip.rb +1 -0
  12. data/lib/paperclip.rb +2 -1
  13. data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +2 -2
  14. data/lib/paperclip/io_adapters/uri_adapter.rb +13 -3
  15. data/lib/paperclip/schema.rb +2 -2
  16. data/lib/paperclip/storage/s3.rb +2 -2
  17. data/lib/paperclip/url_generator.rb +8 -1
  18. data/lib/paperclip/validators.rb +4 -4
  19. data/lib/paperclip/validators/attachment_content_type_validator.rb +8 -1
  20. data/lib/paperclip/validators/attachment_file_name_validator.rb +8 -1
  21. data/lib/paperclip/validators/attachment_size_validator.rb +17 -1
  22. data/lib/paperclip/version.rb +1 -1
  23. data/paperclip.gemspec +3 -3
  24. data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +20 -15
  25. data/spec/paperclip/io_adapters/uri_adapter_spec.rb +13 -3
  26. data/spec/paperclip/storage/s3_spec.rb +54 -3
  27. data/spec/paperclip/url_generator_spec.rb +10 -0
  28. data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +88 -0
  29. data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +90 -0
  30. data/spec/paperclip/validators/attachment_size_validator_spec.rb +90 -0
  31. data/spec/support/fixtures/aws_s3.yml +13 -0
  32. data/spec/support/model_reconstruction.rb +1 -1
  33. metadata +14 -9
  34. data/.github/issue_template.md +0 -3
@@ -0,0 +1,13 @@
1
+ default: &default
2
+ acl: public-read
3
+ development:
4
+ <<: *default
5
+ key: 54321
6
+ production:
7
+ <<: *default
8
+ key: 12345
9
+ test:
10
+ <<: *default
11
+ bucket: <%= ENV['S3_BUCKET'] %>
12
+ access_key_id: <%= ENV['S3_KEY'] %>
13
+ secret_access_key: <%= ENV['S3_SECRET'] %>
@@ -28,7 +28,7 @@ module ModelReconstruction
28
28
 
29
29
  def reset_table(_table_name, &block)
30
30
  block ||= lambda { |_table| true }
31
- ActiveRecord::Base.connection.create_table :dummies, { force: true }, &block
31
+ ActiveRecord::Base.connection.create_table :dummies, **{ force: true }, &block
32
32
  end
33
33
 
34
34
  def modify_table(&block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kt-paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surendra Singhi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-22 00:00:00.000000000 Z
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: cucumber-expressions
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 4.0.3
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 4.0.3
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: cucumber-rails
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -354,7 +354,10 @@ extensions: []
354
354
  extra_rdoc_files: []
355
355
  files:
356
356
  - ".codeclimate.yml"
357
- - ".github/issue_template.md"
357
+ - ".github/FUNDING.yml"
358
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
359
+ - ".github/ISSUE_TEMPLATE/custom.md"
360
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
358
361
  - ".gitignore"
359
362
  - ".hound.yml"
360
363
  - ".rubocop.yml"
@@ -393,6 +396,7 @@ files:
393
396
  - lib/generators/paperclip/USAGE
394
397
  - lib/generators/paperclip/paperclip_generator.rb
395
398
  - lib/generators/paperclip/templates/paperclip_migration.rb.erb
399
+ - lib/kt-paperclip.rb
396
400
  - lib/paperclip.rb
397
401
  - lib/paperclip/attachment.rb
398
402
  - lib/paperclip/attachment_registry.rb
@@ -521,6 +525,7 @@ files:
521
525
  - spec/support/fixtures/animated
522
526
  - spec/support/fixtures/animated.gif
523
527
  - spec/support/fixtures/animated.unknown
528
+ - spec/support/fixtures/aws_s3.yml
524
529
  - spec/support/fixtures/bad.png
525
530
  - spec/support/fixtures/empty.html
526
531
  - spec/support/fixtures/empty.xlsx
@@ -542,7 +547,7 @@ files:
542
547
  - spec/support/reporting.rb
543
548
  - spec/support/test_data.rb
544
549
  - spec/support/version_helper.rb
545
- homepage: https://github.com/kreeti/paperclip
550
+ homepage: https://github.com/kreeti/kt-paperclip
546
551
  licenses:
547
552
  - MIT
548
553
  metadata: {}
@@ -571,7 +576,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
571
576
  requirements:
572
577
  - - ">="
573
578
  - !ruby/object:Gem::Version
574
- version: 2.1.0
579
+ version: 2.2.0
575
580
  required_rubygems_version: !ruby/object:Gem::Requirement
576
581
  requirements:
577
582
  - - ">="
@@ -1,3 +0,0 @@
1
- ## Deprecation notice
2
-
3
- Paperclip is currently undergoing [deprecation in favor of ActiveStorage](https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md). Maintainers of this repository will no longer be tending to new issues. We're leaving the issues page open so Paperclip users can still see & search through old issues, and continue existing discussions if they wish.