clearbit-slack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/clearbit-slack.gemspec +1 -1
- data/lib/clearbit/slack/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3066c3e54614b06fb231147ffa2f4861b275372
|
4
|
+
data.tar.gz: cf3ae424bebd88126376e02934843345ee085371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a6209fc2be46962d40f9f8e8e2db04a3a14d8f1fab6ad0ed538790da1c59627bddd83c6c3fd5920076d0a257e114f189137ece71fe697e0d622cb2bcca315b3
|
7
|
+
data.tar.gz: 15a68282b68bed718d90ed341bccbf3865239b779391745471fd3ae25b509e637084fd9c4d6ee519e9da58e1defe906523fcf9d6c81752b14a99e75aad331064
|
data/README.md
CHANGED
@@ -56,18 +56,18 @@ module APIHub
|
|
56
56
|
|
57
57
|
def perform(customer_id)
|
58
58
|
customer = Customer.find!(customer_id)
|
59
|
-
|
59
|
+
result = Clearbit::Enrichment.find(email: customer.email, stream: true)
|
60
60
|
|
61
|
-
|
61
|
+
result.merge!(
|
62
62
|
email: customer.email,
|
63
63
|
family_name: customer.last_name,
|
64
64
|
given_name: customer.first_name,
|
65
65
|
message: "View details in <https://admin-panel.com/#{customer.token}|Admin Panel>",
|
66
66
|
)
|
67
67
|
|
68
|
-
Clearbit::Slack.ping(
|
68
|
+
Clearbit::Slack.ping(result)
|
69
69
|
|
70
|
-
#
|
70
|
+
# Save Clearbit data to datastore
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
@@ -84,18 +84,18 @@ class WebhooksController < ApplicationController
|
|
84
84
|
def clearbit
|
85
85
|
webhook = Clearbit::Webhook.new(env)
|
86
86
|
customer = Customer.find!(webhook.webhook_id)
|
87
|
-
|
87
|
+
result = webhook.body
|
88
88
|
|
89
|
-
|
89
|
+
result.merge!(
|
90
90
|
email: customer.email,
|
91
91
|
family_name: customer.last_name,
|
92
92
|
given_name: customer.first_name,
|
93
93
|
message: "View details in <https://admin-panel.com/#{customer.token}|Admin Panel>",
|
94
94
|
)
|
95
95
|
|
96
|
-
Clearbit::Slack.ping(
|
96
|
+
Clearbit::Slack.ping(result)
|
97
97
|
|
98
|
-
#
|
98
|
+
# Save Clearbit data to datastore
|
99
99
|
end
|
100
100
|
end
|
101
101
|
```
|
data/clearbit-slack.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency 'clearbit', '~> 0.
|
19
|
+
spec.add_dependency 'clearbit', '~> 0.2.2'
|
20
20
|
spec.add_dependency 'maccman-mash', '~> 0.0.2'
|
21
21
|
spec.add_dependency 'slack-notifier', '~> 1.2.1'
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
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.3
|
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-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clearbit
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: maccman-mash
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.4.5
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Push Clearbit data into Slack channel
|