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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcb9f2aa5a4616f644664fd5f8ae14c09be7c29e
4
- data.tar.gz: ce27bb81cf8cf06b8ca0196b7681f518bd525412
3
+ metadata.gz: a6e047f2e11b3f979a614497fab55f5509a91f82
4
+ data.tar.gz: 1c0e0b24fe627d4e6950c0ad08ccdf1aa51e270a
5
5
  SHA512:
6
- metadata.gz: 3f38aa840f75c6d4af6cf50011c355a963c4fbbb100e32694de7c465f78b92da1f966aeac3c319cdc691f67a6bc1612d489d65e72458b5de366b740a38311778
7
- data.tar.gz: 811474c9ca72bb5a88cf954c253c823373b770b3da5417a6c73dee7010d1632a054dfb09895a38f3e5007f85b40453b49a01b3a134624a8f7515b4559ef1a0a7
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 ||= URI(self.downloadable_url) if self.downloadable_url.present?
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
@@ -1,3 +1,3 @@
1
1
  module NaranyaEcm
2
- VERSION = "0.0.58"
2
+ VERSION = "0.0.59"
3
3
  end
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.58
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-05-26 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport