flexirest 1.4.1 → 1.4.2

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: ce9f5c94daae38f440fca44bc0ec2d23c2c9929c
4
- data.tar.gz: 374e1b75c7faa13bcc0b0adfa5cf7da149884d7c
3
+ metadata.gz: 1349ef4e54b96017ed3331777f11f097eb99cbe2
4
+ data.tar.gz: ba0508dcb49233db86db40ef9e402783a1f179b0
5
5
  SHA512:
6
- metadata.gz: d6614d32d312b58c068c3716fe811bb8bb7f94eef2caac22c5ce3ed965857edc8bed135d264e10b668afcd1176d3627f78b726a9c1fb5c9e8e68237f4a81b5e9
7
- data.tar.gz: 277bedcd05c12d611d14d432557df906039996a5a38efbec847349d8c56e369e4fced65f8344891dd130cac0c776084310e4523882c98c392f27b7a540784f30
6
+ metadata.gz: 46f96c0a219835043e7700c3bfcc609ae5baa228604654eb45154637f094dde3bb0c0d57003de77e3392d8476f27bef13f5610e6168eb8e48636bdaf18fc6da3
7
+ data.tar.gz: dc72d7334cee925179db652ffcce8b5d16d51a7b3c8feaaa4623649fc065bf38d0b4bf86ddbededb8d9e7a616847a31d7f0c37285456ca4ce734b178dae64506
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.2
4
+
5
+ Bugfix:
6
+
7
+ - Breakage in path parameters where the value isn't specified
8
+
3
9
  ## 1.4.1
4
10
 
5
11
  Bugfix:
@@ -314,8 +314,10 @@ module Flexirest
314
314
  token = token.first[1,999]
315
315
  # pull URL path variables out of @get_params/@post_params
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
- # 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
- target = @object._attributes[token.to_sym] || "" if target == ""
317
+ unless object_is_class?
318
+ # 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
319
+ target = @object._attributes[token.to_sym] || "" if target == ""
320
+ end
319
321
  @url.gsub!(":#{token}", URI.escape(target.to_s).gsub("/", "%2F").gsub("+", "%2B"))
320
322
  end
321
323
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-31 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler