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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14cd1140359997859d3f25aa72f22d425e778f7cfec37af3570690a45985f9d3
4
- data.tar.gz: 1e2b2f745d676377b6eaab0169290475feb1735583331c52f397e6adbe9d7a7b
3
+ metadata.gz: 99e4ea3761b89408df6d525c55c66510421f6cb713761dff88d14d54732eb10d
4
+ data.tar.gz: 05f6b81ebf3b9e1ebd54a13643499a987313d412d3303c5cbb20b6fc2511b814
5
5
  SHA512:
6
- metadata.gz: 7e2c323641f065c9cca255dc4d036404ec3c0e18ec55632f2ce73351d166e08767720c77660090cd41f225028762f9af6b7559dc0ebc94355e3741dcd6f06a52
7
- data.tar.gz: 8b1666efb1bdd5e4d4e06376398f2d82e60aab9e4a1113570bd72c790d51b0ee6d4370ee1465cea32ae43d8d7e62610408b45999fa504bd8cb817d34435bfd2d
6
+ metadata.gz: 8f944cfde3fb58534751c4ffa0aec65f2e7a408270be565147e8507f307cd941b121dcc11e8c73fd808c7153adcbc0798cd47816ac3e3f75fc11a23124941792
7
+ data.tar.gz: b58fde34e83b46a0b440948cfe0c3c916cd7f1f77008e75dc5f40b1d460c1b665ce5fe27e629026f03402f9661da615efd1a4c7ecd45abb378f68efe58bfb016
@@ -1,4 +1,10 @@
1
- ## 2.19.2 (2018-07-25)
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 (2018-07-20)
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: :warn, log_subscriber: LOG_SUBSCRIBER }
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, shrine_metadata: {}, **options)
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
@@ -8,7 +8,7 @@ class Shrine
8
8
  module VERSION
9
9
  MAJOR = 2
10
10
  MINOR = 19
11
- TINY = 2
11
+ TINY = 3
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.2
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-07-25 00:00:00.000000000 Z
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down