clearbit-slack 0.1.3 → 0.1.5
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/lib/clearbit/slack/attachments/company.rb +18 -14
- data/lib/clearbit/slack/attachments/person.rb +17 -8
- data/lib/clearbit/slack/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: 9373ce880eaebc8f34d18c9aeb1ef0ff48d23207
|
4
|
+
data.tar.gz: 0ff9dbb922d9f691222dc61c2ee8e0a86653f189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25816ce7549e534c23ac6980bc668a3cf1519e6157f12b0547a7a2be4b8309deaf4f5f9ffa7df713263e96d6656ac892b5269ec3a0daf01217be89e123c75c41
|
7
|
+
data.tar.gz: 524a2d4cb50d6ac769856b9790acda6951996c7f7bac13e96f5b96ad349266d1cc52f8f40945d776d91bf8f999d435f6fc0b655c3b04bef8adf1ed8663fc19d1
|
data/README.md
CHANGED
@@ -56,7 +56,7 @@ module APIHub
|
|
56
56
|
|
57
57
|
def perform(customer_id)
|
58
58
|
customer = Customer.find!(customer_id)
|
59
|
-
result = Clearbit::Enrichment.find(email: customer.email, stream: true)
|
59
|
+
result = Clearbit::Enrichment.find(email: customer.email, given_name: customer.first_name, family_name, customer.last_name, stream: true)
|
60
60
|
|
61
61
|
result.merge!(
|
62
62
|
email: customer.email,
|
@@ -27,28 +27,17 @@ module Clearbit
|
|
27
27
|
|
28
28
|
def fields
|
29
29
|
[
|
30
|
-
website,
|
31
|
-
raised,
|
32
30
|
location,
|
31
|
+
website,
|
33
32
|
type,
|
33
|
+
raised,
|
34
34
|
employees,
|
35
|
-
angellist(company.angellist),
|
36
|
-
facebook(company.facebook),
|
37
35
|
linkedin(company.linkedin),
|
38
36
|
twitter(company.twitter),
|
37
|
+
tech
|
39
38
|
]
|
40
39
|
end
|
41
40
|
|
42
|
-
def type
|
43
|
-
return unless company.type
|
44
|
-
field 'Type', company.type
|
45
|
-
end
|
46
|
-
|
47
|
-
def employees
|
48
|
-
return unless company.employees
|
49
|
-
field 'Employees', format_number(company.employees)
|
50
|
-
end
|
51
|
-
|
52
41
|
def location
|
53
42
|
return unless company.location
|
54
43
|
field 'Location', company.location
|
@@ -59,10 +48,25 @@ module Clearbit
|
|
59
48
|
field 'Website', company.url
|
60
49
|
end
|
61
50
|
|
51
|
+
def type
|
52
|
+
return unless company.type
|
53
|
+
field 'Type', company.type
|
54
|
+
end
|
55
|
+
|
56
|
+
def employees
|
57
|
+
return unless company.employees
|
58
|
+
field 'Employees', format_number(company.employees)
|
59
|
+
end
|
60
|
+
|
62
61
|
def raised
|
63
62
|
return unless company.raised
|
64
63
|
field 'Raised', "$#{format_number(company.raised)}"
|
65
64
|
end
|
65
|
+
|
66
|
+
def tech
|
67
|
+
return unless company.tech
|
68
|
+
field 'Tech', company.tech.join(', '), false
|
69
|
+
end
|
66
70
|
end
|
67
71
|
end
|
68
72
|
end
|
@@ -22,12 +22,11 @@ module Clearbit
|
|
22
22
|
[
|
23
23
|
bio,
|
24
24
|
email,
|
25
|
-
employment,
|
26
|
-
position,
|
27
25
|
location,
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
employment,
|
27
|
+
title,
|
28
|
+
role,
|
29
|
+
seniority,
|
31
30
|
linkedin(person.linkedin),
|
32
31
|
twitter(person.twitter),
|
33
32
|
]
|
@@ -43,14 +42,24 @@ module Clearbit
|
|
43
42
|
field 'Email', person.email
|
44
43
|
end
|
45
44
|
|
45
|
+
def title
|
46
|
+
return unless person.employment && person.employment.title
|
47
|
+
field 'Title', person.employment.title
|
48
|
+
end
|
49
|
+
|
46
50
|
def employment
|
47
51
|
return unless person.employment && person.employment.name
|
48
52
|
field 'Employment', person.employment.name
|
49
53
|
end
|
50
54
|
|
51
|
-
def
|
52
|
-
return unless person.employment && person.employment.
|
53
|
-
field '
|
55
|
+
def role
|
56
|
+
return unless person.employment && person.employment.role
|
57
|
+
field 'Role', person.employment.role
|
58
|
+
end
|
59
|
+
|
60
|
+
def seniority
|
61
|
+
return unless person.employment && person.employment.seniority
|
62
|
+
field 'Seniority', person.employment.seniority
|
54
63
|
end
|
55
64
|
|
56
65
|
def location
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearbit-slack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harlow Ward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clearbit
|