kt-paperclip 6.2.0 → 6.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) 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/io_adapters/http_url_proxy_adapter.rb +2 -2
  13. data/lib/paperclip/io_adapters/uri_adapter.rb +13 -3
  14. data/lib/paperclip/schema.rb +2 -2
  15. data/lib/paperclip/storage/s3.rb +2 -2
  16. data/lib/paperclip/url_generator.rb +8 -1
  17. data/lib/paperclip/validators/attachment_content_type_validator.rb +9 -2
  18. data/lib/paperclip/validators/attachment_file_name_validator.rb +9 -2
  19. data/lib/paperclip/validators/attachment_presence_validator.rb +1 -1
  20. data/lib/paperclip/validators/attachment_size_validator.rb +18 -2
  21. data/lib/paperclip/validators.rb +4 -4
  22. data/lib/paperclip/version.rb +1 -1
  23. data/lib/paperclip.rb +2 -1
  24. data/paperclip.gemspec +3 -3
  25. data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +20 -15
  26. data/spec/paperclip/io_adapters/uri_adapter_spec.rb +13 -3
  27. data/spec/paperclip/storage/s3_spec.rb +54 -3
  28. data/spec/paperclip/url_generator_spec.rb +10 -0
  29. data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +88 -0
  30. data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +90 -0
  31. data/spec/paperclip/validators/attachment_size_validator_spec.rb +90 -0
  32. data/spec/support/fixtures/aws_s3.yml +13 -0
  33. data/spec/support/model_reconstruction.rb +1 -1
  34. metadata +15 -10
  35. 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: 7cff96583dd89dcd0254140d27f4b8043137acd917c804d7710367d719342119
4
+ data.tar.gz: 27c6a63b58e72a52ec6ea87e82267d0a3ddb87815333295618d8d179c5c52d45
5
5
  SHA512:
6
- metadata.gz: 5f9cb2f295d4f60c65accf057f3c19de3e675abda8c2c339005cca5683b2706e00995b014570de1d9d96f51c2cbd41f26a6a654acef4b3104e3cf0c6707b6d18
7
- data.tar.gz: 0de4285c8b1c029650f662d3556e0d04cf92c01c9b3854423f85a3f2b7bcad3c7a9beb8530059cbbde3d7a518b9cb823be5256b006365f9c527d82cf50d71e3c
6
+ metadata.gz: c37f46113c6c74e4e862b287174873f58d467adcfaee18766738c87eaa1757deac8363810883b3b0ae604d4cfa8b1223ec7edbe3af9687972c7ba53cc62578ab
7
+ data.tar.gz: 8cc931814748df871550746bb8798cc06bc018285659f4ddf07632d24d72fa374f867b840a7aa776da957821755cbe869a130abd77ce75636b71a6f5a9df14ed
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ssinghi, shalinibhawsingka-kreeti]
@@ -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.