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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30c4aa27798b70f976246d2412f469dfde04a119a22b917dc18cc394f2ab5830
4
- data.tar.gz: ba19671ab58983d9a4e78be6db559bb4705ed5ef661ebd13a462d9c9ae202d0a
3
+ metadata.gz: 05cfc127c437bdff01a5becf578bfd439055b2ade100d75bf403d2d1ab1fe7f1
4
+ data.tar.gz: 1bd9ee41bd5a56c2f3e9ec0e59fbfc5bec6ec75770a4f8b627a5e6692972346a
5
5
  SHA512:
6
- metadata.gz: 6865875e1e21f0d2dbd157f82042dc6927803603c73e0a0c62f3d3b82d9b29d3417500eeb3662323d1963d76fde783e6bd0b6c78abe2631d4a7891598b36603a
7
- data.tar.gz: 56b811df20fe6953fc01944e7c8b4ca6941c0849ea73388f5642d8702e1d004521701895c88ae130227ad6cba69617706a37d6660b6b82e5051a411609a4aa4b
6
+ metadata.gz: 5913a6be7b0814a37a1b9b85b77bd751254f7ff80f6cdc40d6f4491b181302ca3c806066b11ff71bd9b65abd62424e1fc0b3c55663573dc29932f66b24117bc9
7
+ data.tar.gz: 6b726071026b88cabc4e4ffbfb455fd75fe99e2e868e9751faba296228890b21672f84b6435c24e5adf29ad3e03422781280ab90dd207a789bbac23f8bc0ea34
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Antbird
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-05 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday