peopledatalabs 3.0.1 → 3.2.0

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: 945102b4502fd368b8629444dd519b760392dfe1a6b5405374b5a14eba8d2787
4
- data.tar.gz: b45006214c584cd32cf6207290924ecc1136cf72b8269353ec23ecec6f43d231
3
+ metadata.gz: 12814e4edeb635a9b1c8ca41d1075adf6fc3fb074a1a5736e2d0e80b2805fd58
4
+ data.tar.gz: 4c4389faa04d97466a6eb820f6d114da988297a8d6251e0bc53e7222a12c2877
5
5
  SHA512:
6
- metadata.gz: 1ee0a299bbfb9dc6505369ca2dd6a61c7ec87494fff138d2072c8841af09aeb1984ae5e40d7af2d0fe67f5a2f71fbd7e295615cc8ae25b12d109bd85e7ba43fa
7
- data.tar.gz: 7ccbb9e1ad199497f485bcc6fcc1467ce8618a20f41921ffd2a9be8fa01cdb592379e3eaf520152d0966682fd25b9901c698102a3014a56e9d7b69bb6c6b33d4
6
+ metadata.gz: c448c3b6351c4e3d43f816eda943a0631f15f48b678ac48750cde3c206d87ffa0432052e746c5404e37ce8f13d3f80abb14bb683652d3e86dbcf9056f6023956
7
+ data.tar.gz: 1f6aade1baddbce91a70a391448cfa767403d05f114dd312bbb80fbf61992e3b85eb813b64b2eb48e4bf8238f99083d9706ab9d6b5c3e392891aecf3c87a7720
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 People Data Labs
3
+ Copyright (c) 2024 People Data Labs
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://i.imgur.com/S7DkZtr.png" width="250" alt="People Data Labs Logo">
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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Autocomplete < APIResource
5
- def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false)
5
+ def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false, updated_title_roles: false)
6
6
 
7
7
  params = {
8
8
  'field' => field,
@@ -10,6 +10,7 @@ module Peopledatalabs
10
10
  'size' => size,
11
11
  'pretty' => pretty,
12
12
  'titlecase' => titlecase,
13
+ 'updated_title_roles' => updated_title_roles,
13
14
  };
14
15
 
15
16
  headers = {
@@ -18,13 +18,15 @@ 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, updated_title_roles: false, min_confidence: 'very low')
22
22
  params = {
23
23
  'ip' => ip,
24
24
  'return_ip_location' => return_ip_location,
25
25
  'return_ip_metadata' => return_ip_metadata,
26
26
  'return_person' => return_person,
27
27
  'return_if_unmatched' => return_if_unmatched,
28
+ 'min_confidence' => min_confidence,
29
+ 'updated_title_roles' => updated_title_roles,
28
30
  }
29
31
  headers = {
30
32
  '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, updated_title_roles: 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, 'updated_title_roles' => updated_title_roles })
11
11
  end
12
12
  end
13
13
  end
@@ -2,27 +2,29 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Search < APIResource
5
- def self.person(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
5
+ def self.person(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
6
6
  search(searchType: searchType,
7
7
  query: query,
8
8
  titlecase: titlecase,
9
9
  dataset: dataset, size: size,
10
10
  pretty: pretty,
11
11
  scroll_token: scroll_token,
12
+ updated_title_roles: updated_title_roles,
12
13
  kind: 'person')
13
14
  end
14
15
 
15
- def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
16
+ def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
16
17
  search(searchType: searchType,
17
18
  query: query,
18
19
  titlecase: titlecase,
19
20
  dataset: dataset, size: size,
20
21
  pretty: pretty,
21
22
  scroll_token: scroll_token,
23
+ updated_title_roles: updated_title_roles,
22
24
  kind: 'company')
23
25
  end
24
26
 
25
- def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
27
+ def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
26
28
 
27
29
  body = {
28
30
  searchType === 'sql' ? 'sql' : 'query' => query,
@@ -30,7 +32,8 @@ module Peopledatalabs
30
32
  'size' => size,
31
33
  'pretty' => pretty,
32
34
  'titlecase' => titlecase,
33
- 'scroll_token' => scroll_token
35
+ 'scroll_token' => scroll_token,
36
+ 'updated_title_roles' => updated_title_roles
34
37
  }
35
38
 
36
39
  headers = {
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "3.0.1"
2
+ VERSION = "3.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peopledatalabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - People Data Labs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.5.9
145
+ rubygems_version: 3.5.22
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Official Ruby client for the People Data Labs API.