queenshop 0.0.6 → 0.0.7

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 +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51ff3a99efef2152c5528fc1377981e2802e74b0
4
- data.tar.gz: c2e00a3763b9c6cf99f135424a66c2bb2f260400
3
+ metadata.gz: c4a7760cb1cbcac9f22f86460484589701d99c01
4
+ data.tar.gz: 61dfd59ba4a373ad18a2f34c42925132e1df4fc6
5
5
  SHA512:
6
- metadata.gz: 6a78c3d74d6e22f3faf2944782d7526a58a1626579ca024c4366f0dc337745245c0aba6c26ff838ba6a39eca72ddac98a70a9b8696058342eff3b5414def917f
7
- data.tar.gz: a827145c98212153608e90da678f7755815158621c47cfcacfdcb92dfd142833f29b47b88d77f8495341017fa0d4af66de5bb9176ea13cc237aa78662354e7d2
6
+ metadata.gz: 4f76c898bd5d38b2b591d92a826162712caa5d5c08980acefba595492c02e3b765d66143b897722cf7d85aa9cd4b4b890777ed47bc552ad7d94124336e35e2f1
7
+ data.tar.gz: cc4402a3f259d942d044adfa233f194e4e511b5c835eca3e33bd73fe3273031247fcf73b3ee0ee14a830441d9e3479758fde7a38542b565eb4eb4a41be5dbd2d
@@ -70,8 +70,11 @@ module QueenShopScraper
70
70
  params = ARGV.empty? ? params : ARGV
71
71
  conf = QConfig.new(params)
72
72
  @price_filter = conf.parameters[:price]
73
- @title_selector << "/text()[contains(.,'#{conf.parameters[:item]}')]"
74
-
73
+ search = "/text()[contains(
74
+ translate(.,'ABCDEFGHIJKLOMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'),
75
+ translate('#{conf.parameters[:item]}','ABCDEFGHIJKLOMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]"
76
+ @title_selector << search
77
+
75
78
  conf.pages.map do |page|
76
79
  paginated_uri = "&page=#{page}"
77
80
  fetch_result(paginated_uri)
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.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Even Chang