hostelify 0.6.6 → 0.6.7
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 +3 -3
@@ -6,7 +6,7 @@ class Hostelworld < Nibbler
|
|
6
6
|
elements '//script[14]' => :geo, :with => lambda { |node| node.inner_text.scan(/-{0,1}\d{1,3}\.\d{7}/).uniq! }
|
7
7
|
elements 'div.links ul.column li' => :features, :with => lambda { |node| node.inner_text.first }
|
8
8
|
elements '.cboxElement img //@src' => :photos
|
9
|
-
elements '.rating-values li' => :ratings
|
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
12
|
elements '//table[@class="beds-details"]//tr[position() > 1]' => :beds do
|
data/lib/hostelify/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hostelify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 7
|
10
|
+
version: 0.6.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Holden Thomas
|