kf5_api 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 5c3b953388e65122ecb6b71beec1eb04f621cad2
4
- data.tar.gz: e78c57aa3596dead3bd9fcc82f0bb97d032473d8
3
+ metadata.gz: 11908bb26efc438cc1320c9295eae8ed05d05a79
4
+ data.tar.gz: 2c633be1c46c884cbe65c6fe830583e1aa084c82
5
5
  SHA512:
6
- metadata.gz: f978969573afd8b793336c7583c624c5ab5faa3f47901208d27702461128db25e7f6d247e293840075c41340b9353e1286f52a6f15928626582d802372cf1e01
7
- data.tar.gz: 59f5eda113e44aed707fcfd376b5f5fb9ef24d320fbd667987a9125b74815a16c5d51587eb3959b516d19ce652dec00d59611dc8fb01d6f445be26562f69cf9c
6
+ metadata.gz: d9e838e26b9689e84ce01b91538d10a1c91565a1cca8b907c53d002af8831277ef0f218b1f5ed17221e3970ee5bcba9b1f6c85703c7676ad931634299ffedab3
7
+ data.tar.gz: 277a8868db68cec25ec3f7217037519b35873190c4e107904a8943b6cccf7715cb8cfc319d8c6ea3fde4aba0e747ad8c00496b497b4896986eb7438e04d42892
@@ -32,9 +32,11 @@ module Kf5Api
32
32
 
33
33
  # 查询用户信息
34
34
  # query为查询参数,模糊搜索(名称,邮箱,手机号,微信openid)
35
- def search(keyword)
35
+ def search(keyword, query_fields = nil)
36
36
  action = format(ACTIONS_HASH[:search])
37
- get(action, { query: keyword }).parsed_response
37
+ query_params = { query: keyword }
38
+ query_params[:query_fields] = query_fields if query_fields.present?
39
+ get(action, query_params).parsed_response
38
40
  end
39
41
  end
40
42
  end
@@ -1,3 +1,3 @@
1
1
  module Kf5Api
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kf5_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - wangrui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-05 00:00:00.000000000 Z
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler