kt-paperclip 6.2.0 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) 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 +3 -1050
  7. data/.rubocop.yml +1061 -1
  8. data/.travis.yml +12 -14
  9. data/Appraisals +6 -0
  10. data/CONTRIBUTING.md +4 -5
  11. data/Gemfile +5 -4
  12. data/NEWS +31 -0
  13. data/README.md +41 -19
  14. data/features/step_definitions/attachment_steps.rb +11 -1
  15. data/gemfiles/4.2.gemfile +1 -1
  16. data/gemfiles/5.0.gemfile +1 -1
  17. data/gemfiles/5.1.gemfile +1 -1
  18. data/gemfiles/5.2.gemfile +1 -1
  19. data/gemfiles/6.0.gemfile +1 -1
  20. data/gemfiles/6.1.gemfile +21 -0
  21. data/gemfiles/7.0.gemfile +21 -0
  22. data/lib/kt-paperclip.rb +1 -0
  23. data/lib/paperclip/attachment.rb +1 -1
  24. data/lib/paperclip/content_type_detector.rb +10 -5
  25. data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +2 -2
  26. data/lib/paperclip/io_adapters/uri_adapter.rb +13 -3
  27. data/lib/paperclip/schema.rb +2 -2
  28. data/lib/paperclip/storage/filesystem.rb +1 -1
  29. data/lib/paperclip/storage/fog.rb +1 -1
  30. data/lib/paperclip/storage/s3.rb +3 -3
  31. data/lib/paperclip/url_generator.rb +8 -1
  32. data/lib/paperclip/validators/attachment_content_type_validator.rb +9 -2
  33. data/lib/paperclip/validators/attachment_file_name_validator.rb +10 -3
  34. data/lib/paperclip/validators/attachment_presence_validator.rb +1 -1
  35. data/lib/paperclip/validators/attachment_size_validator.rb +21 -4
  36. data/lib/paperclip/validators.rb +4 -4
  37. data/lib/paperclip/version.rb +1 -1
  38. data/lib/paperclip.rb +3 -3
  39. data/paperclip.gemspec +4 -4
  40. data/spec/paperclip/content_type_detector_spec.rb +7 -0
  41. data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +1 -1
  42. data/spec/paperclip/io_adapters/file_adapter_spec.rb +1 -1
  43. data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +20 -15
  44. data/spec/paperclip/io_adapters/uri_adapter_spec.rb +13 -3
  45. data/spec/paperclip/storage/filesystem_spec.rb +23 -0
  46. data/spec/paperclip/storage/fog_spec.rb +46 -0
  47. data/spec/paperclip/storage/s3_spec.rb +67 -3
  48. data/spec/paperclip/url_generator_spec.rb +10 -0
  49. data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +88 -0
  50. data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +90 -0
  51. data/spec/paperclip/validators/attachment_size_validator_spec.rb +90 -0
  52. data/spec/paperclip/validators_spec.rb +21 -6
  53. data/spec/support/fixtures/aws_s3.yml +13 -0
  54. data/spec/support/fixtures/sample.xlsm +0 -0
  55. data/spec/support/model_reconstruction.rb +1 -1
  56. metadata +20 -12
  57. data/.github/issue_template.md +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc344d5ddaca988988e3be2fa011830636f2112928511008ac581495eb5ddfb9
4
- data.tar.gz: e50691209dcecbc2ee0bcaaa58c222b77085e0e70a5c56c803c938abbf6b1f3a
3
+ metadata.gz: 669710c8c7ce2b2bc967e6e4896e8baf9bf3ed5c091dc793eff8c906152b188a
4
+ data.tar.gz: a8af06de8724aaf50001704dfb4a58acfc69e68a579054c0d047562cca4acdff
5
5
  SHA512:
6
- metadata.gz: 5f9cb2f295d4f60c65accf057f3c19de3e675abda8c2c339005cca5683b2706e00995b014570de1d9d96f51c2cbd41f26a6a654acef4b3104e3cf0c6707b6d18
7
- data.tar.gz: 0de4285c8b1c029650f662d3556e0d04cf92c01c9b3854423f85a3f2b7bcad3c7a9beb8530059cbbde3d7a518b9cb823be5256b006365f9c527d82cf50d71e3c
6
+ metadata.gz: 688c24cb640ae5b6fdc0f8db3bca0a67f86e033a3920c9eb68d63fd8526a54562ccc70188cbb7daf65c01338ddc6f096144dc4f33fb979412bdd48415051dff5
7
+ data.tar.gz: 5476e60a4d1b00139b12f69ca076094f6ea69ad2e8050552dc4695fdfeaca158c89fe496c1c484ed828ee67c3946cdbac1c50e550a6490f239aa35621d11ede9
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ssinghi, sbhawsingka]
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Custom issue template
3
+ about: Describe this issue template's purpose here.
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.