nymeria 2.0.7 → 2.1.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 +4 -4
- data/README.md +5 -5
- data/lib/nymeria.rb +4 -5
- data/nymeria.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58e73f183420322634d96df4d7c3b5c6690dcf463616b20924503f0811c066cc
|
|
4
|
+
data.tar.gz: 64c95bfb5b79c377d3f4c7d0f88f6a18cc6b1f82f8f08894f63750b7ac183919
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e9aea0775aebe60b2d45b4c6f3b7924f18f613ca5801400e743ec65d18b1be91041091786395f5ceeeac5c40bda9dd35b840b7d62afaef81ef7b64b74e386a0
|
|
7
|
+
data.tar.gz: c1bb36dc473ad9730f82f51a3f62056020c2727404aedeb5842296ded2dbbc0f63abd36991759296255964004317c79c25c3cdbe8ea0634e62127e215a08c6c9
|
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Nymeria's [public API](https://www.nymeria.io/developers) so you don't have to.
|
|
|
13
13
|
#### Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
gem install nymeria
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
#### Setting and Checking an API Key
|
|
@@ -21,7 +21,7 @@ $ gem install nymeria
|
|
|
21
21
|
```ruby
|
|
22
22
|
require 'nymeria'
|
|
23
23
|
|
|
24
|
-
Nymeria
|
|
24
|
+
Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
All actions that interact with the Nymeria service assume an API key has been
|
|
@@ -33,7 +33,7 @@ can be set at the start of your program.
|
|
|
33
33
|
```ruby
|
|
34
34
|
require 'nymeria'
|
|
35
35
|
|
|
36
|
-
Nymeria
|
|
36
|
+
Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
|
|
37
37
|
|
|
38
38
|
resp = Nymeria::Email.verify('dev@nymeria.io')
|
|
39
39
|
|
|
@@ -55,7 +55,7 @@ are set up to send and receive email, etc.
|
|
|
55
55
|
```ruby
|
|
56
56
|
require 'nymeria'
|
|
57
57
|
|
|
58
|
-
Nymeria
|
|
58
|
+
Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
|
|
59
59
|
|
|
60
60
|
# You can enrich a single record like this.
|
|
61
61
|
resp = Nymeria::Person.enrich({ profile: 'github.com/nymeriaio' })
|
|
@@ -112,7 +112,7 @@ as the require parameter.
|
|
|
112
112
|
```ruby
|
|
113
113
|
require 'nymeria'
|
|
114
114
|
|
|
115
|
-
Nymeria
|
|
115
|
+
Nymeria::API_KEY = 'YOUR API KEY GOES HERE'
|
|
116
116
|
|
|
117
117
|
people = Nymeria::Person.search({ query: 'skills:["Ruby on Rails"]' })
|
|
118
118
|
|
data/lib/nymeria.rb
CHANGED
|
@@ -7,15 +7,14 @@ require 'nymeria/person'
|
|
|
7
7
|
require 'json'
|
|
8
8
|
require 'net/http'
|
|
9
9
|
|
|
10
|
-
API_KEY = ''
|
|
11
|
-
BASE_URL = 'https://www.nymeria.io/api/v4'
|
|
12
|
-
USER_AGENT = 'nymeria.rb/2.0.6'
|
|
13
|
-
|
|
14
10
|
# Nymeria is our primary module namespace.
|
|
15
11
|
module Nymeria
|
|
12
|
+
BASE_URL = 'https://www.nymeria.io/api/v4'
|
|
13
|
+
USER_AGENT = 'nymeria.rb/2.1.0'
|
|
14
|
+
|
|
16
15
|
class << self
|
|
17
16
|
def request(req)
|
|
18
|
-
req['X-Api-Key'] = API_KEY
|
|
17
|
+
req['X-Api-Key'] = defined?(API_KEY) ? API_KEY : ''
|
|
19
18
|
req['User-Agent'] = USER_AGENT
|
|
20
19
|
req
|
|
21
20
|
end
|
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.0
|
|
5
|
+
s.version = '2.1.0'
|
|
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://
|
|
13
|
+
s.metadata = { "source_code_uri" => "https://github.com/nymeriaio/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.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nymeria, LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-10-21 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://
|
|
33
|
+
source_code_uri: https://github.com/nymeriaio/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.
|
|
49
|
+
rubygems_version: 3.4.10
|
|
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.
|