gotransverse-tract-api 0.0.10 → 0.0.11

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: da7973843db2aa3486236bdbf45567810640041e
4
- data.tar.gz: f59358a2127458c48af534decc9a1c98d1cbe81f
3
+ metadata.gz: 2df7bfdc23c047c568bafc2141d9c84100e112ff
4
+ data.tar.gz: a2cca35a17232c9ddb2c5b84a791e94b1d497c6f
5
5
  SHA512:
6
- metadata.gz: 8ea1792e38aa0fdc99802368ed9e8b3f2d51ebe595f0d44de3f2f5f55a052ad666e0ce3e6d0224034b6a9977fcab06d54116773752ea081606c5c845be21940d
7
- data.tar.gz: f00e24b7e9689e4eda9eb8970b5bd97144e6a07463f1595e23c6a0bc842a9bae325e9888a623259d0bedbe10bde278fdbe3758fd70458e003b92be988dd67b48
6
+ metadata.gz: 434315489b02053ec4fee99cd5dea644863586a3ede2f03198f7d29c66ebfdf0e2a26145535ffd4c46c8a3a7616e59e44d4bdbba1783d5934216832ecfa441aa
7
+ data.tar.gz: 9e6cf7f380ecd0e1225843e0acfbe0d4093e364276d7ccdb90e77a7612dad82c2f2c93a5a4b3e229b52b1dfe17699bc66db01c8771d35513c12ba27823f570bb
@@ -175,16 +175,18 @@ module GoTransverseTractApi
175
175
 
176
176
  headers = self.get_authentication_headers
177
177
 
178
- # TODO: Recursively camelize all keys in api_params Hash.
178
+ # TODO: Camelize all keys in api_params Hash.
179
+
180
+ api_uri = URI.parse(api_url)
179
181
 
180
182
  http_client = HTTPClient.new
181
183
  case method
182
184
  when :get
183
- response = http_client.get(api_url, api_params, headers)
185
+ response = http_client.get(api_uri, api_params, headers)
184
186
  when :post
185
- response = http_client.post(api_url, api_params, headers)
187
+ response = http_client.post(api_uri, api_params, headers)
186
188
  when :put
187
- response = http_client.put(api_url, api_params, headers)
189
+ response = http_client.put(api_uri, api_params, headers)
188
190
  end
189
191
 
190
192
  Nokogiri::XML(response.body.to_s)
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  TARGET_API_VERSION = "1.19"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance