naranya_ecm-sdk 0.0.58 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naranya_ecm/models/media_resource.rb +8 -1
- data/lib/naranya_ecm-sdk/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: a6e047f2e11b3f979a614497fab55f5509a91f82
|
4
|
+
data.tar.gz: 1c0e0b24fe627d4e6950c0ad08ccdf1aa51e270a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d1beca3428f756addca77e0d3e8e1911e8f35526a3447937826e658f54c093432c6c656a74f31d365065494362b2994db1dcf4bb3593249d10eb8e654df5589
|
7
|
+
data.tar.gz: 67af8129323fd6c47becb28842f49c25f1a3fb6765fb688cc7709d48219e08271b8f3b3ded397949cd669c221b2b330cd1a3cc59a4aac407292e9e8c387be926
|
@@ -57,7 +57,14 @@ module NaranyaEcm
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def downloadable_uri
|
60
|
-
@downloadable_uri ||=
|
60
|
+
@downloadable_uri ||= if self.downloadable_url.present?
|
61
|
+
begin
|
62
|
+
URI(self.downloadable_url)
|
63
|
+
rescue URI::InvalidURIError
|
64
|
+
# Maybe a special character prevents the URI to form...
|
65
|
+
URI(URI::encode self.downloadable_url)
|
66
|
+
end
|
67
|
+
end
|
61
68
|
end
|
62
69
|
|
63
70
|
def downloadable_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naranya_ecm-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.59
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|