ibm_tools-people 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ibm_tools/people/profile/search.rb +3 -1
- data/lib/ibm_tools/people/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: fb0fccc2f987f527c97a496971b88c5a92b7fd20f0960f28ba36155b5e77a978
|
|
4
|
+
data.tar.gz: cedca628d2f05bbe5756cc87e9eb6f5fbffa86826b97f8394750a68e87dbbfc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac471169819e8c26f9de5e8e410d61566b3a25a334828202c4a64d56a7a9ae823007b1949c899f747a1b6081a8d970ca158e465497f574859604526bb4ec60e3
|
|
7
|
+
data.tar.gz: 9b2c995b1167fdec65d6f46fa6f7b71d137ae7e54db8685bd3b1e4128dff69bd83b27560a78fd8bec8c1d1e45bc1f3cf4060ddaf34a96ff4cb89d78e047dd4fc
|
|
@@ -32,7 +32,9 @@ module IbmTools
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def result_for(query_term, remap)
|
|
35
|
-
parsed_users(remap).select
|
|
35
|
+
parsed_users(remap).select do |parsed_user|
|
|
36
|
+
parsed_user&.values.map{ |el| el.to_s.downcase }&.include? query_term.to_s.downcase
|
|
37
|
+
end.first
|
|
36
38
|
rescue Exception => e
|
|
37
39
|
raise IbmTools::People::Profile::SearchError, e.message
|
|
38
40
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module IbmTools
|
|
4
4
|
module People
|
|
5
|
-
VERSION = "1.1.
|
|
5
|
+
VERSION = "1.1.3"
|
|
6
6
|
BLUEPAGES_V3_URI = "https://w3-unifiedprofile-api.dal1a.cirrus.ibm.com/v3/profiles"
|
|
7
7
|
BLUEPAGES_V1_URI = "https://w3-unifiedprofile-search.dal1a.cirrus.ibm.com/search"
|
|
8
8
|
EMAIL_REGEX = %r{\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z}i
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ibm_tools-people
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thiago Silva
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|