incrdecr_cached_counts 0.4.0 → 0.5.0

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: b1abd3ec58583d46e713effab128bece6d90b4799261cb5714981e8e545a293b
4
- data.tar.gz: 435c1c883ba00f766473e563732602245e5a1680f92bbc852251ce48497bab53
3
+ metadata.gz: 5c0a0f2090aabd3b286436ad4bce2dca587f003cb5c19307be1d7974c84894ab
4
+ data.tar.gz: 546850171cb6d859149155acd0a6c3cc4697702306c7e7d7015c6a6e86bc4066
5
5
  SHA512:
6
- metadata.gz: 870a0f140a0d815f1e2e824ae5c9cd802cfcab3be446f376ad2f08f80ff2eadd560d899a7f85cfd099d08a2ffbc517beeb5926575cae557e5a68c2d3d9bb79e8
7
- data.tar.gz: 6f6058c68108b32c94e3d6c4be7d785974371f21b7fd828f4df9a5b33d108912537ed102685bb2601aac5e3267a32ea27d4a65508721c0ca5cb5566e44aac1f5
6
+ metadata.gz: dc5aa5c3e0977528853821aa6d11484f1bfccbb8c435c003ea4c90856cac06933448c52707884dd182a5727f04c701ff5a5bf21d8454b695637a62fd0860ed72
7
+ data.tar.gz: 7ce3ec421d5bea4a5f6e1a5a80c341fcb603f8288a13751058afb9ced3aea58ceae75668a42522132d3f3246e5955a60a16ecf80f6b9a1b6d6017a1286e9f9b1
@@ -1,5 +1,4 @@
1
1
  require 'cached_counts/logger'
2
- require 'cached_counts/dalli_check'
3
2
  require 'cached_counts/query_context'
4
3
 
5
4
  module CachedCounts
@@ -1,3 +1,3 @@
1
1
  module CachedCounts
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -3,7 +3,7 @@ require 'bundler/setup'
3
3
  require 'pry'
4
4
  require 'active_record'
5
5
  require 'rails'
6
- require 'active_support/cache/dalli_store'
6
+ require 'active_support/cache/mem_cache_store'
7
7
  require 'cached_counts'
8
8
 
9
9
  ActiveRecord::Base.configurations = YAML::load_file('spec/database.yml')
@@ -13,7 +13,7 @@ if ActiveRecord::Base.respond_to?(:raise_in_transactional_callbacks)
13
13
  ActiveRecord::Base.raise_in_transactional_callbacks = true
14
14
  end
15
15
 
16
- Rails.cache = ActiveSupport::Cache::DalliStore.new("localhost")
16
+ Rails.cache = ActiveSupport::Cache::MemCacheStore.new("localhost")
17
17
 
18
18
  RSpec.configure do |config|
19
19
  config.before(:each) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incrdecr_cached_counts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Judd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -111,7 +111,6 @@ files:
111
111
  - Rakefile
112
112
  - incrdecr_cached_counts.gemspec
113
113
  - lib/cached_counts.rb
114
- - lib/cached_counts/dalli_check.rb
115
114
  - lib/cached_counts/logger.rb
116
115
  - lib/cached_counts/query_context.rb
117
116
  - lib/cached_counts/railtie.rb
@@ -1,5 +0,0 @@
1
- if defined?(Rails)
2
- ActiveSupport.on_load :cached_counts do
3
- raise "CachedCounts depends on Dalli!" unless Rails.cache.respond_to?(:dalli)
4
- end
5
- end