lalala 4.0.0.dev.194 → 4.0.0.dev.195
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lalala/uploaders/file.rb +5 -1
- data/lib/lalala/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be14a0c77ea4a0ba2198126f3b31dd189b22e646
|
4
|
+
data.tar.gz: 31bf933a45e5ded8a63333c8cfebd2fae2d736da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b36e5d18af5311f465673f9ab55857bed0aa44b002019b9b79789fd3dcc498a43dbbc7fdd9d3636fe031a07f51d824ccb164c44c15d8a25cd24262f7357cfb0
|
7
|
+
data.tar.gz: 47c9245b0726b84899c73283ac6e874d2680ce5de96891b2ad1f16ffbb71f76d1c798a8614b055def74b4ed1b6905a6a5bdc1b1753ddac60872410f9123c2a16
|
@@ -12,7 +12,11 @@ class Lalala::Uploaders::File < CarrierWave::Uploader::Base
|
|
12
12
|
super_url = super
|
13
13
|
if Rails.env.production? or Rails.env.staging?
|
14
14
|
if super_url
|
15
|
-
|
15
|
+
if super_url.starts_with?('/storage/assets')
|
16
|
+
super_url
|
17
|
+
else
|
18
|
+
AssetURL.new(File.join("/storage/assets", super_url))
|
19
|
+
end
|
16
20
|
else
|
17
21
|
super_url
|
18
22
|
end
|
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.195
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-06-
|
16
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: carrierwave
|