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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjA0MzI2NThlYzM0YjUyM2MxOTU5NDRiZjkyYzZlZjJmN2JkZGM5Yg==
4
+ YzlkYzFhMDQ5MTUyNzU1Yjg3ZGFkYTA3NjcyZTQyYjMxMzJhM2I5Zg==
5
5
  data.tar.gz: !binary |-
6
- ZDQyZGE2YTk1YTlkMjViYzcyMTkxMmY5ZTc0Njg3NjY1NThiNGQ1ZQ==
6
+ NWYxNzY1NmI1MTUyMzE3YTgzMzRkMzU1MzdhYWM5NzZkYjg2ZTgyNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzdiMDExMjA0YjcxMGY2MTQ5Zjc4NzVhMmRmMWQxYTE3OGU5ZDViZGVhMWFh
10
- YzBhMjBmNTIwMTNjZTAxZTY0ZmY3MTI2ZTVhMWQwOWYwMmI0Yjg3Zjg0ZDhm
11
- Yjc3ODNlMmUzZTRkZThkMzgxYmRiMmY2NTEyY2EzNzY3YTU1ZjE=
9
+ MDNkZWRkZmFkNDVlMjc3MzUyYmM2NDJkNTQwYmEzNjU1ZTA2NWFjNDkyN2M2
10
+ ZTI2ZGEzN2M5YWIyZjI1ZWQ0YzE3OTMwMTMzOWI1NjQ3ZmE0M2IzMjIyMzEw
11
+ YzQyMGYyNzczYTU2MzYzNWNlN2U4MzcwOTQ2YTYzNTBmZTg3NTA=
12
12
  data.tar.gz: !binary |-
13
- ZWM2ZWE0NGI5MjZhMWM3YTg3Y2U0MjQzMTdmOGYzNTk1Y2M4ODUyMTRiYjQ5
14
- NjAxZjdiYTBmODVmYzNhODdkN2JkYTAxZmFhYWEwODZkN2NhMDQxZmNjMWY4
15
- YzM3YzJjNjI4MDQxZTFiMGQyM2IyNjg0MzllNDQxNjZkOTMxY2M=
13
+ MmU4ZTI5OWE4N2JmNmZlMTE5NzIyN2JkZDFiODFlNThkYTVjZmNlMTRiNzYz
14
+ ZGFiOGE5YzdmMWI5NTc2YWFhMzMxZDBlMjJlYTQ4MTUyOGNiNmU5YmRjNmM5
15
+ MDNhZTM4NzAwODU3MjIxNjE3YjNmY2FkZjY4M2Q5NzZmZDljMDI=
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "carrierwave-upyun"
6
- s.version = "0.1.7"
6
+ s.version = "0.1.8"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Nowa Zhu"]
9
9
  s.email = ["nowazhu@gmail.com"]
@@ -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
- if @uploader.upyun_bucket_domain
136
- puts "DEPRECATION: upyun_bucket_domain config is deprecated, please use upyun_bucket_host to insead."
137
- if @uploader.upyun_bucket_domain.match(/^http/)
138
- [@uploader.upyun_bucket_domain, @path].join("/")
139
- else
140
- ["http://",@uploader.upyun_bucket_domain, @path].join("/")
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.7
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-05-29 00:00:00.000000000 Z
11
+ date: 2014-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave