clearbit 0.1.1 → 0.1.2

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: 054fc09e6e61770bf09ce3ca6fe1935eed6b01fe
4
- data.tar.gz: 261b515c9e05be121726d51826bddaf56ca7f0e8
3
+ metadata.gz: d68455a60377bc6791b4ed40e4c600c562e44acd
4
+ data.tar.gz: 78efc3fa58d30a2d046064ab9e2f623340af1d98
5
5
  SHA512:
6
- metadata.gz: 26a38b400a549c2308cfc9dadb1f2a86fa0a73a4f872b691cad8bd835bee8658d6795ad6a59fef98321b0afcc25614ea3aa03a3697d05bf6d45a55d68a7be0ca
7
- data.tar.gz: be6d3100f957206099fcc3f74d383c5e4f2d0b2bdb7cf992219cddc6759fe6ce1c704d13010f7e0997d476c825bbcdc60f6cf0739801e00b76c5444fd5c2f5bc
6
+ metadata.gz: c1ec169b5f211542781605efe66c4c6f99fea420dea60d23dc36122e631906324f3a69d5278c3b5c16b3efa4e15677164a7b1adc5a2af814fc3a22d07d0ece21
7
+ data.tar.gz: 35d6afa7db1b6bacc2376803e9e3c5595fad7ce9434f3dcd58107cc32e1129eb80fcba408a695bcc85504170bc05eec619025aec84f0fe51df0bd1397249d6b2
data/README.md CHANGED
@@ -18,13 +18,13 @@ 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.com/profile).
21
+ First authorize requests by setting the API key found on your [account's settings page](https://clearbit.com/keys).
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::Streaming::Person[email: 'info@eribium.org']
27
+ person = Clearbit::Streaming::Person[email: 'alex@alexmaccaw.com']
28
28
 
29
29
  If the person can't be found, then `nil` will be returned.
30
30
 
@@ -44,7 +44,7 @@ See the [documentation](https://clearbit.com/docs#company-api) for more informat
44
44
 
45
45
  The gem also includes a `clearbit` executable, which you can use like this:
46
46
 
47
- $ clearbit person --email info@eribium.org
47
+ $ clearbit person --email alex@alexmaccaw.com
48
48
 
49
49
  {
50
50
  "name": {
@@ -68,4 +68,4 @@ Or to look up a company:
68
68
  "Travis Kalanick",
69
69
  "Garrett Camp"
70
70
  ],
71
- ...
71
+ ...
data/examples/person.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require 'clearbit'
2
2
  require 'pp'
3
3
 
4
- pp Clearbit::Person[email: 'info@eribium.org']
4
+ pp Clearbit::Person[email: 'alex@alexmaccaw.com']
@@ -51,5 +51,9 @@ module Clearbit
51
51
  class << self
52
52
  alias_method :[], :find
53
53
  end
54
+
55
+ def flag!(attrs = {})
56
+ self.class.post(uri('flag'), attrs)
57
+ end
54
58
  end
55
59
  end
@@ -62,5 +62,9 @@ module Clearbit
62
62
  url, options
63
63
  ).execute
64
64
  end
65
+
66
+ def uri(*parts)
67
+ id ? self.class.uri(id, *parts) : self.class.uri(*parts)
68
+ end
65
69
  end
66
70
  end
@@ -1,3 +1,3 @@
1
1
  module Clearbit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1.1
4
+ version: 0.1.2
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-25 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler