peopledatalabs 4.0.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: d2921f24c193e5ff6e45de2e4ad8fcfb4455e471dbd3619b6aa9119a23233fcb
4
- data.tar.gz: 2c83241663524e402202ac56367ad326c26ac0541deddddfa79d12c5f9b82e3e
3
+ metadata.gz: a471414ea1cf109043c336808b56d0b3bd5f5475b17ee4e24b5140e1e9483fef
4
+ data.tar.gz: 76db7d82a963f497ff35213106b98d7eb7f8b7c0af5db806498d23b00a10d167
5
5
  SHA512:
6
- metadata.gz: 02a191506e16b8bbd5bdc67edefe3fb127f9bdd4ea1c21fe5c2d35eadce14e82f7c71f78ba9079c107dfa113d9dbbc2e13f6849f1fbd2b5f44608ef7a7be2a83
7
- data.tar.gz: 157ff616dd93783a026489503698d278e63e8b7f47192acf6849558579a2431e57e7abec71b7db15db196b3a2e5a292ee373cb34cad7cf7548593fb14938ee18
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)
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "4.0.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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peopledatalabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - People Data Labs
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler
@@ -114,7 +114,6 @@ files:
114
114
  - lib/peopledatalabs/resources/jobtitle.rb
115
115
  - lib/peopledatalabs/resources/retrieve.rb
116
116
  - lib/peopledatalabs/resources/search.rb
117
- - lib/peopledatalabs/resources/skill.rb
118
117
  - lib/peopledatalabs/version.rb
119
118
  - peopledatalabs.gemspec
120
119
  homepage: https://www.peopledatalabs.com
@@ -140,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
139
  - !ruby/object:Gem::Version
141
140
  version: '0'
142
141
  requirements: []
143
- rubygems_version: 3.6.2
142
+ rubygems_version: 3.6.7
144
143
  specification_version: 4
145
144
  summary: Official Ruby client for the People Data Labs API.
146
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
-