clearbit 0.1.0 → 0.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 +4 -4
- data/README.md +6 -6
- data/apihub.gemspec +3 -3
- data/examples/company.rb +4 -0
- data/examples/{email.rb → person.rb} +0 -0
- data/examples/watchlist.rb +4 -0
- data/lib/clearbit/base.rb +1 -1
- data/lib/clearbit/company.rb +1 -1
- data/lib/clearbit/person.rb +1 -1
- data/lib/clearbit/person_company.rb +1 -1
- data/lib/clearbit/streaming/company.rb +1 -1
- data/lib/clearbit/streaming/person.rb +1 -1
- data/lib/clearbit/streaming/person_company.rb +1 -1
- data/lib/clearbit/version.rb +1 -1
- data/lib/clearbit/watchlist.rb +1 -1
- metadata +8 -7
- data/LICENSE.txt +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 054fc09e6e61770bf09ce3ca6fe1935eed6b01fe
|
|
4
|
+
data.tar.gz: 261b515c9e05be121726d51826bddaf56ca7f0e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26a38b400a549c2308cfc9dadb1f2a86fa0a73a4f872b691cad8bd835bee8658d6795ad6a59fef98321b0afcc25614ea3aa03a3697d05bf6d45a55d68a7be0ca
|
|
7
|
+
data.tar.gz: be6d3100f957206099fcc3f74d383c5e4f2d0b2bdb7cf992219cddc6759fe6ce1c704d13010f7e0997d476c825bbcdc60f6cf0739801e00b76c5444fd5c2f5bc
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Clearbit
|
|
2
2
|
|
|
3
|
-
A Ruby API client to [https://clearbit.
|
|
3
|
+
A Ruby API client to [https://clearbit.com](https://clearbit.com).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -18,27 +18,27 @@ Or install it yourself as:
|
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
-
First authorize requests by setting the API key found on your [account's settings page](https://clearbit.
|
|
21
|
+
First authorize requests by setting the API key found on your [account's settings page](https://clearbit.com/profile).
|
|
22
22
|
|
|
23
23
|
Clearbit.key = ENV['CLEARBIT_KEY']
|
|
24
24
|
|
|
25
25
|
Then you can lookup people by email address:
|
|
26
26
|
|
|
27
|
-
person = Clearbit::Person[email: 'info@eribium.org']
|
|
27
|
+
person = Clearbit::Streaming::Person[email: 'info@eribium.org']
|
|
28
28
|
|
|
29
29
|
If the person can't be found, then `nil` will be returned.
|
|
30
30
|
|
|
31
|
-
See the [documentation](https://clearbit.
|
|
31
|
+
See the [documentation](https://clearbit.com/docs#person-api) for more information.
|
|
32
32
|
|
|
33
33
|
## Company lookup
|
|
34
34
|
|
|
35
35
|
You can lookup company data by domain name:
|
|
36
36
|
|
|
37
|
-
company = Clearbit::Company[domain: 'uber.com']
|
|
37
|
+
company = Clearbit::Streaming::Company[domain: 'uber.com']
|
|
38
38
|
|
|
39
39
|
If the company can't be found, then `nil` will be returned.
|
|
40
40
|
|
|
41
|
-
See the [documentation](https://clearbit.
|
|
41
|
+
See the [documentation](https://clearbit.com/docs#company-api) for more information.
|
|
42
42
|
|
|
43
43
|
## CLI
|
|
44
44
|
|
data/apihub.gemspec
CHANGED
|
@@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "clearbit"
|
|
8
8
|
spec.version = Clearbit::VERSION
|
|
9
9
|
spec.authors = ["Alex MacCaw"]
|
|
10
|
-
spec.email = ["alex@clearbit.
|
|
11
|
-
spec.description = %q{API client for clearbit.
|
|
12
|
-
spec.summary = %q{API client for clearbit.
|
|
10
|
+
spec.email = ["alex@clearbit.com"]
|
|
11
|
+
spec.description = %q{API client for clearbit.com}
|
|
12
|
+
spec.summary = %q{API client for clearbit.com}
|
|
13
13
|
spec.homepage = "https://github.com/maccman/clearbit-ruby"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
data/examples/company.rb
ADDED
|
File without changes
|
data/lib/clearbit/base.rb
CHANGED
data/lib/clearbit/company.rb
CHANGED
data/lib/clearbit/person.rb
CHANGED
data/lib/clearbit/version.rb
CHANGED
data/lib/clearbit/watchlist.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clearbit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex MacCaw
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -52,9 +52,9 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 1.0.7
|
|
55
|
-
description: API client for clearbit.
|
|
55
|
+
description: API client for clearbit.com
|
|
56
56
|
email:
|
|
57
|
-
- alex@clearbit.
|
|
57
|
+
- alex@clearbit.com
|
|
58
58
|
executables:
|
|
59
59
|
- clearbit
|
|
60
60
|
extensions: []
|
|
@@ -62,12 +62,13 @@ extra_rdoc_files: []
|
|
|
62
62
|
files:
|
|
63
63
|
- ".gitignore"
|
|
64
64
|
- Gemfile
|
|
65
|
-
- LICENSE.txt
|
|
66
65
|
- README.md
|
|
67
66
|
- Rakefile
|
|
68
67
|
- apihub.gemspec
|
|
69
68
|
- bin/clearbit
|
|
70
|
-
- examples/
|
|
69
|
+
- examples/company.rb
|
|
70
|
+
- examples/person.rb
|
|
71
|
+
- examples/watchlist.rb
|
|
71
72
|
- lib/clearbit.rb
|
|
72
73
|
- lib/clearbit/base.rb
|
|
73
74
|
- lib/clearbit/company.rb
|
|
@@ -104,5 +105,5 @@ rubyforge_project:
|
|
|
104
105
|
rubygems_version: 2.2.2
|
|
105
106
|
signing_key:
|
|
106
107
|
specification_version: 4
|
|
107
|
-
summary: API client for clearbit.
|
|
108
|
+
summary: API client for clearbit.com
|
|
108
109
|
test_files: []
|
data/LICENSE.txt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2013 Alex MacCaw
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|