myuniversaljobsmatch 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -3
- data/lib/myuniversaljobsmatch.rb +4 -7
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fde28ae4595fd866152f3c52f872cd15ce889df
|
4
|
+
data.tar.gz: ef76900fea966c9678a14b9042775ffc95917029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da59f1a5c47588735d6bd04949ba713ce5f8c98aeca55402293fc87897fdc2217c8354f6bad35539778c1c05eb6d7402952ecd256e41854ab334a74af3f53fd2
|
7
|
+
data.tar.gz: b02fdfc22c20891d193f6d65a48b8f7ef112507515fe93f8bb7494e95e1f3930087780747dcef3241905f8d4ec5bea4c6a30980ec90560cd9f7410695299b64c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
L��Z
|
1
|
+
��Zsp%�9>V?����a?(*E��iJ��w<�g��6���-��
|
2
|
+
������-/�R�Mm���I$����6K�s�M�<�0LT<$��������HSX�x�W��E|�*پ)
|
data/lib/myuniversaljobsmatch.rb
CHANGED
@@ -64,17 +64,14 @@ class MyUniversalJobsMatch
|
|
64
64
|
def query(id)
|
65
65
|
|
66
66
|
url = @url_base + 'GetJob.aspx?JobID=' + id
|
67
|
-
|
67
|
+
buffer = RXFHelper.read(url).first
|
68
|
+
doc = Nokorexi.new(buffer.gsub(/<br\s*\/?>/i,'')).to_doc
|
68
69
|
content = doc.root.at_css '.jobViewContent'
|
69
70
|
title = content.element('h2[2]/text()')
|
70
71
|
description = content.element('div')
|
71
72
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
fields = %i(job_id posting_date company location industries job_type
|
76
|
-
title description)
|
77
|
-
Hash[fields.zip(raw_summary + [title, description])]
|
73
|
+
a = doc.root.at_css('.jobViewSummary').xpath('dl/*/text()')
|
74
|
+
Hash[a.each_slice(2).map{|k,v| [k.downcase.gsub(' ','_').to_sym,v]}]
|
78
75
|
|
79
76
|
end
|
80
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myuniversaljobsmatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
jHrZ/AIDgLLmudfb7i81aMDjHuqydLyQWygvDL1WkxEnWBYJGA+AKRmy2QwoEBlI
|
32
32
|
knQ6nx6YBqnerg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-11-01 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
Binary file
|