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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b1ce75f252b6fec30181443dcd7e223af33b413
4
- data.tar.gz: b41eb8b95cf6ef06b8dae33e8295c055f5cb4592
3
+ metadata.gz: 029845a7c4067cd6154cc6510dc8b86d1d191792
4
+ data.tar.gz: 8985b7cbdc53d9481336f03969415a1630bb32dd
5
5
  SHA512:
6
- metadata.gz: 6f8ee165e849bdc33790377a367a010a9560e97db86e56e34d38b125f5871fcf3f7c6bbfa80d5d83b38395c355b043cbb6696fa175e3d2f7fc54115a10fec0c5
7
- data.tar.gz: 2fa5b86fc6466514fd0adad81b6349cd75696d5f5aa951699b28b186a268bc63faab870dd8c441cc4e3bf2a2ad1a147045e774deb66bb56b1948f1b477bcb607
6
+ metadata.gz: 4117e1a0b1f986bb7bae71046075f062f18d8f55e8656847970a24ad8e9097b84c50ad89970331c0271396ebb0218f13dc6f41d5f79d9ba41f6e038946409598
7
+ data.tar.gz: 5ea49dc62e2c298dc53e9ad6f9e10398167bdfc20c5b2382d1916da5b50ab5db04115c3a8776748f2475c2dd558619dcab18e4b14610b6289a39e0880d497476
@@ -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, :hotel_id=>hotel['data-seq'], :hotel_name=>title.nil? ? nil : title.text.strip }
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
@@ -18,7 +18,6 @@ module Qunar
18
18
 
19
19
  limiter = 0
20
20
  begin
21
- find("//td[@class='book-ct']//*[text()='展开报价']")
22
21
  page.all('//td[@class="book-ct"]//*[text()="展开报价"] | //td[@class="book-ct"]//*[text()="全部订完"]').each do |spage|
23
22
  puts 'cp 2-1'
24
23
  spage.click
data/lib/qunar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qunar
2
- VERSION = "0.1.39"
2
+ VERSION = "0.1.43"
3
3
  end
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.39
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-09 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler