shrine 2.19.2 → 2.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/shrine/plugins/store_dimensions.rb +1 -1
- data/lib/shrine/storage/file_system.rb +1 -3
- data/lib/shrine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99e4ea3761b89408df6d525c55c66510421f6cb713761dff88d14d54732eb10d
|
|
4
|
+
data.tar.gz: 05f6b81ebf3b9e1ebd54a13643499a987313d412d3303c5cbb20b6fc2511b814
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f944cfde3fb58534751c4ffa0aec65f2e7a408270be565147e8507f307cd941b121dcc11e8c73fd808c7153adcbc0798cd47816ac3e3f75fc11a23124941792
|
|
7
|
+
data.tar.gz: b58fde34e83b46a0b440948cfe0c3c916cd7f1f77008e75dc5f40b1d460c1b665ce5fe27e629026f03402f9661da615efd1a4c7ecd45abb378f68efe58bfb016
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
## 2.19.
|
|
1
|
+
## 2.19.3 (2019-08-09)
|
|
2
|
+
|
|
3
|
+
* `store_dimensions` – Ignore dimensions extraction errors by default (@janko)
|
|
4
|
+
|
|
5
|
+
* `file_system` – Un-deprecate `FileSystem#upload` receiving unrecognized options (@janko)
|
|
6
|
+
|
|
7
|
+
## 2.19.2 (2019-07-25)
|
|
2
8
|
|
|
3
9
|
* `default_url_options` – Allow deleting passed options when using a block (@janko)
|
|
4
10
|
|
|
@@ -6,7 +12,7 @@
|
|
|
6
12
|
|
|
7
13
|
* `infer_extension` – Fix compatibility with `pretty_location` plugin (@janko)
|
|
8
14
|
|
|
9
|
-
## 2.19.1 (
|
|
15
|
+
## 2.19.1 (2019-07-20)
|
|
10
16
|
|
|
11
17
|
* Bring back support for Ruby 2.3 (@janko)
|
|
12
18
|
|
|
@@ -14,7 +14,7 @@ class Shrine
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.configure(uploader, opts = {})
|
|
17
|
-
uploader.opts[:store_dimensions] ||= { analyzer: :fastimage, on_error: :
|
|
17
|
+
uploader.opts[:store_dimensions] ||= { analyzer: :fastimage, on_error: :ignore, log_subscriber: LOG_SUBSCRIBER }
|
|
18
18
|
uploader.opts[:store_dimensions].merge!(opts)
|
|
19
19
|
|
|
20
20
|
# resolve error strategy
|
|
@@ -50,9 +50,7 @@ class Shrine
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Copies the file into the given location.
|
|
53
|
-
def upload(io, id, move: false,
|
|
54
|
-
Shrine.deprecation("Unrecognized options for FileSystem#upload: #{options.inspect}. Passing unrecognized options to FileSystem#upload will not be supported in Shrine 3.") if options.any?
|
|
55
|
-
|
|
53
|
+
def upload(io, id, move: false, **)
|
|
56
54
|
if move && movable?(io, id)
|
|
57
55
|
move(io, id)
|
|
58
56
|
else
|
data/lib/shrine/version.rb
CHANGED
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.19.
|
|
4
|
+
version: 2.19.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Janko Marohnić
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: down
|