carrierwave-upyun 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/carrierwave-upyun.gemspec +1 -1
- data/lib/carrierwave/storage/upyun.rb +7 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzlkYzFhMDQ5MTUyNzU1Yjg3ZGFkYTA3NjcyZTQyYjMxMzJhM2I5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWYxNzY1NmI1MTUyMzE3YTgzMzRkMzU1MzdhYWM5NzZkYjg2ZTgyNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDNkZWRkZmFkNDVlMjc3MzUyYmM2NDJkNTQwYmEzNjU1ZTA2NWFjNDkyN2M2
|
10
|
+
ZTI2ZGEzN2M5YWIyZjI1ZWQ0YzE3OTMwMTMzOWI1NjQ3ZmE0M2IzMjIyMzEw
|
11
|
+
YzQyMGYyNzczYTU2MzYzNWNlN2U4MzcwOTQ2YTYzNTBmZTg3NTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmU4ZTI5OWE4N2JmNmZlMTE5NzIyN2JkZDFiODFlNThkYTVjZmNlMTRiNzYz
|
14
|
+
ZGFiOGE5YzdmMWI5NTc2YWFhMzMxZDBlMjJlYTQ4MTUyOGNiNmU5YmRjNmM5
|
15
|
+
MDNhZTM4NzAwODU3MjIxNjE3YjNmY2FkZjY4M2Q5NzZmZDljMDI=
|
data/carrierwave-upyun.gemspec
CHANGED
@@ -131,17 +131,13 @@ module CarrierWave
|
|
131
131
|
if @uploader.upyun_bucket_host
|
132
132
|
return [@uploader.upyun_bucket_host, @path].join("/")
|
133
133
|
end
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
end
|
142
|
-
else
|
143
|
-
nil
|
144
|
-
end
|
134
|
+
|
135
|
+
return nil unless @uploader.upyun_bucket_domain
|
136
|
+
puts "DEPRECATION: upyun_bucket_domain config is deprecated, please use upyun_bucket_host to insead."
|
137
|
+
|
138
|
+
bucket_host = @uploader.upyun_bucket_domain
|
139
|
+
bucket_host.prepend('http://') unless bucket_host.match(/^http/)
|
140
|
+
[bucket_host, @path].join("/")
|
145
141
|
end
|
146
142
|
|
147
143
|
def content_type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-upyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nowa Zhu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|