nolij_web 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nolij_web/connection.rb +3 -3
- data/lib/nolij_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d80df6d92fff0365342c8d3716d93caf007d083e
|
4
|
+
data.tar.gz: 6052c048bbc2f190081546e4cf956caa71daa8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f6de9986b978559930ce850d4eea2eaff8b3762d890bd2742b36f2d70a390990f09b16db10b4ec8544bc746f44f0b8f2de694f8cc21a0eeab657c1dde4c0115
|
7
|
+
data.tar.gz: 64f9374e7e53cb0124867baed994c042e9aae6cb1431548c03e72f3f8217783334d4457e06c4935437b4bfef228fd764bfc3201633cbd7c34889f8dea5081a3f
|
data/lib/nolij_web/connection.rb
CHANGED
@@ -125,21 +125,21 @@ Be sure to close the connection when you are finished.
|
|
125
125
|
# Use this inside an execute block to make mulitiple calls in the same request
|
126
126
|
def get_custom_connection(path, headers = {}, &block)
|
127
127
|
block ||= default_response_handler
|
128
|
-
url = URI.join(@base_url, URI.parse(@base_url).path + '/', path.to_s).to_s
|
128
|
+
url = URI.join(@base_url, URI.parse(@base_url).path + '/', URI.encode(path.to_s)).to_s
|
129
129
|
rest_client_wrapper(:get, url, headers, &block)
|
130
130
|
end
|
131
131
|
|
132
132
|
# Use this inside an execute block to make mulitiple calls in the same request
|
133
133
|
def delete_custom_connection(path, headers = {}, &block)
|
134
134
|
block ||= default_response_handler
|
135
|
-
url = URI.join(@base_url, URI.parse(@base_url).path + '/', path.to_s).to_s
|
135
|
+
url = URI.join(@base_url, URI.parse(@base_url).path + '/', URI.encode(path.to_s)).to_s
|
136
136
|
rest_client_wrapper(:delete, url, headers, &block)
|
137
137
|
end
|
138
138
|
|
139
139
|
# Use this inside an execute block to make mulitiple calls in the same request
|
140
140
|
def post_custom_connection(path, payload, headers = {}, &block)
|
141
141
|
block ||= default_response_handler
|
142
|
-
url = URI.join(@base_url, URI.parse(@base_url).path + '/', path.to_s).to_s
|
142
|
+
url = URI.join(@base_url, URI.parse(@base_url).path + '/', URI.encode(path.to_s)).to_s
|
143
143
|
RestClient::Request.execute(method: :post, url: url, payload: payload, headers: headers, verify_ssl: @verify_ssl, &block)
|
144
144
|
end
|
145
145
|
|
data/lib/nolij_web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nolij_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shannon Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|