peopledatalabs 3.2.0 → 5.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: 12814e4edeb635a9b1c8ca41d1075adf6fc3fb074a1a5736e2d0e80b2805fd58
4
- data.tar.gz: 4c4389faa04d97466a6eb820f6d114da988297a8d6251e0bc53e7222a12c2877
3
+ metadata.gz: a471414ea1cf109043c336808b56d0b3bd5f5475b17ee4e24b5140e1e9483fef
4
+ data.tar.gz: 76db7d82a963f497ff35213106b98d7eb7f8b7c0af5db806498d23b00a10d167
5
5
  SHA512:
6
- metadata.gz: c448c3b6351c4e3d43f816eda943a0631f15f48b678ac48750cde3c206d87ffa0432052e746c5404e37ce8f13d3f80abb14bb683652d3e86dbcf9056f6023956
7
- data.tar.gz: 1f6aade1baddbce91a70a391448cfa767403d05f114dd312bbb80fbf61992e3b85eb813b64b2eb48e4bf8238f99083d9706ab9d6b5c3e392891aecf3c87a7720
6
+ metadata.gz: 4363d40850663bb72da0b26b05df60785be77240a2a1d268d4445ee4e9788eb3098eeaa19b1a305f1032df20e6fcd192e848f633ba22a56ba1468fe01eef84dd
7
+ data.tar.gz: 932e4c226e1d5712540c7d86b853a9e81b385567d7841e7386af80d15408201001464a3cc9b70e16c949d8daa19ce41805e88fbed6cd31b2b54ee4402ebdc5cf
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
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">
2
+ <img src="https://www.peopledatalabs.com/images/logos/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>
@@ -120,12 +120,6 @@ Peopledatalabs::Cleaner.school(kind: 'name', value: 'university of oregon')
120
120
  Peopledatalabs::JobTitle.retrieve(job_title: 'data scientist')
121
121
  ```
122
122
 
123
- **Using Skill Enrichment API**
124
- ```ruby
125
- # Get Skill Enrichment
126
- Peopledatalabs::Skill.retrieve(skill: 'c++')
127
- ```
128
-
129
123
  **Using IP Enrichment API**
130
124
  ```ruby
131
125
  # Get IP Enrichment
@@ -169,7 +163,6 @@ Peopledatalabs.sandbox = true
169
163
  | [Location Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#locationclean) | `Peopledatalabs::Cleaner.location(...params)` |
170
164
  | [School Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#schoolclean) | `Peopledatalabs::Cleaner.school(...params)` |
171
165
  | [Job Title Enrichment API](https://docs.peopledatalabs.com/docs/job-title-enrichment-api) | `Peopledatalabs::JobTitle.retrieve(...params)` |
172
- | [Skill Enrichment API](https://docs.peopledatalabs.com/docs/skill-enrichment-api) | `Peopledatalabs::Skill.retrieve(...params)` |
173
166
 
174
167
  ## 📘 Documentation <a name="documentation"></a>
175
168
 
@@ -86,11 +86,6 @@ module Peopledatalabs
86
86
  if (!field)
87
87
  result = { 'status' => 400, 'message' => 'Missing job_title' }
88
88
  end
89
- elsif path.include? '/skill'
90
- field = params['skill']
91
- if (!field)
92
- result = { 'status' => 400, 'message' => 'Missing skill' }
93
- end
94
89
  elsif path.include? '/ip'
95
90
  field = params['ip']
96
91
  if (!field)
@@ -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, updated_title_roles: false)
5
+ def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false)
6
6
 
7
7
  params = {
8
8
  'field' => field,
@@ -10,7 +10,6 @@ module Peopledatalabs
10
10
  'size' => size,
11
11
  'pretty' => pretty,
12
12
  'titlecase' => titlecase,
13
- 'updated_title_roles' => updated_title_roles,
14
13
  };
15
14
 
16
15
  headers = {
@@ -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, updated_title_roles: false, min_confidence: 'very low')
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, updated_title_roles: 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, 'updated_title_roles' => updated_title_roles })
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, updated_title_roles: false)
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, updated_title_roles: false)
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 = {
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "3.2.0"
2
+ VERSION = "5.0.0"
3
3
  end
@@ -11,7 +11,6 @@ require 'peopledatalabs/resources/identify'
11
11
  require 'peopledatalabs/resources/retrieve'
12
12
  require 'peopledatalabs/resources/bulk'
13
13
  require 'peopledatalabs/resources/jobtitle'
14
- require 'peopledatalabs/resources/skill'
15
14
 
16
15
 
17
16
  # gem build peopledatalabs.gemspec
@@ -40,7 +39,6 @@ require 'peopledatalabs/resources/skill'
40
39
  # Peopledatalabs::Search.company(searchType: 'sql', size: 10, query: "SELECT * FROM company WHERE tags='big data' AND industry='financial services' AND location.country='united states';")
41
40
  # Peopledatalabs::Search.company(searchType: 'elastic', size: 10, query: { query: { bool: { must: [{term: {location_country: 'mexico'}}, {term: {job_title_role: 'health'}}, {exists: {field: 'phone_numbers'}}]}}})
42
41
  # Peopledatalabs::JobTitle.retrieve(job_title: 'data scientist')
43
- # Peopledatalabs::Skill.retrieve(skill: 'c++')
44
42
  # Peopledatalabs::Enrichment.ip(ip: '72.212.42.169')
45
43
 
46
44
  module Peopledatalabs
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: 3.2.0
4
+ version: 5.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: 2024-12-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -115,7 +114,6 @@ files:
115
114
  - lib/peopledatalabs/resources/jobtitle.rb
116
115
  - lib/peopledatalabs/resources/retrieve.rb
117
116
  - lib/peopledatalabs/resources/search.rb
118
- - lib/peopledatalabs/resources/skill.rb
119
117
  - lib/peopledatalabs/version.rb
120
118
  - peopledatalabs.gemspec
121
119
  homepage: https://www.peopledatalabs.com
@@ -127,7 +125,6 @@ metadata:
127
125
  github_repo: https://github.com/peopledatalabs/peopledatalabs-ruby
128
126
  documentation_uri: https://docs.peopledatalabs.com
129
127
  bug_tracker_uri: https://github.com/peopledatalabs/peopledatalabs-ruby/issues
130
- post_install_message:
131
128
  rdoc_options: []
132
129
  require_paths:
133
130
  - lib
@@ -142,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
139
  - !ruby/object:Gem::Version
143
140
  version: '0'
144
141
  requirements: []
145
- rubygems_version: 3.5.22
146
- signing_key:
142
+ rubygems_version: 3.6.7
147
143
  specification_version: 4
148
144
  summary: Official Ruby client for the People Data Labs API.
149
145
  test_files: []
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Peopledatalabs
4
- class Skill < APIResource
5
- def self.retrieve(skill:, pretty: false, titlecase: false)
6
-
7
- params = {
8
- 'skill' => skill,
9
- 'pretty' => pretty,
10
- 'titlecase' => titlecase,
11
- };
12
-
13
- headers = {
14
- 'Accept-Encoding' => 'gzip',
15
- 'User-Agent' => 'PDL-RUBY-SDK',
16
- }
17
- get(path: '/v5/skill/enrich', headers: headers, params: params)
18
- end
19
- end
20
- end
21
-