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.
- checksums.yaml +4 -4
- data/README.md +14 -13
- data/doc/attacher.md +7 -6
- data/doc/carrierwave.md +19 -17
- data/doc/design.md +1 -1
- data/doc/direct_s3.md +8 -5
- data/doc/multiple_files.md +4 -4
- data/doc/paperclip.md +7 -6
- data/doc/refile.md +67 -4
- data/doc/securing_uploads.md +41 -25
- data/doc/testing.md +6 -15
- data/lib/shrine.rb +19 -10
- data/lib/shrine/plugins/activerecord.rb +4 -4
- data/lib/shrine/plugins/add_metadata.rb +7 -3
- data/lib/shrine/plugins/background_helpers.rb +1 -1
- data/lib/shrine/plugins/backgrounding.rb +19 -6
- data/lib/shrine/plugins/cached_attachment_data.rb +4 -4
- data/lib/shrine/plugins/data_uri.rb +105 -31
- data/lib/shrine/plugins/default_url.rb +1 -1
- data/lib/shrine/plugins/delete_raw.rb +7 -3
- data/lib/shrine/plugins/determine_mime_type.rb +96 -44
- data/lib/shrine/plugins/direct_upload.rb +3 -1
- data/lib/shrine/plugins/download_endpoint.rb +14 -5
- data/lib/shrine/plugins/logging.rb +4 -4
- data/lib/shrine/plugins/metadata_attributes.rb +61 -0
- data/lib/shrine/plugins/migration_helpers.rb +1 -1
- data/lib/shrine/plugins/rack_file.rb +54 -30
- data/lib/shrine/plugins/recache.rb +1 -1
- data/lib/shrine/plugins/refresh_metadata.rb +29 -0
- data/lib/shrine/plugins/remote_url.rb +26 -4
- data/lib/shrine/plugins/remove_invalid.rb +5 -4
- data/lib/shrine/plugins/restore_cached_data.rb +10 -13
- data/lib/shrine/plugins/sequel.rb +4 -4
- data/lib/shrine/plugins/signature.rb +146 -0
- data/lib/shrine/plugins/store_dimensions.rb +68 -24
- data/lib/shrine/plugins/validation_helpers.rb +48 -29
- data/lib/shrine/plugins/versions.rb +16 -8
- data/lib/shrine/storage/file_system.rb +27 -16
- data/lib/shrine/storage/s3.rb +99 -58
- data/lib/shrine/version.rb +1 -1
- data/shrine.gemspec +1 -1
- metadata +9 -6
data/lib/shrine/version.rb
CHANGED
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"
|
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.
|
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:
|
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:
|
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:
|
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
|