carrierwave 2.0.1 → 2.0.2

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cec647408d36ed177f433a55c77b2ed5f1bfed336f009288f8269908e319497
4
- data.tar.gz: 8c0000c7d0f46de827a29f89e435e801eba7e0d5228b1cee53bd8c2465bec0d8
3
+ metadata.gz: 68685b55fa2e963a4f1360b559cf5a89247acb148f1df1f7bbdfb3f1c0b7a2f7
4
+ data.tar.gz: 4f9ae6aeecce7ca31d4aa8ca79f7e5f29fa9669812589f673108562d8b6fc48f
5
5
  SHA512:
6
- metadata.gz: a228a763d061851c8daa3851f1b28dc2ec8f8bdd08f288e645396857648323024fcddcb34c6184d9620a3542ff04f5b91a4775b5c8555207ebbdab0d99448522
7
- data.tar.gz: 6cf7b4cda4d8a17e3a1d8d70faa2be5e53f8a6a299915de7d2d7b8c262db5668e8cb6d83e131ca5fbf58013d1b6eda476c987d2e70ced8c76d385fe8ee6b66f5
6
+ metadata.gz: 158191c23a9097e4aec49111b26df612f51593f95c28a095ff1742d33cbfcee2cb64ee0fce25f0c9d959e747e0afa75a220b5de6f4cc6c159e6dbd88f78eb0ce
7
+ data.tar.gz: 3ddf67382bb3ecd08069181590817b0f41150cd9735d53fadceb597b8a8ee2ce677a2044b38bd323318a6fe13123d010b3cc20ea2bf0d06f125866e164c56e4e
@@ -23,10 +23,12 @@ module CarrierWave
23
23
  private
24
24
 
25
25
  def filename_from_header
26
- if file.meta.include? 'content-disposition'
27
- match = file.meta['content-disposition'].match(/filename=(?:"([^"]+)"|([^";]+))/)
28
- match[1].presence || match[2].presence
29
- end
26
+ return nil unless file.meta.include? 'content-disposition'
27
+
28
+ match = file.meta['content-disposition'].match(/filename=(?:"([^"]+)"|([^";]+))/)
29
+ return nil unless match
30
+
31
+ match[1].presence || match[2].presence
30
32
  end
31
33
 
32
34
  def filename_from_uri
@@ -1,3 +1,3 @@
1
1
  module CarrierWave
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-31 00:00:00.000000000 Z
11
+ date: 2019-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport