carrierwave-upyun 1.0.3 → 1.0.4
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 +4 -0
- data/lib/carrierwave/storage/upyun/file.rb +12 -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: 237faed6f0bd59cf4e1ecb6a1363973b03696edef027c0ae46ff5ef9b030bb91
|
4
|
+
data.tar.gz: d144f74b3d8f7ce210079c252fee3300b593f127595ae33e34ec2f789c5e3f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3a5b364a6ac34c62e2dc91f41c62e10b0bebc4afb6ecedfb811c1654dc10aa68a1fab61dc24153b4d93c11db8c87b7baf97591a6828ba6d12fec1ba3556f617
|
7
|
+
data.tar.gz: f8bdc484c0f3eb4ca8990e2e9fc82c299b75caa5e8c4a037822013b1c5b69f75a3644f08c42e76f09b7ca1b68591917961d61459cbc7e8e2296596e8f11d1b1f
|
data/CHANGELOG.md
CHANGED
@@ -97,12 +97,23 @@ module CarrierWave::Storage
|
|
97
97
|
|
98
98
|
def headers
|
99
99
|
@headers ||= begin
|
100
|
-
conn.
|
100
|
+
conn.head(escaped_path).headers
|
101
101
|
rescue Faraday::ClientError
|
102
102
|
{}
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
+
##
|
107
|
+
# Return size of file body
|
108
|
+
#
|
109
|
+
# === Returns
|
110
|
+
#
|
111
|
+
# [Integer] size of file body
|
112
|
+
#
|
113
|
+
def size
|
114
|
+
headers['content-length'].to_i
|
115
|
+
end
|
116
|
+
|
106
117
|
##
|
107
118
|
# Writes the supplied data into the object on Cloud Files.
|
108
119
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-upyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nowa Zhu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carrierwave
|