flexirest 1.4.0 → 1.4.1

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: 523560b561f09e067d5ccb4e00442091e821fc41
4
- data.tar.gz: 6dbe9d04e9bb44e66c40c31c4b0e24cceea3d895
3
+ metadata.gz: ce9f5c94daae38f440fca44bc0ec2d23c2c9929c
4
+ data.tar.gz: 374e1b75c7faa13bcc0b0adfa5cf7da149884d7c
5
5
  SHA512:
6
- metadata.gz: 6cef508630a6f7c15c9e8836a48ecbe6b4fd6ccd7a6c2f55cb9bb0e7a1bdb4bf0621159c0dcc31f65c8b9a3a5346d3304624bfccd23b2d51151760159872a8c3
7
- data.tar.gz: 5152a2255c1719686cd48c64618c5cfc7ef56ecfc231ce1d18f58c7d0427da2348dc3c731c7621dce246dce8b3fae8f17f90e9456b22a5b1517e9d9c6a3b0830
6
+ metadata.gz: d6614d32d312b58c068c3716fe811bb8bb7f94eef2caac22c5ce3ed965857edc8bed135d264e10b668afcd1176d3627f78b726a9c1fb5c9e8e68237f4a81b5e9
7
+ data.tar.gz: 277bedcd05c12d611d14d432557df906039996a5a38efbec847349d8c56e369e4fced65f8344891dd130cac0c776084310e4523882c98c392f27b7a540784f30
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ Bugfix:
6
+
7
+ - Pluses in URL params are now escaped to %2B (thanks to jan-vitek for the bug report and pull request)
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  Feature:
@@ -316,7 +316,7 @@ module Flexirest
316
316
  target = @get_params.delete(token.to_sym) || @post_params.delete(token.to_sym) || @get_params.delete(token.to_s) || @post_params.delete(token.to_s) || ""
317
317
  # it's possible the URL path variable may not be part of the request, in that case, try to resolve it from the object attributes
318
318
  target = @object._attributes[token.to_sym] || "" if target == ""
319
- @url.gsub!(":#{token}", URI.escape(target.to_s).gsub("/", "%2F"))
319
+ @url.gsub!(":#{token}", URI.escape(target.to_s).gsub("/", "%2F").gsub("+", "%2B"))
320
320
  end
321
321
  end
322
322
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries