queenshop 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/queenshop/scraper.rb +4 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92d0b55a68d535fb78b45df74784fa6a0dc4ea76
4
- data.tar.gz: a6fdda4008a9620f139f48e33739d0240a0d72c8
3
+ metadata.gz: 7c2d5386fe09e0b4bd5d9427032bd575e6d7a8c9
4
+ data.tar.gz: b8aaf059ee84283a5ec22a3a1413e3cd352c74c9
5
5
  SHA512:
6
- metadata.gz: 739665cda25b1a572ce0d788e2402cd2ef2bf3ce577a883c13403716006cf93517294f80de81a43a78b6101b28174b2514521f5c56593671b751671def7de2ea
7
- data.tar.gz: 50128c72758a26f8b860862985cb2466556aa4b13d39be71b0e2184001cf2b6a08efd134f020988b7cc6504039238a3a3f1730013e20f0bd8b5db5f33375be01
6
+ metadata.gz: 217c85367a8819be4bef7e80050225d22472f29f9d8042e5c7ea4ca3071c8a9077d8568cefcbd30969023be51592a25236adf933271dd162a230f89907caf1fa
7
+ data.tar.gz: 2f5bda10a103f50abef0dc715033b6129f5d15f5dccb75e1f0a1969a074ef699b8d475c8e0240c2d4217781df80fc181e96f56ffaa0ddbb737c32b868b8e4e93
@@ -11,7 +11,6 @@ module QueenShop
11
11
  BASE_SCRAPE_URL = "#{BASE_URL}/m/PDList2.asp?"
12
12
 
13
13
  LATEST_URI = "#{BASE_SCRAPE_URL}item1=new"
14
- DISCOUNT_URI = "#{BASE_SCRAPE_URL}item1=dis"
15
14
  POPULAR_URI = "#{BASE_SCRAPE_URL}item1=pre"
16
15
  TOPS_URI = "#{BASE_SCRAPE_URL}brand=01&item1=00&item2=6"
17
16
  PANTS_URI = "#{BASE_SCRAPE_URL}brand=01&item1=01&item2=3"
@@ -31,22 +30,22 @@ module QueenShop
31
30
  end
32
31
 
33
32
  def popular(page, options = {})
34
- uri = uri_with_options(build_uri(LATEST_URI, options), page)
33
+ uri = uri_with_options(build_uri(POPULAR_URI, options), page)
35
34
  process_request(uri, options)
36
35
  end
37
36
 
38
37
  def tops(page, options = {})
39
- uri = uri_with_options(build_uri(LATEST_URI, options), page)
38
+ uri = uri_with_options(build_uri(TOPS_URI, options), page)
40
39
  process_request(uri, options)
41
40
  end
42
41
 
43
42
  def pants(page, options = {})
44
- uri = uri_with_options(build_uri(LATEST_URI, options), page)
43
+ uri = uri_with_options(build_uri(PANTS_URI, options), page)
45
44
  process_request(uri, options)
46
45
  end
47
46
 
48
47
  def accessories(page, options = {})
49
- uri = uri_with_options(build_uri(LATEST_URI, options), page)
48
+ uri = uri_with_options(build_uri(ACCESSORIES_URI, options), page)
50
49
  process_request(uri, options)
51
50
  end
52
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queenshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Even Chang