infopark_component_cache 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/infopark_component_cache.gemspec +3 -2
- data/lib/infopark_component_cache/guards/obj_count.rb +2 -2
- data/lib/infopark_component_cache/version.rb +1 -1
- data/spec/dummy/config/environments/development.rb +1 -0
- data/spec/dummy/config/environments/test.rb +1 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b4392ee6936a3806cff0347f582f57cbfeed28e
|
4
|
+
data.tar.gz: d1641f2c87d92a1035982d5aa50e3f7ec484c9d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9ea046714f55daa41050585391eb9a44261805db03412909dced82ddbf0a57a4f304a9395c21e256673edf7f15770d00b339bc211b2f156370753913ba4ba7
|
7
|
+
data.tar.gz: de631a47a2da04432a2f5e9b8b69f75bab7c02f64f0026e0d54041705927fd88e0d244263ab88baea946861931409df931a56082b4bcae5ec46467e4c9d7c74e
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2
|
1
|
+
2.4.2
|
@@ -6,18 +6,19 @@ require 'infopark_component_cache/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "infopark_component_cache"
|
8
8
|
gem.version = InfoparkComponentCache::VERSION
|
9
|
-
gem.authors = ["Tomasz Przedmojski"]
|
9
|
+
gem.authors = ["Tomasz Przedmojski, sveninfo"]
|
10
10
|
gem.email = ["tomasz.przedmojski@infopark.de"]
|
11
11
|
gem.description = %q{Easy and intelligent fragment caching for RailsConnector projects}
|
12
12
|
gem.summary = %q{Fragment caching with automatic dependency resolution and cache invalidation.}
|
13
13
|
gem.homepage = ""
|
14
|
+
gem.license = "Nonstandard"
|
14
15
|
|
15
16
|
gem.files = `git ls-files`.split($/)
|
16
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
19
|
gem.require_paths = ["lib"]
|
19
20
|
|
20
|
-
gem.add_dependency 'rails', '
|
21
|
+
gem.add_dependency 'rails', '< 5.0'
|
21
22
|
|
22
23
|
gem.add_dependency 'infopark_fiona_connector'
|
23
24
|
|
@@ -18,7 +18,7 @@ module InfoparkComponentCache
|
|
18
18
|
|
19
19
|
# @return true if obj count can be read from cache with {#cache_key}
|
20
20
|
def count_known?
|
21
|
-
cache.exist?(cache_key) && cache.read(cache_key).kind_of?(
|
21
|
+
cache.exist?(cache_key) && cache.read(cache_key).kind_of?(Integer)
|
22
22
|
end
|
23
23
|
|
24
24
|
# @return true if no obj has been deleted or added since last {#guard!}
|
@@ -31,7 +31,7 @@ module InfoparkComponentCache
|
|
31
31
|
component.cache_key('obj_count')
|
32
32
|
end
|
33
33
|
|
34
|
-
# @return [
|
34
|
+
# @return [Integer] the number of Objs in the database
|
35
35
|
def current_count
|
36
36
|
scoped_relation.count
|
37
37
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_component_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Tomasz Przedmojski
|
7
|
+
- Tomasz Przedmojski, sveninfo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: infopark_fiona_connector
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +148,8 @@ files:
|
|
148
148
|
- spec/spec_helper.rb
|
149
149
|
- spec/support/cache_switching_macros.rb
|
150
150
|
homepage: ''
|
151
|
-
licenses:
|
151
|
+
licenses:
|
152
|
+
- Nonstandard
|
152
153
|
metadata: {}
|
153
154
|
post_install_message:
|
154
155
|
rdoc_options: []
|
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
167
|
version: '0'
|
167
168
|
requirements: []
|
168
169
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
170
|
+
rubygems_version: 2.6.14
|
170
171
|
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: Fragment caching with automatic dependency resolution and cache invalidation.
|