api_client_base 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/lib/api_client_base/request.rb +2 -1
- data/lib/api_client_base/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cf66799b03406bf4da2623fae1466f76a4c77f0b7d2c7dfc0aadb6379cf43ef5
|
4
|
+
data.tar.gz: d3246a68d8afa13d02bc02b8c2ba792f139c1b1a3726cdcc6ed98656bcc7222b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e3846f635df65171b4876653e037aac6438ce0818332d766f9273e8f6b54c5e1e8b02df267d7a7e159fae071d7ae1fa4750b884a152a86d0bcb7e0632dcab31
|
7
|
+
data.tar.gz: 0fb352fc93fef029998dd9f7fa3c2bb5e175e546619bf941ab7021ffc2463cd6006c3702f101a85673f19b4cc23740ae90abafc1c31f124b7be9aacec9f5f69d
|
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.3.0] - 2018-08-29
|
8
|
+
### Added
|
9
|
+
- Make defining of `path` in requests optional
|
10
|
+
|
7
11
|
## [1.2.0] - 2017-02-22
|
8
12
|
### Added
|
9
13
|
- raise ArgumentError when validation schema is available and it has errors
|
@@ -60,11 +60,12 @@ module APIClientBase
|
|
60
60
|
|
61
61
|
def default_uri
|
62
62
|
uri = URI(host)
|
63
|
-
uri.path = api_client_base_path
|
63
|
+
uri.path = api_client_base_path if !api_client_base_path.nil?
|
64
64
|
uri.to_s
|
65
65
|
end
|
66
66
|
|
67
67
|
def default_api_client_base_path
|
68
|
+
return if !respond_to?(:path, true)
|
68
69
|
path.scan(/:\w+/).reduce(path) do |new_path, var|
|
69
70
|
attribute_name = var.gsub(":", "")
|
70
71
|
value = CGI::escape(self.send(attribute_name).to_s)
|
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.3.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:
|
11
|
+
date: 2018-08-29 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.
|
203
|
+
rubygems_version: 2.7.7
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Abstractions to help author API wrappers in Ruby.
|