antbird 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/antbird/client.rb +2 -1
- data/lib/antbird/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05cfc127c437bdff01a5becf578bfd439055b2ade100d75bf403d2d1ab1fe7f1
|
4
|
+
data.tar.gz: 1bd9ee41bd5a56c2f3e9ec0e59fbfc5bec6ec75770a4f8b627a5e6692972346a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5913a6be7b0814a37a1b9b85b77bd751254f7ff80f6cdc40d6f4491b181302ca3c806066b11ff71bd9b65abd62424e1fc0b3c55663573dc29932f66b24117bc9
|
7
|
+
data.tar.gz: 6b726071026b88cabc4e4ffbfb455fd75fe99e2e868e9751faba296228890b21672f84b6435c24e5adf29ad3e03422781280ab90dd207a789bbac23f8bc0ea34
|
data/lib/antbird/client.rb
CHANGED
@@ -47,7 +47,7 @@ module Antbird
|
|
47
47
|
body = extract_body(params)
|
48
48
|
scopes = extract_scopes(params)
|
49
49
|
|
50
|
-
#
|
50
|
+
# Greedy match
|
51
51
|
api_path = nil
|
52
52
|
api_spec['url']['paths'].sort { |a, b| b.size <=> a.size }.each do |path|
|
53
53
|
embeded = path.gsub(/{([a-z_\-}]+)}/) do |match|
|
@@ -65,6 +65,7 @@ module Antbird
|
|
65
65
|
method = methods.include?(:post) ? :post : methods.first
|
66
66
|
|
67
67
|
read_timeout = params.delete(:read_timeout)
|
68
|
+
params.reject! { |_, v| v.nil? }
|
68
69
|
|
69
70
|
response =
|
70
71
|
case method
|
data/lib/antbird/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: antbird
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|