qunar 0.1.39 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qunar/hotel_list.rb +1 -1
- data/lib/qunar/rank.rb +0 -1
- data/lib/qunar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 029845a7c4067cd6154cc6510dc8b86d1d191792
|
4
|
+
data.tar.gz: 8985b7cbdc53d9481336f03969415a1630bb32dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4117e1a0b1f986bb7bae71046075f062f18d8f55e8656847970a24ad8e9097b84c50ad89970331c0271396ebb0218f13dc6f41d5f79d9ba41f6e038946409598
|
7
|
+
data.tar.gz: 5ea49dc62e2c298dc53e9ad6f9e10398167bdfc20c5b2382d1916da5b50ab5db04115c3a8776748f2475c2dd558619dcab18e4b14610b6289a39e0880d497476
|
data/lib/qunar/hotel_list.rb
CHANGED
@@ -19,7 +19,7 @@ module Qunar
|
|
19
19
|
# Collect hotels
|
20
20
|
hotels = qn_list.collect { |hotel|
|
21
21
|
title = hotel.at("./div/div[@class='title']")
|
22
|
-
item = { :city=>@city, :
|
22
|
+
item = { :city=>@city, :qunar_id=>hotel['data-seq'], :hotel_name=>title.nil? ? nil : title.text.strip }
|
23
23
|
}
|
24
24
|
hotels.empty? ? nil : hotels
|
25
25
|
end
|
data/lib/qunar/rank.rb
CHANGED
data/lib/qunar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qunar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JusticeChow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|