hostelify 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hostelify (0.6.7)
4
+ hostelify (0.6.9)
5
5
  nibbler (>= 1.2.1)
6
6
  nokogiri (>= 1.4.4)
7
7
  rest-client (>= 1.6.1)
@@ -9,7 +9,10 @@ class Hostelworld < Nibbler
9
9
  elements '.rating-values li' => :ratings, :with => lambda { |node| node.inner_text.to_i }
10
10
  element 'script[19]' => :base_currency, :with => lambda { |node| node.inner_text.scan(/\$\.Microsite\.propertyCurrency = \'(.*)\';/).to_s }
11
11
 
12
- elements 'table.roomtype tr td span[@style="display:none;"]' => :rooms, :with => lambda { |node| node.inner_text.lstrip.rstrip }
12
+ elements 'table.roomtype tr' => :rooms do
13
+ element 'td span[@style="display:none;"]' => :title, :with => lambda { |node| node.inner_text.lstrip.rstrip }
14
+ end
15
+
13
16
  elements 'table.availability tr' => :beds do
14
17
  elements 'td' => :nights do
15
18
  element '.currency' => :price, :with => lambda { |node| node.inner_text.to_f }
@@ -1,3 +1,3 @@
1
1
  module Hostelify
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hostelify
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.8
5
+ version: 0.6.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Holden Thomas