shrine 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of shrine might be problematic. Click here for more details.

Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -13
  3. data/doc/attacher.md +7 -6
  4. data/doc/carrierwave.md +19 -17
  5. data/doc/design.md +1 -1
  6. data/doc/direct_s3.md +8 -5
  7. data/doc/multiple_files.md +4 -4
  8. data/doc/paperclip.md +7 -6
  9. data/doc/refile.md +67 -4
  10. data/doc/securing_uploads.md +41 -25
  11. data/doc/testing.md +6 -15
  12. data/lib/shrine.rb +19 -10
  13. data/lib/shrine/plugins/activerecord.rb +4 -4
  14. data/lib/shrine/plugins/add_metadata.rb +7 -3
  15. data/lib/shrine/plugins/background_helpers.rb +1 -1
  16. data/lib/shrine/plugins/backgrounding.rb +19 -6
  17. data/lib/shrine/plugins/cached_attachment_data.rb +4 -4
  18. data/lib/shrine/plugins/data_uri.rb +105 -31
  19. data/lib/shrine/plugins/default_url.rb +1 -1
  20. data/lib/shrine/plugins/delete_raw.rb +7 -3
  21. data/lib/shrine/plugins/determine_mime_type.rb +96 -44
  22. data/lib/shrine/plugins/direct_upload.rb +3 -1
  23. data/lib/shrine/plugins/download_endpoint.rb +14 -5
  24. data/lib/shrine/plugins/logging.rb +4 -4
  25. data/lib/shrine/plugins/metadata_attributes.rb +61 -0
  26. data/lib/shrine/plugins/migration_helpers.rb +1 -1
  27. data/lib/shrine/plugins/rack_file.rb +54 -30
  28. data/lib/shrine/plugins/recache.rb +1 -1
  29. data/lib/shrine/plugins/refresh_metadata.rb +29 -0
  30. data/lib/shrine/plugins/remote_url.rb +26 -4
  31. data/lib/shrine/plugins/remove_invalid.rb +5 -4
  32. data/lib/shrine/plugins/restore_cached_data.rb +10 -13
  33. data/lib/shrine/plugins/sequel.rb +4 -4
  34. data/lib/shrine/plugins/signature.rb +146 -0
  35. data/lib/shrine/plugins/store_dimensions.rb +68 -24
  36. data/lib/shrine/plugins/validation_helpers.rb +48 -29
  37. data/lib/shrine/plugins/versions.rb +16 -8
  38. data/lib/shrine/storage/file_system.rb +27 -16
  39. data/lib/shrine/storage/s3.rb +99 -58
  40. data/lib/shrine/version.rb +1 -1
  41. data/shrine.gemspec +1 -1
  42. metadata +9 -6
@@ -5,7 +5,7 @@ class Shrine
5
5
 
6
6
  module VERSION
7
7
  MAJOR = 2
8
- MINOR = 5
8
+ MINOR = 6
9
9
  TINY = 0
10
10
  PRE = nil
11
11
 
data/shrine.gemspec CHANGED
@@ -38,7 +38,7 @@ direct uploads for fully asynchronous user experience.
38
38
  gem.add_development_dependency "shrine-memory", ">= 0.2.2"
39
39
 
40
40
  gem.add_development_dependency "roda"
41
- gem.add_development_dependency "rack", "~> 1.6.4"
41
+ gem.add_development_dependency "rack"
42
42
  gem.add_development_dependency "mimemagic"
43
43
  gem.add_development_dependency "mime-types"
44
44
  gem.add_development_dependency "fastimage"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down
@@ -154,16 +154,16 @@ dependencies:
154
154
  name: rack
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 1.6.4
159
+ version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 1.6.4
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: mimemagic
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -329,6 +329,7 @@ files:
329
329
  - lib/shrine/plugins/included.rb
330
330
  - lib/shrine/plugins/keep_files.rb
331
331
  - lib/shrine/plugins/logging.rb
332
+ - lib/shrine/plugins/metadata_attributes.rb
332
333
  - lib/shrine/plugins/migration_helpers.rb
333
334
  - lib/shrine/plugins/module_include.rb
334
335
  - lib/shrine/plugins/moving.rb
@@ -339,11 +340,13 @@ files:
339
340
  - lib/shrine/plugins/processing.rb
340
341
  - lib/shrine/plugins/rack_file.rb
341
342
  - lib/shrine/plugins/recache.rb
343
+ - lib/shrine/plugins/refresh_metadata.rb
342
344
  - lib/shrine/plugins/remote_url.rb
343
345
  - lib/shrine/plugins/remove_attachment.rb
344
346
  - lib/shrine/plugins/remove_invalid.rb
345
347
  - lib/shrine/plugins/restore_cached_data.rb
346
348
  - lib/shrine/plugins/sequel.rb
349
+ - lib/shrine/plugins/signature.rb
347
350
  - lib/shrine/plugins/store_dimensions.rb
348
351
  - lib/shrine/plugins/upload_options.rb
349
352
  - lib/shrine/plugins/validation_helpers.rb