peopledatalabs 2.1.0 → 2.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: '096a1aa477f47a8a06b24b8e844ec172bdf211e138ef25190f995f0484d4f3c4'
4
- data.tar.gz: e292b8c301c45ce8b6336840ec2bad399193940e7ae638d85ebd1724d404d99b
3
+ metadata.gz: 2297c141ffcf542022f6617d899b756afcd81308501ab7925b7002d442fe5956
4
+ data.tar.gz: aa1b7ea805e0b2132864a7cf19a72d50274a8d54d154ed977dfcd46d6bae2c06
5
5
  SHA512:
6
- metadata.gz: cf22a8da7cf8b9bc8eb0f099a96a99c4f811fdd547f0986580c99202a5d4e38b1a7db9a4132435bdb3c36ed5414afba19a2f34412929e560386754b85ff4ad80
7
- data.tar.gz: 8f06132ea51c12bdfc7712895eddfb198e057b6ea325a2f89594c75b292844d1e589bff4559c1e42d6ca944568749f3b9a72cf28320b35c355369899f5df72a1
6
+ metadata.gz: cb1d27e8eb7f6aa5a03b9f35dc8b11d9030bca40f02247bd66d7106406d6c17af3eaabd0b7e05afd09e8479b7f89a754c37375a38536e3b8d12decda1d834a8d
7
+ data.tar.gz: 81be8e1f48533fcd7f9518870288834adc59f992d687292209bc0583ba4de10dd6d3834dcca85cc988a34dcb52c97b0cffc0c25578bed0527e5fce50297b6480
@@ -2,13 +2,15 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Autocomplete < APIResource
5
- def self.retrieve(field:, text: '', size: 10, pretty: false)
5
+ def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false, beta: false)
6
6
 
7
7
  params = {
8
8
  'field' => field,
9
9
  'text' => text,
10
10
  'size' => size,
11
11
  'pretty' => pretty,
12
+ 'titlecase' => titlecase,
13
+ 'beta' => beta,
12
14
  };
13
15
 
14
16
  headers = {
@@ -18,12 +18,13 @@ 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)
21
+ def self.ip(ip:, return_ip_location: false, return_ip_metadata: false, return_person: false, return_if_unmatched: false)
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
+ 'return_if_unmatched' => return_if_unmatched,
27
28
  }
28
29
  headers = {
29
30
  'Accept-Encoding' => 'gzip',
@@ -2,11 +2,12 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class JobTitle < APIResource
5
- def self.retrieve(job_title:, pretty: false)
5
+ def self.retrieve(job_title:, pretty: false, titlecase: false)
6
6
 
7
7
  params = {
8
8
  'job_title' => job_title,
9
9
  'pretty' => pretty,
10
+ 'titlecase' => titlecase,
10
11
  };
11
12
 
12
13
  headers = {
@@ -2,11 +2,12 @@
2
2
 
3
3
  module Peopledatalabs
4
4
  class Skill < APIResource
5
- def self.retrieve(skill:, pretty: false)
5
+ def self.retrieve(skill:, pretty: false, titlecase: false)
6
6
 
7
7
  params = {
8
8
  'skill' => skill,
9
9
  'pretty' => pretty,
10
+ 'titlecase' => titlecase,
10
11
  };
11
12
 
12
13
  headers = {
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
@@ -15,7 +15,7 @@ require 'peopledatalabs/resources/skill'
15
15
 
16
16
 
17
17
  # gem build peopledatalabs.gemspec
18
- # gem install ./peopledatalabs-2.1.0.gem
18
+ # gem install ./peopledatalabs-2.2.0.gem
19
19
  # irb
20
20
  # require 'peopledatalabs'
21
21
  # rake spec PDL_API_KEY=API_KEY
@@ -34,10 +34,10 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ["lib"]
36
36
 
37
- spec.add_development_dependency "bundler", "~> 2.3"
37
+ spec.add_development_dependency "bundler", "~> 2.4"
38
38
  spec.add_development_dependency "rake", "~> 13.0"
39
- spec.add_development_dependency "rspec", "~> 3.0"
39
+ spec.add_development_dependency "rspec", "~> 3.12"
40
40
 
41
- spec.add_runtime_dependency "http", "~> 5.0"
41
+ spec.add_runtime_dependency "http", "~> 5.1"
42
42
  spec.add_runtime_dependency "forwardable", "~> 1.3"
43
43
  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: 2.1.0
4
+ version: 2.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: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.3'
19
+ version: '2.4'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.3'
26
+ version: '2.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '3.12'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '3.12'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: http
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.0'
61
+ version: '5.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.0'
68
+ version: '5.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: forwardable
71
71
  requirement: !ruby/object:Gem::Requirement