hostelify 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hostelify/hostelworld.rb +1 -1
- data/lib/hostelify/version.rb +1 -1
- metadata +1 -1
@@ -13,7 +13,7 @@ class Hostelworld < Nibbler
|
|
13
13
|
element 'td span[@style="display:none;"]' => :title, :with => lambda { |node| node.inner_text.lstrip.rstrip }
|
14
14
|
end
|
15
15
|
|
16
|
-
elements 'table
|
16
|
+
elements '//table[@class="availability"]//tr[position() > 1]' => :beds do
|
17
17
|
elements 'td' => :nights do
|
18
18
|
element '.currency' => :price, :with => lambda { |node| node.inner_text.to_f }
|
19
19
|
element '@title' => :spots, :with => lambda { |node| node.inner_text.match(/\d{1,}$/).to_s.to_i }
|
data/lib/hostelify/version.rb
CHANGED