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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3066c3e54614b06fb231147ffa2f4861b275372
4
- data.tar.gz: cf3ae424bebd88126376e02934843345ee085371
3
+ metadata.gz: 9373ce880eaebc8f34d18c9aeb1ef0ff48d23207
4
+ data.tar.gz: 0ff9dbb922d9f691222dc61c2ee8e0a86653f189
5
5
  SHA512:
6
- metadata.gz: 0a6209fc2be46962d40f9f8e8e2db04a3a14d8f1fab6ad0ed538790da1c59627bddd83c6c3fd5920076d0a257e114f189137ece71fe697e0d622cb2bcca315b3
7
- data.tar.gz: 15a68282b68bed718d90ed341bccbf3865239b779391745471fd3ae25b509e637084fd9c4d6ee519e9da58e1defe906523fcf9d6c81752b14a99e75aad331064
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
- aboutme(person.aboutme),
29
- angellist(person.angellist),
30
- facebook(person.facebook),
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 position
52
- return unless person.employment && person.employment.title
53
- field 'Position', person.employment.title
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
@@ -1,5 +1,5 @@
1
1
  module Clearbit
2
2
  module Slack
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
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.3
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: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clearbit