sourcing 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/examples/email.rb +1 -1
- data/lib/sourcing.rb +5 -1
- data/lib/sourcing/person.rb +1 -1
- data/lib/sourcing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6862b095153e5a7a326dee18bcaa0807ccefffa1
|
4
|
+
data.tar.gz: 58bdde4da5fd9719957eab8cfb34336a6d489d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3d574051d2f900b75c6f11c0144cf97d235037bd28351e0363143751408b750cc4e6dcd6648f8641e1ee182f00e26d9bb11d48bcf91d08935a9543150ffbd95
|
7
|
+
data.tar.gz: 3071d1b59cc0ad2421a96a8ec5e9f1c84ffcc7d321221c2f983b7a75daef84d5083130f498386d370e5bfaf7865a3bf255480714e1f31b09e4f3ef4df26a48c5
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
First authorize requests by setting the API key found on your [account's settings page](https://sourcing.io/profile).
|
22
22
|
|
23
|
-
Sourcing.
|
23
|
+
Sourcing.api_key = ENV['SOURCING_KEY']
|
24
24
|
|
25
25
|
Then you can lookup people by email address:
|
26
26
|
|
data/examples/email.rb
CHANGED
data/lib/sourcing.rb
CHANGED
@@ -2,13 +2,17 @@ require 'nestful'
|
|
2
2
|
require 'sourcing/version'
|
3
3
|
|
4
4
|
module Sourcing
|
5
|
-
def self.
|
5
|
+
def self.api_key=(value)
|
6
6
|
Base.options = {
|
7
7
|
:auth_type => :bearer,
|
8
8
|
:password => value
|
9
9
|
}
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.key=(value)
|
13
|
+
self.api_key = value
|
14
|
+
end
|
15
|
+
|
12
16
|
class Base < Nestful::Resource
|
13
17
|
endpoint 'https://api.sourcing.io'
|
14
18
|
end
|
data/lib/sourcing/person.rb
CHANGED
data/lib/sourcing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.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: 2013-10-
|
11
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|