peopledatalabs 3.1.0 → 4.0.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2921f24c193e5ff6e45de2e4ad8fcfb4455e471dbd3619b6aa9119a23233fcb
|
4
|
+
data.tar.gz: 2c83241663524e402202ac56367ad326c26ac0541deddddfa79d12c5f9b82e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a191506e16b8bbd5bdc67edefe3fb127f9bdd4ea1c21fe5c2d35eadce14e82f7c71f78ba9079c107dfa113d9dbbc2e13f6849f1fbd2b5f44608ef7a7be2a83
|
7
|
+
data.tar.gz: 157ff616dd93783a026489503698d278e63e8b7f47192acf6849558579a2431e57e7abec71b7db15db196b3a2e5a292ee373cb34cad7cf7548593fb14938ee18
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<img src="https://
|
2
|
+
<img src="https://www.peopledatalabs.com/images/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
|
3
3
|
</p>
|
4
4
|
<h1 align="center">People Data Labs Ruby Library</h1>
|
5
5
|
<p align="center">Official Ruby client for the People Data Labs API.</p>
|
@@ -3,7 +3,7 @@ module Peopledatalabs
|
|
3
3
|
|
4
4
|
protected
|
5
5
|
|
6
|
-
VALID_AUTOCOMPLETE_FIELDS = ['company', 'country', 'industry', 'location', 'major', 'region', 'role', 'school', 'sub_role', 'skill', 'title'].freeze
|
6
|
+
VALID_AUTOCOMPLETE_FIELDS = ['class', 'company', 'country', 'industry', 'location', 'major', 'region', 'role', 'school', 'sub_role', 'skill', 'title'].freeze
|
7
7
|
|
8
8
|
def self.get(path:, headers: {}, params: {})
|
9
9
|
request = check(params: params, path: path)
|
@@ -18,7 +18,7 @@ module Peopledatalabs
|
|
18
18
|
get(path: '/v5/company/enrich', headers: headers, params: params)
|
19
19
|
end
|
20
20
|
|
21
|
-
def self.ip(ip:, return_ip_location: false, return_ip_metadata: false, return_person: false, return_if_unmatched: false,
|
21
|
+
def self.ip(ip:, return_ip_location: false, return_ip_metadata: false, return_person: false, return_if_unmatched: false, min_confidence: 'very low')
|
22
22
|
params = {
|
23
23
|
'ip' => ip,
|
24
24
|
'return_ip_location' => return_ip_location,
|
@@ -26,7 +26,6 @@ module Peopledatalabs
|
|
26
26
|
'return_person' => return_person,
|
27
27
|
'return_if_unmatched' => return_if_unmatched,
|
28
28
|
'min_confidence' => min_confidence,
|
29
|
-
'updated_title_roles' => updated_title_roles,
|
30
29
|
}
|
31
30
|
headers = {
|
32
31
|
'Accept-Encoding' => 'gzip',
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Retrieve < APIResource
|
5
|
-
def self.person(person_id:, pretty: false
|
5
|
+
def self.person(person_id:, pretty: false)
|
6
6
|
headers = {
|
7
7
|
'Accept-Encoding' => 'gzip',
|
8
8
|
'User-Agent' => 'PDL-RUBY-SDK',
|
9
9
|
}
|
10
|
-
get(path: "/v5/person/retrieve/#{person_id}", headers: headers, params: { 'pretty' => pretty
|
10
|
+
get(path: "/v5/person/retrieve/#{person_id}", headers: headers, params: { 'pretty' => pretty })
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -9,22 +9,20 @@ module Peopledatalabs
|
|
9
9
|
dataset: dataset, size: size,
|
10
10
|
pretty: pretty,
|
11
11
|
scroll_token: scroll_token,
|
12
|
-
updated_title_roles: updated_title_roles,
|
13
12
|
kind: 'person')
|
14
13
|
end
|
15
14
|
|
16
|
-
def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil
|
15
|
+
def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
|
17
16
|
search(searchType: searchType,
|
18
17
|
query: query,
|
19
18
|
titlecase: titlecase,
|
20
19
|
dataset: dataset, size: size,
|
21
20
|
pretty: pretty,
|
22
21
|
scroll_token: scroll_token,
|
23
|
-
updated_title_roles: updated_title_roles,
|
24
22
|
kind: 'company')
|
25
23
|
end
|
26
24
|
|
27
|
-
def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil
|
25
|
+
def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
|
28
26
|
|
29
27
|
body = {
|
30
28
|
searchType === 'sql' ? 'sql' : 'query' => query,
|
@@ -33,7 +31,6 @@ module Peopledatalabs
|
|
33
31
|
'pretty' => pretty,
|
34
32
|
'titlecase' => titlecase,
|
35
33
|
'scroll_token' => scroll_token,
|
36
|
-
'updated_title_roles' => updated_title_roles
|
37
34
|
}
|
38
35
|
|
39
36
|
headers = {
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peopledatalabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- People Data Labs
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -127,7 +126,6 @@ metadata:
|
|
127
126
|
github_repo: https://github.com/peopledatalabs/peopledatalabs-ruby
|
128
127
|
documentation_uri: https://docs.peopledatalabs.com
|
129
128
|
bug_tracker_uri: https://github.com/peopledatalabs/peopledatalabs-ruby/issues
|
130
|
-
post_install_message:
|
131
129
|
rdoc_options: []
|
132
130
|
require_paths:
|
133
131
|
- lib
|
@@ -142,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
140
|
- !ruby/object:Gem::Version
|
143
141
|
version: '0'
|
144
142
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
146
|
-
signing_key:
|
143
|
+
rubygems_version: 3.6.2
|
147
144
|
specification_version: 4
|
148
145
|
summary: Official Ruby client for the People Data Labs API.
|
149
146
|
test_files: []
|