nymeria 2.1.0 → 2.1.1

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: 58e73f183420322634d96df4d7c3b5c6690dcf463616b20924503f0811c066cc
4
- data.tar.gz: 64c95bfb5b79c377d3f4c7d0f88f6a18cc6b1f82f8f08894f63750b7ac183919
3
+ metadata.gz: b2ad235f1798e579af91a04387b8191f77f9e173f393293dd50a7af5242c55d5
4
+ data.tar.gz: ada577876db0f4ac9f991e546184f85bd7cd8e8a867505c9931889d1d975e44c
5
5
  SHA512:
6
- metadata.gz: 2e9aea0775aebe60b2d45b4c6f3b7924f18f613ca5801400e743ec65d18b1be91041091786395f5ceeeac5c40bda9dd35b840b7d62afaef81ef7b64b74e386a0
7
- data.tar.gz: c1bb36dc473ad9730f82f51a3f62056020c2727404aedeb5842296ded2dbbc0f63abd36991759296255964004317c79c25c3cdbe8ea0634e62127e215a08c6c9
6
+ metadata.gz: 35807d3143892dbde1ad9b6b114ef0a6450053a744680c4207d8982763830cf07cd7779c77565e9ff6097438b7d9e60d5781eddadb29e5d9d04d037c3aa51907
7
+ data.tar.gz: 2ad33da7ac13cff2986a0d8cc8757be777ae0f5ab26621a7b7b9c79fd30dc7f43ec19cd15fbb7628afd5623aa3a091845a9fbaa494e9ce8513377cae8201526c
data/README.md CHANGED
@@ -58,9 +58,9 @@ require 'nymeria'
58
58
  Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
59
59
 
60
60
  # You can enrich a single record like this.
61
- resp = Nymeria::Person.enrich({ profile: 'github.com/nymeriaio' })
61
+ resp = Nymeria::Person.enrich({ profile: 'linkedin.com/in/prophittcorey' })
62
62
 
63
- puts "#{c.data['id']} #{c.data['first_name']} #{c.data['skills']}" if c.status == 200
63
+ puts "#{resp.data['id']} #{resp.data['first_name']} #{resp.data['emails']}" if resp.status == 200
64
64
 
65
65
  # You can also pass multiple records as an array to do a bulk enrichment.
66
66
  resp = Nymeria::Person.bulk_enrich({ params: { email: 'foo@bar.com'} }, { params: { profile: 'linkedin.com/in/wozniaksteve' }})
@@ -109,16 +109,26 @@ as the require parameter.
109
109
 
110
110
  ### Searching for People
111
111
 
112
+ You can search for people based on:
113
+
114
+ 1. first_name
115
+ 2. last_name
116
+ 3. title
117
+ 4. company
118
+ 5. industry
119
+ 6. location
120
+ 7. country
121
+
112
122
  ```ruby
113
123
  require 'nymeria'
114
124
 
115
125
  Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
116
126
 
117
- people = Nymeria::Person.search({ query: 'skills:["Ruby on Rails"]' })
127
+ people = Nymeria::Person.search({ first_name: 'corey', company: 'nymeria' })
118
128
 
119
129
  if people.status == 200
120
130
  people.each do |p|
121
- puts p.dig('data', 'emails')
131
+ puts p.dig('emails')
122
132
  end
123
133
  end
124
134
  ```
@@ -127,7 +137,7 @@ end
127
137
 
128
138
  MIT License
129
139
 
130
- Copyright (c) 2022, Nymeria LLC.
140
+ Copyright (c) 2025, Nymeria LLC.
131
141
 
132
142
  Permission is hereby granted, free of charge, to any person obtaining a copy
133
143
  of this software and associated documentation files (the "Software"), to deal
@@ -21,7 +21,7 @@ module Nymeria
21
21
  )
22
22
  end
23
23
 
24
- # args: { query: 'name:Nymeria', size: 10, from: 0 }
24
+ # args: { name: '', size: '', location: '', limit: 10, offset: 0 }
25
25
  def self.search(args={})
26
26
  uri = URI("#{BASE_URL}/company/search")
27
27
 
@@ -60,27 +60,7 @@ module Nymeria
60
60
  )
61
61
  end
62
62
 
63
- # args: { name: '', location: '', country: '' }
64
- def self.identify(args={})
65
- uri = URI("#{BASE_URL}/person/identify")
66
-
67
- uri.query = URI.encode_www_form(args)
68
-
69
- req = Nymeria::request(Net::HTTP::Get.new(uri))
70
-
71
- res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
72
- http.request(req)
73
- end
74
-
75
- return JSON.parse(res.body)
76
- rescue => e
77
- OpenStruct.new(
78
- success?: false,
79
- error: "#{e}"
80
- )
81
- end
82
-
83
- # args: { query: 'first_name:john & last_name:danner', size: 10, from: 0 }
63
+ # args: { first_name: '', last_name: '', title: '', company: '', limit: 10, offset: 0 }
84
64
  def self.search(args={})
85
65
  uri = URI("#{BASE_URL}/person/search")
86
66
 
data/lib/nymeria.rb CHANGED
@@ -10,7 +10,7 @@ require 'net/http'
10
10
  # Nymeria is our primary module namespace.
11
11
  module Nymeria
12
12
  BASE_URL = 'https://www.nymeria.io/api/v4'
13
- USER_AGENT = 'nymeria.rb/2.1.0'
13
+ USER_AGENT = 'nymeria.rb/2.2.1'
14
14
 
15
15
  class << self
16
16
  def request(req)
data/nymeria.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'nymeria'
5
- s.version = '2.1.0'
5
+ s.version = '2.1.1'
6
6
  s.summary = 'Easily interact with Nymeria\'s API to find and verify people\'s contact information.'
7
7
  s.description = 'Nymeria enables people to easily discover and connect with people. This gem is a light weight wrapper around Nymeria\'s API. With this gem you can easily interact with the API to find and verify people\'s contact information.'
8
8
  s.authors = ['Nymeria, LLC']
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
10
10
  s.files = `git ls-files -z`.split("\x0")
11
11
  s.require_paths = ['lib']
12
12
  s.homepage = 'https://www.nymeria.io'
13
- s.metadata = { "source_code_uri" => "https://github.com/nymeriaio/nymeria.rb" }
13
+ s.metadata = { "source_code_uri" => "https://github.com/nymeria-io/nymeria.rb" }
14
14
  s.license = 'MIT'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nymeria
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nymeria, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-21 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Nymeria enables people to easily discover and connect with people. This
14
14
  gem is a light weight wrapper around Nymeria's API. With this gem you can easily
@@ -30,7 +30,7 @@ homepage: https://www.nymeria.io
30
30
  licenses:
31
31
  - MIT
32
32
  metadata:
33
- source_code_uri: https://github.com/nymeriaio/nymeria.rb
33
+ source_code_uri: https://github.com/nymeria-io/nymeria.rb
34
34
  post_install_message:
35
35
  rdoc_options: []
36
36
  require_paths:
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
- rubygems_version: 3.4.10
49
+ rubygems_version: 3.3.5
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: Easily interact with Nymeria's API to find and verify people's contact information.