uri_config 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b373ef2d82a823bb1ffe17b6536a101dc5be818
4
- data.tar.gz: 60a858ef26e839112539a3e629d96f68f8c3ca08
3
+ metadata.gz: 019feae44d371f910da27ffc6ad40ce059a48e59
4
+ data.tar.gz: ebdfa891a073420acf8f211d5c5f7e82073f5930
5
5
  SHA512:
6
- metadata.gz: fc39c5668d40398dedcf374c9612704240bffaf1e6924d16119f528c5c21896a58eae8f05a653eeda4a2543cf9b6178e0ae39436b59b9e66b858de154676c46e
7
- data.tar.gz: a15c824f2a28cfb898435445640f64107315e0d323b0ed51e0f02b9e80c5ed11b084bb4c30d9ef2d032ef91888dbbe582c1f307b024a955ba7f7a91e1dcd76fc
6
+ metadata.gz: 86b4244df375e9e78bdcb10a9941402f9567bd1cc1ddca86f6da5c4cc5a3230969fd83aa2e5a0d77717f3fd089eaace489ff3e2564f8a24b38c6a0d01ffea079
7
+ data.tar.gz: 0c19b247a8b9a37a73dc7d54fb6e36cd5a4cfbdb204050bd6659ab832ad6ff6a909c2d328926a5f07ca50fcfee4fdf22ab47c6a666311cd25962eebec3823318
@@ -81,9 +81,8 @@ module URIConfig
81
81
 
82
82
  def uri
83
83
  @uri ||= URI.parse url
84
- rescue => e
85
- e.message.gsub!(url, "<URL_SUPPRESSED>")
86
- raise e
84
+ rescue URI::InvalidURIError => e
85
+ raise URI::InvalidURIError, "Invalid URI: <URL_SUPPRESSED>"
87
86
  end
88
87
  end
89
88
  end
@@ -1,3 +1,3 @@
1
1
  module URIConfig
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -94,7 +94,7 @@ module URIConfig
94
94
 
95
95
  expect do
96
96
  URIConfig::Config.new(url).password
97
- end.to raise_error("bad URI(is not URI?): <URL_SUPPRESSED>")
97
+ end.to raise_error("Invalid URI: <URL_SUPPRESSED>")
98
98
  end
99
99
  end
100
100
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathon M. Abbott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler