qunar 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qunar/rank.rb +3 -3
- data/lib/qunar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650dfece267ee88868f8d461c65f36f5238343d5
|
4
|
+
data.tar.gz: f4ef4a8be1c121e641d51c7f8c329fc33164d15a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 003140a0a585eeff29dc8df03b3db331bba4d51f3bcde66eba45f02923c2c7dfa305cd0abcb8b1db754b3081d8fd195e5b90fc5e0adc3199b92980b9dbff118e
|
7
|
+
data.tar.gz: a64fd073eff7c0c9a5a3348ec058a5a87971c5c008c40bfb53441a9cce71b12fdfb6378ca80cc043130b39172ee571812efe5d2538664b2163342633140f7ba5
|
data/lib/qunar/rank.rb
CHANGED
@@ -45,9 +45,9 @@ module Qunar
|
|
45
45
|
ota = row.search("div[@class='profile-tit']").first.text.strip
|
46
46
|
otas['ota'] = ota
|
47
47
|
|
48
|
-
bookable = row.search("a[@class='btn-book']/span")
|
49
|
-
|
50
|
-
bookable == bookable.text.strip
|
48
|
+
bookable = row.search("a[@class='btn-book']/span")
|
49
|
+
unless bookable.empty?
|
50
|
+
bookable == bookable.first.text.strip
|
51
51
|
if bookable == '订完'
|
52
52
|
bookable = false
|
53
53
|
else
|
data/lib/qunar/version.rb
CHANGED