horsefield 0.2.5 → 0.2.6

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: 8b8f8255739340596e630908fdf232ad5cf3ac97
4
- data.tar.gz: 7f5e63af192760467df38b2788efadee28926da4
3
+ metadata.gz: 06b3ca971bd5ac3667fe784d574ec87d1550cb2e
4
+ data.tar.gz: 203982342df6d85eb13d1e0b8f145f35d58c9efc
5
5
  SHA512:
6
- metadata.gz: b493efb36209a2b52527ffb5291314f4b3eeb1a2e80588f5f20a5bd627aa91456acf51d7d4c088a1ef67806467ff4c86099e6ec8f489c9571df605bea60f47e9
7
- data.tar.gz: bed0f9129ef6e737577644709d6d8b2a8e33db76a1b5ccb6e3f0adbbd69d5be3f76f0a4cd78675c8d6d5ab195d72afbe98b91bd6ba86b5b6275db723d35c0197
6
+ metadata.gz: 60fa17977187748451c35432fa57db0c692c555aac321ff73e5e1b84d50a2af874dba3a1e2705e40fa11e72ba7591134966f7f6ecd78893bf775bbb88bac90e3
7
+ data.tar.gz: 56ab051b2e6fb9e753a2f346c58c48c3fa23437b905220d638c7ad2329878319541f90a4855ddcce967b8cb37d48f975f66afbeb8f7378ea5ceb2069c460f11d
@@ -11,7 +11,7 @@ module Horsefield
11
11
  if @type == :text
12
12
  @html.search('text()').to_s.split.join ' '
13
13
  elsif @type == :html
14
- @html.to_s
14
+ @html.children.to_s.strip
15
15
  end
16
16
  when Nokogiri::XML::Attr then
17
17
  @html.value
@@ -1,3 +1,3 @@
1
1
  module Horsefield
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/spec/scraper_spec.rb CHANGED
@@ -40,7 +40,7 @@ describe Horsefield::Scraper do
40
40
  end
41
41
  end
42
42
 
43
- result[:job][:title].should match(/<div class=\"jobTitleContainer\">/)
43
+ result[:job][:title].should match(/<a id=\"ctl00_ctl00_ctl00_body_body_wacCenterStage_ctl02_rptResults_ctl00_linkJobTitle\"/)
44
44
  end
45
45
 
46
46
  it 'works with Watir' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horsefield
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Strömberg