api_client_base 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/api_client_base/request.rb +6 -2
- data/lib/api_client_base/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f2cd67591e84b92f7754e85083b5a8ea9102c2076fb3191a105119c99cc4f66
|
4
|
+
data.tar.gz: e7ad46ed19b5a8de58269aeeffd9abde8dd315c9060a494c7be42bda0ac5eb4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25575a978842a39c3843122d3b945225a93ae619cd970569adc8af7afc753d3d615058e4851e61b453e1b08664101492633922040a52b989f540db64981a34d5
|
7
|
+
data.tar.gz: 3e2635e574948c1919644a3a87f08b6e5ba9edcf1067c02a0465867f277a2a7f0dc404c045b2285a33bd02b2ce44b2b46f4c1f12204ca1eaab640296a336344d
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [1.4.0] - 2018-09-04
|
8
|
+
### Added
|
9
|
+
- Support `host` configurations that already have a path
|
10
|
+
|
7
11
|
## [1.3.0] - 2018-08-29
|
8
12
|
### Added
|
9
13
|
- Make defining of `path` in requests optional
|
@@ -59,8 +59,12 @@ module APIClientBase
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def default_uri
|
62
|
-
uri =
|
63
|
-
|
62
|
+
uri = if !api_client_base_path.nil?
|
63
|
+
URI.join(host, api_client_base_path)
|
64
|
+
else
|
65
|
+
URI(host)
|
66
|
+
end
|
67
|
+
|
64
68
|
uri.to_s
|
65
69
|
end
|
66
70
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_client_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
202
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.7.
|
203
|
+
rubygems_version: 2.7.3
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Abstractions to help author API wrappers in Ruby.
|