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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jobs.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51d5a49409ecc619839600b03733e9b4e358e405
4
- data.tar.gz: c5fd73ef7b882a4e4e1e63e7bdf9698a823f4ed4
3
+ metadata.gz: dcdc8e4d7141ad8e76bb372d7c98978f6f611b60
4
+ data.tar.gz: 736615494bc3399ffdabd192e9e727c06c767faf
5
5
  SHA512:
6
- metadata.gz: 63ce7fa876c218af21c334401f973179256169a014dc4653b50fc15aea06a82cc92aa637349d9b20d336fd8b0af8f54545a6cc9c02fa303bc2f54da7465c7776
7
- data.tar.gz: d6ee9949fda0facbf5978ff2021a576efe1fbf8df2e40f88457e7bc73f4d1c7d930560c6fe3a5a6ed08da5d19c7dc64184800080eb69b1dd5bbad59f7e1680a0
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
- binding.pry
88
+ return date
92
89
  end
93
90
  end
94
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedinparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath