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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 045911d0ab38638148784d66693fcf313de82d0c
4
- data.tar.gz: 280377e6e4b4dbd3c989f58bd2e9bb8fff3b2503
3
+ metadata.gz: d19903e49df19aae7f5356b925a75bcad8c1316c
4
+ data.tar.gz: f82d76526e1d957f0d30e3fc45e02b99161d0501
5
5
  SHA512:
6
- metadata.gz: 7fc13f7694c14540b6a90cc40fd5ad35217cd55a543a5d90e6c99a4ce7cb101e044ac75373c44fd9fa97a5cdfce5d8dbd1aa830a7fa6cbc56b230b233b302889
7
- data.tar.gz: a75b61b83be5a9bdb74827cccc0244843883dfd9e6e68623366ba719d0c8abe51ba5c1c7db1e5f89ac990fb136195630ef3a64e20f214ecc56951bbfbd28e285
6
+ metadata.gz: fc0eec8c6b0e0cd3614459fc43b713e368557fddd688be5dd362f323d70dbc4a9e5994cb40d7e75bc5f4315f27e6d0a975d62bc05b906c12c8ab92727c8cd810
7
+ data.tar.gz: 91c5a6b18e694069def02149c04b9ef77024b252c05391cf6e65a8e37f47648ed61fbb68103de4c133382aad676e2f89b716568cde52212aad626c2dfa866f16
@@ -16,8 +16,8 @@ class Linsc
16
16
  include CSVHandlers
17
17
 
18
18
  def merge
19
- merge_map = {'First Name' => 'First Name', 'Last Name' => 'Last Name', 'E-mail Address' => 'Email',
20
- 'Company' => 'Employer Organization Name 1', 'Job Title' => 'Employer 1 Title',
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
@@ -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['E-mail Address'].downcase if row['E-mail Address']
36
+ email = row['EmailAddress'].downcase if row['EmailAddress']
37
37
  if emails.has_key?(email)
38
38
  emails[email] << row
39
39
  else
@@ -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.17"
7
+ spec.version = "0.0.18"
8
8
  spec.authors = ["Dan Molloy"]
9
9
  spec.email = ["danieljmolloy1@gmail.com"]
10
- spec.date = '2017-04-03'
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.17
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-03 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler