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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29694a9fcbb11d33391e11e4067d9f0b9e4cf2cc
4
- data.tar.gz: c8262b647bdd60c2e13f3283acb1e5532d7c1f75
3
+ metadata.gz: 8fde28ae4595fd866152f3c52f872cd15ce889df
4
+ data.tar.gz: ef76900fea966c9678a14b9042775ffc95917029
5
5
  SHA512:
6
- metadata.gz: 502ba0c9e77ce48f6a7c2ccbc7ecda778c822d2b68dd98575479853c2b7a7bd51f5cb5ea27c6536e645f7f50f8815657a92ce40752d3a1ca3caa1ff8e4bf24e2
7
- data.tar.gz: e1f2cc9179eb1ceb086fc2148cdf8c87d3d829e249e96b44cc61c7ed52b8dc287acda44a24e58e06bf9dfad96436354fb90178e6648733cc87fa71faef16ab26
6
+ metadata.gz: da59f1a5c47588735d6bd04949ba713ce5f8c98aeca55402293fc87897fdc2217c8354f6bad35539778c1c05eb6d7402952ecd256e41854ab334a74af3f53fd2
7
+ data.tar.gz: b02fdfc22c20891d193f6d65a48b8f7ef112507515fe93f8bb7494e95e1f3930087780747dcef3241905f8d4ec5bea4c6a30980ec90560cd9f7410695299b64c
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ���v 2�vX!2s.��^�]�������h�.��m�B�����s,�Y�,c��F� =�8s�un�Rڰ~֬��y<��Ǡ�`�
2
- ��iYss>��ʪ����@.�"�:W(rizz,���8�X�;钃 ��8�9�s�1��=:%�-��r_���;���k�D� h{����iԀe����ź0��a�ju�!��hL\� ��igR}��1ni-5`��Of��,��X�Xh<.d�i
3
- L�� Z
1
+ ��Zsp%�9>V?����a?(*E ��iJ��w<�g��6���-��
2
+ ������-/� RMm���I$����6K�s�M�<�0LT<$��������HSX�xW��E|�*پ)
@@ -64,17 +64,14 @@ class MyUniversalJobsMatch
64
64
  def query(id)
65
65
 
66
66
  url = @url_base + 'GetJob.aspx?JobID=' + id
67
- doc = Nokorexi.new(url).to_doc
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
- raw_summary = doc.root.at_css('.jobViewSummary').xpath('dl/dd/text()')
73
- job_id, posting_date, company, location, industries, job_type = raw_summary
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.3
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-10-31 00:00:00.000000000 Z
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