linkhum-url 0.1.4 → 0.1.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/linkhum/url.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0399dffb1cce6eee486039ef1d8415ebb2a1347f'
4
- data.tar.gz: 265d932f96994dec962cd2aae4ad45e0b57ff169
3
+ metadata.gz: 0c251fcc7514218a2f17c1023f2051953351d4a5
4
+ data.tar.gz: 02ee39be06f0864e8bfa584a8e0e94ddc57b584b
5
5
  SHA512:
6
- metadata.gz: 5632e26868294c54e6f87aeb8b27a3649932eeaa57c2f44ac4eb5b16a72876c5ec0683faa773f7245c53f63589f10f92e9128999b2abb9efe2819d3e4819758e
7
- data.tar.gz: 6beccc5cdb476b11184d915750f9bd18fec1f5e7e4d4a13e1af28697a0645fb55c7a2549d7423fdeb8d5b70a90f7f44f30e3a4b88c5b2457a51a6a9b08449632
6
+ metadata.gz: eee6fcde6e2e2f99fcec2773cb9cc67c034b9ca47bcab86a847abcb7bbacff649e7e9dce2fe4792fa4dbf7b3c806a1ec24d63e428bfa9f1ea95fa3f3cabb659e
7
+ data.tar.gz: '058f93cbd65497f8db1ef620462f05aecb9877e35bb43c032b0fd2cf84428311902b1ea8a35ea89f5886703ddd78a89c8332ff4bd1081c228b91e859deacc498'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.5:
2
+
3
+ * More fixes to URLs with special symbols in query strings (tnx @markiz);
4
+
1
5
  0.1.4:
2
6
 
3
7
  * Handle URLs with hashtags in query strings (tnx @markiz);
data/lib/linkhum/url.rb CHANGED
@@ -71,7 +71,7 @@ module Linkhum
71
71
  end
72
72
 
73
73
  def self.unencode_component(string, skip_special_chars = true)
74
- chars_to_keep_encoded = skip_special_chars ? "%#" : ""
74
+ chars_to_keep_encoded = skip_special_chars ? "%#&?+" : ""
75
75
  Addressable::URI.unencode_component(string, String, chars_to_keep_encoded)
76
76
  end
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkhum-url
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
  - Alexey Makhotkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-04 00:00:00.000000000 Z
11
+ date: 2017-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable