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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9373ce880eaebc8f34d18c9aeb1ef0ff48d23207
4
- data.tar.gz: 0ff9dbb922d9f691222dc61c2ee8e0a86653f189
3
+ metadata.gz: f3cf57a0df8063f3a47776b72f19dbbeb0f51d8f
4
+ data.tar.gz: ac062a72596c9aa60e5d38e466480a9082f599fd
5
5
  SHA512:
6
- metadata.gz: 25816ce7549e534c23ac6980bc668a3cf1519e6157f12b0547a7a2be4b8309deaf4f5f9ffa7df713263e96d6656ac892b5269ec3a0daf01217be89e123c75c41
7
- data.tar.gz: 524a2d4cb50d6ac769856b9790acda6951996c7f7bac13e96f5b96ad349266d1cc52f8f40945d776d91bf8f999d435f6fc0b655c3b04bef8adf1ed8663fc19d1
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, customer.last_name, 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,
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'bundler', '~> 1.9'
23
23
  spec.add_development_dependency 'pry', '~> 0.10.1'
24
24
  spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rspec'
25
26
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Clearbit
2
2
  module Slack
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
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.5
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-01-18 00:00:00.000000000 Z
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: