twitter_friendly 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cec5d0d0bab4de7c8cc59727c5c57ce632b76c6e40c3684a66cce539cbb509ef
4
- data.tar.gz: d37e61958513f084b5eed73f68f9d073202dd58e774138072cb6a1b28b3e70bc
3
+ metadata.gz: 7e5481574a9af954eee677e12ab10be1cd29bd3e744c00f295792aa59b7dec18
4
+ data.tar.gz: '078c67dafe0a4c76418d178abb1c8da2b79323790353fc47adf254ed7866e795'
5
5
  SHA512:
6
- metadata.gz: 376dbce938d1e5baf735fee3ff09a869ce2b2b562c159046c1a92c37d9e5408d2f5ae4ce005f98eb62d5dbb6f10b31229b15bd402a905c949ad9adbe38aa0aae
7
- data.tar.gz: 93f140337e9a317165f974e65a992e34a42d1f278add7add063379c882c51aeef54ccb179cef419e02ad21956f3d9aad2f370fad211d5bb680ab587fa8298eeb
6
+ metadata.gz: 142be53e34255b50211248e835bdec011fe68cd7ffede00929a762228ffb854de53616f4ad5875d23e77283d2d1ece8a890f3dc3f83c86e71e907bacd52163cc
7
+ data.tar.gz: 8734fe7505f898ce41ab563774e515baee99d7fc8fef2ff42803d575d8d74d03267a7f2468ffa7e691015040d38779b7e23254c814523caf5eb71b3c2c4312c0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitter_friendly (0.2.0)
4
+ twitter_friendly (0.2.1)
5
5
  activesupport (>= 4.2, < 6.0)
6
6
  oj (~> 3.7.6)
7
7
  parallel (~> 1.12.1)
@@ -7,11 +7,11 @@ module TwitterFriendly
7
7
  def_delegators :@client, :clear, :cleanup
8
8
 
9
9
  def initialize(*args)
10
- options = args.extract_options!
10
+ options = {expires_in: 1.hour, race_condition_ttl: 5.minutes}.merge(args.extract_options!)
11
11
 
12
12
  path = options[:cache_dir] || File.join('.twitter_friendly', 'cache')
13
13
  FileUtils.mkdir_p(path) unless File.exists?(path)
14
- @client = ::ActiveSupport::Cache::FileStore.new(path, expires_in: 1.hour, race_condition_ttl: 5.minutes)
14
+ @client = ::ActiveSupport::Cache::FileStore.new(path, options)
15
15
  end
16
16
 
17
17
  def fetch(method, user, options = {}, &block)
@@ -1,3 +1,3 @@
1
1
  module TwitterFriendly
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_friendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ts-3156