linkedinparser 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jobs.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcdc8e4d7141ad8e76bb372d7c98978f6f611b60
|
|
4
|
+
data.tar.gz: 736615494bc3399ffdabd192e9e727c06c767faf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17af06711379e2af7af40a2c488613743738a6b01c7a058f6b9b5100c57a74da75ad5c674309b29e8f740750e26b772b142071411178b78a7797b15389ff2e6c
|
|
7
|
+
data.tar.gz: f76c55c9cfcb47a00e8b818aeb5d9479cb98f3b9459510645721cd202e269e320892533c131fb6eb7804c7ef6031f821b8ff0d3f155f8e2981aaa7d0d7c10a20
|
data/lib/jobs.rb
CHANGED
|
@@ -22,7 +22,6 @@ class Jobs
|
|
|
22
22
|
# Get lists of positions
|
|
23
23
|
@positions_list = Array.new
|
|
24
24
|
positions.each do |position|
|
|
25
|
-
begin
|
|
26
25
|
@positions_list.push({
|
|
27
26
|
title: title(position),
|
|
28
27
|
company: company(position),
|
|
@@ -31,8 +30,6 @@ class Jobs
|
|
|
31
30
|
end_date: end_date(position),
|
|
32
31
|
work_location: work_location(position),
|
|
33
32
|
current: current(position)})
|
|
34
|
-
rescue
|
|
35
|
-
end
|
|
36
33
|
end
|
|
37
34
|
end
|
|
38
35
|
|
|
@@ -86,9 +83,9 @@ class Jobs
|
|
|
86
83
|
def date_parse(date)
|
|
87
84
|
begin
|
|
88
85
|
date = date+"-01-01" if date =~ /^(19|20)\d{2}$/
|
|
89
|
-
Date.parse(date)
|
|
86
|
+
return Date.parse(date)
|
|
90
87
|
rescue
|
|
91
|
-
|
|
88
|
+
return date
|
|
92
89
|
end
|
|
93
90
|
end
|
|
94
91
|
|