linsc 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linsc.rb +2 -2
- data/lib/linsc/merger.rb +1 -1
- data/linsc.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d19903e49df19aae7f5356b925a75bcad8c1316c
|
4
|
+
data.tar.gz: f82d76526e1d957f0d30e3fc45e02b99161d0501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc0eec8c6b0e0cd3614459fc43b713e368557fddd688be5dd362f323d70dbc4a9e5994cb40d7e75bc5f4315f27e6d0a975d62bc05b906c12c8ab92727c8cd810
|
7
|
+
data.tar.gz: 91c5a6b18e694069def02149c04b9ef77024b252c05391cf6e65a8e37f47648ed61fbb68103de4c133382aad676e2f89b716568cde52212aad626c2dfa866f16
|
data/lib/linsc.rb
CHANGED
@@ -16,8 +16,8 @@ class Linsc
|
|
16
16
|
include CSVHandlers
|
17
17
|
|
18
18
|
def merge
|
19
|
-
merge_map = {'
|
20
|
-
'Company' => 'Employer Organization Name 1', '
|
19
|
+
merge_map = {'FirstName' => 'First Name', 'LastName' => 'Last Name', 'EmailAddress' => 'Email',
|
20
|
+
'Company' => 'Employer Organization Name 1', 'Position' => 'Employer 1 Title',
|
21
21
|
'Recruiter' => 'LIN 1st Degree'}
|
22
22
|
Merger.new(@working_dir, @merge_path, merge_map).merge
|
23
23
|
end
|
data/lib/linsc/merger.rb
CHANGED
@@ -33,7 +33,7 @@ class Merger
|
|
33
33
|
clean_file = File.read(lin_file, encoding: 'windows-1252').strip
|
34
34
|
CSV.parse(clean_file, headers: true, encoding: 'windows-1252') do |row|
|
35
35
|
row["Recruiter"] = recruiter_name
|
36
|
-
email = row['
|
36
|
+
email = row['EmailAddress'].downcase if row['EmailAddress']
|
37
37
|
if emails.has_key?(email)
|
38
38
|
emails[email] << row
|
39
39
|
else
|
data/linsc.gemspec
CHANGED
@@ -4,10 +4,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "linsc"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.18"
|
8
8
|
spec.authors = ["Dan Molloy"]
|
9
9
|
spec.email = ["danieljmolloy1@gmail.com"]
|
10
|
-
spec.date = '2017-04-
|
10
|
+
spec.date = '2017-04-04'
|
11
11
|
|
12
12
|
spec.summary = %q{Scrape Linkedin and import to Salesforce}
|
13
13
|
spec.description = %q{A gem for scraping public data of Linkedin connections and importing the data to Salesforce.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linsc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Molloy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|