clearbit 0.2.5 → 0.2.6

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
  SHA1:
3
- metadata.gz: c7b53e7bc69e5ac4ca70858b99d172c240722d2b
4
- data.tar.gz: c17e0029ccc0a71d5349e56ce999c3f6b36dbbf4
3
+ metadata.gz: 2beb1aec64d6ee2b1a790f9c8fece0d77d587532
4
+ data.tar.gz: 72d0aa3337638aa8d820d01e8e946eb95f4b8b36
5
5
  SHA512:
6
- metadata.gz: 3ca3ca32365a1727a7ee936103dc59ecf098e392cd5dd46d8ab638eb5fc022432f88ccc8d93be5e442f78e9748fcc665f104ea80a4f59d2c2c0ee44fcae3027e
7
- data.tar.gz: 6e2f926cd4c77064a8289c753aaa73ccf5455fd69de80b0ec1c9ec76dc5752168ffde24c8f70c1ae785243cc52c4d966b3132bf9f7f9464ca81c1d694ad06959
6
+ metadata.gz: 2142c8232ef18bfbe91555413b4445b4ebbab4051c91033867c103f24f5ca33192887bca8ba5e3422de4a104cee8ec4cd1b07506202d81e13463ed6e0667c218
7
+ data.tar.gz: 7742fe7ee0d22f67edf32f5790325d5d922fbbf1a948a888f9cc9e0130c422f948c41d22fcb0a83db0181946fbb64a07a9f389860a4512b718e40b2097997db7
@@ -21,13 +21,13 @@ module Clearbit
21
21
  autoload :Autocomplete, 'clearbit/autocomplete'
22
22
  autoload :Base, 'clearbit/base'
23
23
  autoload :Enrichment, 'clearbit/enrichment'
24
- autoload :IPCompany, 'clearbit/ipcompany'
25
24
  autoload :Discovery, 'clearbit/discovery'
26
25
  autoload :Logo, 'clearbit/logo'
27
26
  autoload :Mash, 'clearbit/mash'
28
27
  autoload :Pending, 'clearbit/pending'
29
28
  autoload :Prospector, 'clearbit/prospector'
30
29
  autoload :Resource, 'clearbit/resource'
30
+ autoload :Reveal, 'clearbit/reveal'
31
31
  autoload :Risk, 'clearbit/risk'
32
32
  autoload :Watchlist, 'clearbit/watchlist'
33
33
  autoload :Webhook, 'clearbit/webhook'
@@ -0,0 +1,15 @@
1
+ module Clearbit
2
+ class Reveal < Base
3
+ endpoint 'https://reveal.clearbit.com'
4
+ path '/v1/companies'
5
+
6
+ def self.find(values)
7
+ self.new(get(:find, values))
8
+ rescue Nestful::ResourceNotFound
9
+ end
10
+
11
+ class << self
12
+ alias_method :[], :find
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Clearbit
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -151,12 +151,12 @@ files:
151
151
  - lib/clearbit/enrichment/person.rb
152
152
  - lib/clearbit/enrichment/person_company.rb
153
153
  - lib/clearbit/errors/invalid_webhook_signature.rb
154
- - lib/clearbit/ipcompany.rb
155
154
  - lib/clearbit/logo.rb
156
155
  - lib/clearbit/mash.rb
157
156
  - lib/clearbit/pending.rb
158
157
  - lib/clearbit/prospector.rb
159
158
  - lib/clearbit/resource.rb
159
+ - lib/clearbit/reveal.rb
160
160
  - lib/clearbit/risk.rb
161
161
  - lib/clearbit/version.rb
162
162
  - lib/clearbit/watchlist.rb
@@ -200,3 +200,4 @@ test_files:
200
200
  - spec/lib/clearbit/webhook_spec.rb
201
201
  - spec/spec_helper.rb
202
202
  - spec/support/helpers.rb
203
+ has_rdoc:
@@ -1,22 +0,0 @@
1
- module Clearbit
2
- class IPCompany < Base
3
- endpoint 'https://ipcompany.clearbit.com'
4
- path '/v1/companies'
5
-
6
- def self.find(values)
7
- if ip = values.delete(:ip)
8
- response = get(uri(:ip, ip), values)
9
-
10
- else
11
- raise ArgumentError, 'Invalid values'
12
- end
13
-
14
- self.new(response)
15
- rescue Nestful::ResourceNotFound
16
- end
17
-
18
- class << self
19
- alias_method :[], :find
20
- end
21
- end
22
- end