redis_page 0.1.18 → 0.1.19

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: bb31b87f9875d3f864eaa13358561f4769551591
4
- data.tar.gz: be607933df2ce92b7d61182074adba4468bbd646
3
+ metadata.gz: 08046abef325b04f18408eb0ca83bf525cc38685
4
+ data.tar.gz: ac6fa86a6f497178b44ffccd5ed251b1043dae77
5
5
  SHA512:
6
- metadata.gz: a2406f7fd19c3a68ac64508e95f3e186aaefa0f509d2343733aa3edea9fd189a3a5ef0aff4410bcfee623091ccc300ba3f135f43299b524dd59cfc253a7dc9d2
7
- data.tar.gz: 36983a0b92863c8c6ddd658e3690ba7689b58a1a2af59f39489cc0e4b3633e3bdc503fb973dee7c8d4085972171c22f7f528f036de3f199ed2e1d848a6d9df5c
6
+ metadata.gz: 83999804c0d0fd45cca09ad93d3095fe4e55cad3b441cc9b207a87d72ffd8a3de51aa94ad906a7ac4f96e79643b62598ae2538c08bda143b0c309d08ace78110
7
+ data.tar.gz: 4eedadbcb27aaff0abd0fe7b6c495e7b6c60fe9176ec52f408b88e6aef0e764fb111e7bad083029b018ef69c3e369ba7cf4f94c3a2070a6748e72b553f587145
@@ -50,15 +50,15 @@ module RedisPage
50
50
 
51
51
  def fetch_infos(urls)
52
52
  urls.values.each do |info|
53
- RedisPage::Sweeper.sweep info
53
+ RedisPage::Sweeper.sweep(info, redis_page_queue_name)
54
54
  end
55
55
  end
56
56
  end
57
57
 
58
- def self.sweep(info)
58
+ def self.sweep(info, queue)
59
59
  Rails.logger.info "[page cache]add sweeper job: #{info['url']}-#{info['country']}"
60
60
 
61
- Sidekiq::Client.push('queue' => redis_page_queue_name, 'class' => SweeperWorker, 'args' => [info['url'], info['country']])
61
+ Sidekiq::Client.push('queue' => queue, 'class' => SweeperWorker, 'args' => [info['url'], info['country']])
62
62
  end
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module RedisPage
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - saberma