twitter_with_auto_pagination 0.12.0 → 0.13.0

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
  SHA256:
3
- metadata.gz: 5de3283d41b96a90cb517474eb0be1476f75ea1b1910d4fdef4b348cd416b732
4
- data.tar.gz: f3223dc4bc720e54e86002da349900ac79f16ee1c025b1a1cefd38f2bce6a3be
3
+ metadata.gz: 2d90e01f64833555787086bd404712bded755f819c92adfe0c8669e893b38d23
4
+ data.tar.gz: 2f5962f83bfd634933b06ff098a20a715014d2590c34ef4c421a60888f93f16a
5
5
  SHA512:
6
- metadata.gz: 73952718c11e67914e0bd311f3028da422da9149e02e06a301ce49d3cc9a04e168ec5fa5b573425fbf0ad6170d32ee29366fd26cff51bfbf6da0e36e4209f095
7
- data.tar.gz: 68e65bbb38f612dac5153e4e8388cf8d51d0ab072dad4e27fc75524bf7fc870f2be1b40f3a8824676aed841e964aa0b7436b893f6919f7a0e43ca3329d34291e
6
+ metadata.gz: bebf5af92ed04b5abed1766cd46057800d67832079e15afa1e312684a7ba88df46547f42526a4bc4f723e654a56b3bf18d1a8a461cc07fd8dfabec8ee51ec51a
7
+ data.tar.gz: 9699e975305d37e1fb114b0c83b009e31cc9d9680cd9c562ee017f5bea98ed384e5d8da2931e7dc18cfb2a357a5e22c1f972e0067ed4cf48b6bb946bdebdcdfa
@@ -15,8 +15,9 @@ module TwitterWithAutoPagination
15
15
  options = args.extract_options!
16
16
 
17
17
  path = options['cache_dir'] || options[:cache_dir] || File.join('tmp', 'twitter_cache')
18
+ ttl = options['cache_ttl'] || options[:cache_ttl] || 1.hour
18
19
  Dir.mkdir(path) unless File.exists?(path)
19
- @client = ActiveSupport::Cache::FileStore.new(path, expires_in: 1.hour, race_condition_ttl: 5.minutes)
20
+ @client = ActiveSupport::Cache::FileStore.new(path, expires_in: ttl, race_condition_ttl: 5.minutes)
20
21
  end
21
22
 
22
23
  def fetch(method, user, options = {}, &block)
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 2.3'
22
22
  spec.summary = spec.description
23
23
  spec.test_files = Dir.glob('spec/**/*')
24
- spec.version = '0.12.0'
24
+ spec.version = '0.13.0'
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_with_auto_pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinohara Teruki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-08 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter