parliament-ruby 1.0.0.pre3 → 1.0.0.pre4

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: 05af5b9c52c73118177ca2063f26ec7d907530d9
4
- data.tar.gz: b9ad0d07d5590b3049c73c739fc8bffc390d6863
3
+ metadata.gz: fce7d9868bffbb9e8dc6d7a74bac5363f162e992
4
+ data.tar.gz: 123f984616d9b2d5f5e623d9b22ed40a3328ef7a
5
5
  SHA512:
6
- metadata.gz: 32a7bff4fcccb8ee812e910b01866a7198c1a1487525411161b1e3555e5a792128442df78ddbc3a69b4a0f8db909f7821a352a9ff798fa83f20b6c4296fc6c74
7
- data.tar.gz: 7561e825f4148fc2daaed7703287b27718b7972edf0bed1e9f5bd09f5f1bbf5d6701517e75f86285b36de5baf131657bceb349ef34643a54bc786b4abdd5e779
6
+ metadata.gz: 07c5c78e0312f5a73a8444182b7d184dd8628e1c032682246dff42a06ea2f61ab5583fe6716c80a5c47b47387e0e9e9bad74b25474fbce07d32036aa860fa34e
7
+ data.tar.gz: 944895ca5b29fd03ee27cc744fd763c13868884c59a8d4957b518f591e2e92b3ca9fc0787e8868c5687d93576d15da57b34dc3ace4cf30501b81d71ca991eba9
@@ -194,8 +194,8 @@ module Parliament
194
194
  def separate_uri(query_url, query_params, additional_params)
195
195
  endpoint = URI.parse(query_url)
196
196
 
197
- temp_params = query_params
198
- temp_params = temp_params.merge(URI.decode_www_form(endpoint.query).to_h) if endpoint.query
197
+ temp_params = endpoint.query ? URI.decode_www_form(endpoint.query).to_h : {}
198
+ temp_params = temp_params.merge(query_params)
199
199
  temp_params = temp_params.merge(additional_params) unless additional_params.nil?
200
200
 
201
201
  endpoint.query = nil
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '1.0.0.pre3'.freeze
2
+ VERSION = '1.0.0.pre4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre3
4
+ version: 1.0.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus