clearbit-slack 0.1.5 → 0.1.6
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/clearbit-slack.gemspec +1 -0
- data/lib/clearbit/slack/attachments/company.rb +10 -4
- data/lib/clearbit/slack/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3cf57a0df8063f3a47776b72f19dbbeb0f51d8f
|
4
|
+
data.tar.gz: ac062a72596c9aa60e5d38e466480a9082f599fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2a5bd839097f66abc36fbac74de58304b0490e8f30b25b585d6db9f2c712b08596b075eeacc1b414233cd400cf35d2c1f79dcfcdfb104430d6ae0abb6b0924
|
7
|
+
data.tar.gz: 25e5d5d53017f4a5ffef214e46f2e0e22157f631361067435ba9a9f21ad36769e73d77eb1238677fcbc479e54814a5a29d431e431c95aae3f9c8d090d970704e
|
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, given_name: customer.first_name, family_name
|
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,
|
data/clearbit-slack.gemspec
CHANGED
@@ -34,6 +34,7 @@ module Clearbit
|
|
34
34
|
employees,
|
35
35
|
linkedin(company.linkedin),
|
36
36
|
twitter(company.twitter),
|
37
|
+
tags,
|
37
38
|
tech
|
38
39
|
]
|
39
40
|
end
|
@@ -54,13 +55,18 @@ module Clearbit
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def employees
|
57
|
-
return unless company.employees
|
58
|
-
field 'Employees', format_number(company.employees)
|
58
|
+
return unless company.metrics.employees
|
59
|
+
field 'Employees', format_number(company.metrics.employees)
|
59
60
|
end
|
60
61
|
|
61
62
|
def raised
|
62
|
-
return unless company.raised
|
63
|
-
field 'Raised', "$#{format_number(company.raised)}"
|
63
|
+
return unless company.metrics.raised
|
64
|
+
field 'Raised', "$#{format_number(company.metrics.raised)}"
|
65
|
+
end
|
66
|
+
|
67
|
+
def tags
|
68
|
+
return unless company.tags
|
69
|
+
field 'Tags', company.tags.join(', '), false
|
64
70
|
end
|
65
71
|
|
66
72
|
def tech
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harlow Ward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clearbit
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Push Clearbit data into Slack channel
|
98
112
|
email:
|
99
113
|
- harlow@clearbit.com
|
@@ -140,3 +154,4 @@ signing_key:
|
|
140
154
|
specification_version: 4
|
141
155
|
summary: Push Clearbit data into Slack channel
|
142
156
|
test_files: []
|
157
|
+
has_rdoc:
|