url_resolver 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/url_resolver/resolver.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3061885f6ea4251091aac2ef4ce7a8a0bfaf837e
4
- data.tar.gz: e802a624b885294b6be345c2e1e2de4aff9d9569
3
+ metadata.gz: 6a46b93f99c0f5a31dc85dd7465985f1e675fdd1
4
+ data.tar.gz: 9c0d48f69d6d9692fa778ec07bd11671c309d4c3
5
5
  SHA512:
6
- metadata.gz: 725a5282317b5519c460d7ef40a5438a9485bb021f5157aab5925d53f3485b5f38ad263314feec28370ec50655e2de9922949cdcf31879f119ef22af85d87291
7
- data.tar.gz: 4be8cedf56e1162e8c8352387ddae8dca545b942325b0172cd8fcd61e49c565cc5f0b4f529c5a2b3c5b4465e1c9ac5452a5c57e0981037cef62ca6694fd1644d
6
+ metadata.gz: 1c9544265aa85df2a7960b0f90632fe25be920e666021e0d4aa832a03301387320c85ca5a1c3e5719f8afee307c7acf254db6fd384b01a73f3173356801f4472
7
+ data.tar.gz: 161f039faeaa09514ed7eb21119e1ff3a9a6bb8c4d8d8e577fc2a0e013b894ba6143189931a7568226fa3c9e867e312129c70459df14ec09002a662ef3356558
@@ -7,7 +7,7 @@ module UrlResolver
7
7
  end
8
8
 
9
9
  def resolve(url)
10
- url_to_check = URI.escape(url)
10
+ url_to_check = URI.escape(URI.escape(url), /\[|\]/)
11
11
  cached_url = cache.get_url(url_to_check)
12
12
  return cached_url if cached_url
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_resolver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amir Manji
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client