myuniversaljobsmatch 0.1.2 → 0.1.3
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 +0 -0
- data/lib/myuniversaljobsmatch.rb +4 -2
- metadata +2 -2
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29694a9fcbb11d33391e11e4067d9f0b9e4cf2cc
|
4
|
+
data.tar.gz: c8262b647bdd60c2e13f3283acb1e5532d7c1f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502ba0c9e77ce48f6a7c2ccbc7ecda778c822d2b68dd98575479853c2b7a7bd51f5cb5ea27c6536e645f7f50f8815657a92ce40752d3a1ca3caa1ff8e4bf24e2
|
7
|
+
data.tar.gz: e1f2cc9179eb1ceb086fc2148cdf8c87d3d829e249e96b44cc61c7ed52b8dc287acda44a24e58e06bf9dfad96436354fb90178e6648733cc87fa71faef16ab26
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/myuniversaljobsmatch.rb
CHANGED
@@ -66,13 +66,15 @@ class MyUniversalJobsMatch
|
|
66
66
|
url = @url_base + 'GetJob.aspx?JobID=' + id
|
67
67
|
doc = Nokorexi.new(url).to_doc
|
68
68
|
content = doc.root.at_css '.jobViewContent'
|
69
|
+
title = content.element('h2[2]/text()')
|
69
70
|
description = content.element('div')
|
70
71
|
|
71
72
|
raw_summary = doc.root.at_css('.jobViewSummary').xpath('dl/dd/text()')
|
72
73
|
job_id, posting_date, company, location, industries, job_type = raw_summary
|
73
74
|
|
74
|
-
fields = %i(job_id posting_date company location industries job_type
|
75
|
-
|
75
|
+
fields = %i(job_id posting_date company location industries job_type
|
76
|
+
title description)
|
77
|
+
Hash[fields.zip(raw_summary + [title, description])]
|
76
78
|
|
77
79
|
end
|
78
80
|
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.3
|
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-10-
|
34
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
����tR�F�A�ſ�t�}���Y�P�����֫
|
2
|
+
�;���DM�»u��u��.���EL$�n2c�FY�I�i�~�K��b�?6�^�IxjՎyh�J�C�?�S;��w {1n ��$�U*�a�1v�`���q^
|