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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c60b8f05458653492222921d41d0ff636b22f8
4
- data.tar.gz: 994abf967f1a43a615e79e684a06a513abfde73e
3
+ metadata.gz: b3066c3e54614b06fb231147ffa2f4861b275372
4
+ data.tar.gz: cf3ae424bebd88126376e02934843345ee085371
5
5
  SHA512:
6
- metadata.gz: a8a45ac77cb999b60d6933a46d1f4e76185c4ff35335ecfa1a2655a223729cddf7a839512c526ec74c828c73b114b08fe18f26b69dd27481ed93042850c0ef51
7
- data.tar.gz: ffb7bfd89b658f9b8810b2f6d279ed9cde8611d14273638ed95e89fc655a136fa2387cabbc01d578ec9fe89287419942ca54343eba56666a6ba681b4a5002f33
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
- response = Clearbit::Streaming::PersonCompany[email: customer.email]
59
+ result = Clearbit::Enrichment.find(email: customer.email, stream: true)
60
60
 
61
- response.merge!(
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(response)
68
+ Clearbit::Slack.ping(result)
69
69
 
70
- # Persist the Clearbit Data
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
- response = webhook.body
87
+ result = webhook.body
88
88
 
89
- response.merge!(
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(response)
96
+ Clearbit::Slack.ping(result)
97
97
 
98
- # Persist the Clearbit Data
98
+ # Save Clearbit data to datastore
99
99
  end
100
100
  end
101
101
  ```
@@ -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.1.6'
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'
@@ -1,5 +1,5 @@
1
1
  module Clearbit
2
2
  module Slack
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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.2
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-06-26 00:00:00.000000000 Z
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.1.6
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.1.6
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.2.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