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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d90e01f64833555787086bd404712bded755f819c92adfe0c8669e893b38d23
|
4
|
+
data.tar.gz: 2f5962f83bfd634933b06ff098a20a715014d2590c34ef4c421a60888f93f16a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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)
|
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.
|
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-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|