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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c6bc55dee40acd593e2556f1fe3388be6414537
4
- data.tar.gz: dc0a730f5999be295855a66ec5082791190bf3f1
3
+ metadata.gz: 650dfece267ee88868f8d461c65f36f5238343d5
4
+ data.tar.gz: f4ef4a8be1c121e641d51c7f8c329fc33164d15a
5
5
  SHA512:
6
- metadata.gz: 1a4664ed6998023671c05577daaed27ef54955b8a2644352f483f6b4d5efe415e797ae11981bc6214c516059d0402dc1431ee5b3538180d959f85ec37683107d
7
- data.tar.gz: dda74d6ab2cf1f46e7fd42c56421b32108f22a698720046edcf176a6e1c7518e40ceb5bb6fe216b3365fa162c3327dc81c996ca559a65a9950eb55f7625af489
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").first.text.strip
49
- if bookable.is_a?(String)
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
@@ -1,3 +1,3 @@
1
1
  module Qunar
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qunar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - JusticeChow