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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a3cdccc9a76f5753301844526a4ee0b739e2177
4
- data.tar.gz: 28d4b914401787f4aa352c187f7cf72f1049e7d4
3
+ metadata.gz: 054fc09e6e61770bf09ce3ca6fe1935eed6b01fe
4
+ data.tar.gz: 261b515c9e05be121726d51826bddaf56ca7f0e8
5
5
  SHA512:
6
- metadata.gz: 805deb5d946a10a2f9e2709c402469a305fffabdb5a3874b78952107906a4521aece70423a80d5aa46c0cbf3e7a5a1f74743f7fb0892f484cb5fc2847bd6c96a
7
- data.tar.gz: 44828fc7c16005f06370c079dfde0aceb381a36f8325858f610acfb4c27f28928b687fb6770b74445be79f6a9a7435c8f4f3ffec8e948c782be18d9d40ed6d57
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.co](https://clearbit.co).
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.co/profile).
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.co/docs/person) for more information.
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.co/docs/company) for more information.
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.co"]
11
- spec.description = %q{API client for clearbit.co}
12
- spec.summary = %q{API client for clearbit.co}
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
 
@@ -0,0 +1,4 @@
1
+ require 'clearbit'
2
+ require 'pp'
3
+
4
+ pp Clearbit::Company[domain: 'stripe.com']
File without changes
@@ -0,0 +1,4 @@
1
+ require 'clearbit'
2
+ require 'pp'
3
+
4
+ pp Clearbit::Watchlist.search(name: 'Smith')
data/lib/clearbit/base.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Clearbit
2
2
  class Base < Resource
3
- endpoint 'https://api.clearbit.co'
3
+ endpoint 'https://api.clearbit.com'
4
4
  options :format => :json
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Clearbit
2
2
  class Company < Base
3
- endpoint 'https://company.clearbit.co'
3
+ endpoint 'https://company.clearbit.com'
4
4
  path '/v1/companies'
5
5
 
6
6
  def self.find(values, options = {})
@@ -1,6 +1,6 @@
1
1
  module Clearbit
2
2
  class Person < Base
3
- endpoint 'https://person.clearbit.co'
3
+ endpoint 'https://person.clearbit.com'
4
4
  path '/v1/people'
5
5
 
6
6
  def self.find(values, options = {})
@@ -1,6 +1,6 @@
1
1
  module Clearbit
2
2
  class PersonCompany < Base
3
- endpoint 'https://person.clearbit.co'
3
+ endpoint 'https://person.clearbit.com'
4
4
  path '/v1/combined'
5
5
 
6
6
  def self.find(values, options = {})
@@ -1,7 +1,7 @@
1
1
  module Clearbit
2
2
  module Streaming
3
3
  class Company < Clearbit::Company
4
- endpoint 'https://company-stream.clearbit.co'
4
+ endpoint 'https://company-stream.clearbit.com'
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Clearbit
2
2
  module Streaming
3
3
  class Person < Clearbit::Person
4
- endpoint 'https://person-stream.clearbit.co'
4
+ endpoint 'https://person-stream.clearbit.com'
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Clearbit
2
2
  module Streaming
3
3
  class PersonCompany < Clearbit::PersonCompany
4
- endpoint 'https://person-stream.clearbit.co'
4
+ endpoint 'https://person-stream.clearbit.com'
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Clearbit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Clearbit
2
2
  class Watchlist < Base
3
- endpoint 'https://watchlist.clearbit.co'
3
+ endpoint 'https://watchlist.clearbit.com'
4
4
  path '/v1/search/all'
5
5
 
6
6
  def self.search(params, options = {})
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.0
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-10-28 00:00:00.000000000 Z
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.co
55
+ description: API client for clearbit.com
56
56
  email:
57
- - alex@clearbit.co
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/email.rb
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.co
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.