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 +4 -4
- data/lib/carrierwave/downloader/remote_file.rb +6 -4
- data/lib/carrierwave/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: 68685b55fa2e963a4f1360b559cf5a89247acb148f1df1f7bbdfb3f1c0b7a2f7
|
4
|
+
data.tar.gz: 4f9ae6aeecce7ca31d4aa8ca79f7e5f29fa9669812589f673108562d8b6fc48f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
data/lib/carrierwave/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|