infopark_component_cache 3.1.0 → 4.1.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 +5 -5
- data/.gitignore +1 -1
- data/.rubocop.yml +25 -0
- data/.rubocop_todo.yml +115 -0
- data/.ruby-version +1 -1
- data/.travis.yml +24 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +214 -0
- data/Gemfile.rails50 +6 -0
- data/Gemfile.rails50.lock +206 -0
- data/Gemfile.rails51 +6 -0
- data/Gemfile.rails51.lock +206 -0
- data/README.md +1 -1
- data/Rakefile +7 -7
- data/app/helpers/infopark_component_cache_helper.rb +2 -2
- data/infopark_component_cache.gemspec +16 -13
- data/lib/engine.rb +6 -7
- data/lib/infopark_component_cache.rb +1 -2
- data/lib/infopark_component_cache/abstract_cache_storage.rb +4 -3
- data/lib/infopark_component_cache/cache_storage.rb +1 -0
- data/lib/infopark_component_cache/component.rb +9 -5
- data/lib/infopark_component_cache/component_cache.rb +31 -30
- data/lib/infopark_component_cache/consistency_guard.rb +1 -1
- data/lib/infopark_component_cache/delayed_guard.rb +7 -7
- data/lib/infopark_component_cache/guards/cms_state_guard.rb +6 -5
- data/lib/infopark_component_cache/guards/last_changed.rb +5 -2
- data/lib/infopark_component_cache/guards/obj_count.rb +3 -3
- data/lib/infopark_component_cache/guards/valid_from.rb +7 -10
- data/lib/infopark_component_cache/guards/valid_until.rb +7 -9
- data/lib/infopark_component_cache/key_generator.rb +3 -3
- data/lib/infopark_component_cache/version.rb +1 -1
- data/lib/infopark_component_cache/volatile_cache.rb +1 -1
- data/lib/infopark_component_cache/volatile_cache_storage.rb +1 -0
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/config/application.rb +4 -2
- data/spec/dummy/config/boot.rb +5 -5
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +1 -0
- data/spec/dummy/config/environments/test.rb +1 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/db/schema.rb +1 -2
- data/spec/lib/infopark_component_cache/component_cache_spec.rb +118 -0
- data/spec/lib/{delayed_guard_spec.rb → infopark_component_cache/delayed_guard_spec.rb} +3 -3
- data/spec/lib/{guards → infopark_component_cache/guards}/always_consistent_spec.rb +7 -6
- data/spec/lib/{guards → infopark_component_cache/guards}/last_changed_spec.rb +20 -12
- data/spec/lib/{guards → infopark_component_cache/guards}/never_consistent_spec.rb +7 -6
- data/spec/lib/{guards → infopark_component_cache/guards}/obj_count_spec.rb +20 -12
- data/spec/lib/{guards → infopark_component_cache/guards}/valid_from_spec.rb +20 -12
- data/spec/lib/{guards → infopark_component_cache/guards}/valid_until_spec.rb +23 -14
- data/spec/spec_helper.rb +8 -8
- data/spec/support/cache_switching_macros.rb +4 -4
- metadata +96 -40
- data/spec/lib/compontent_cache_spec.rb +0 -116
@@ -1,19 +1,20 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "spec_helper"
|
2
|
+
require "infopark_component_cache/guards/always_consistent"
|
3
3
|
|
4
4
|
describe InfoparkComponentCache::Guards::AlwaysConsistent do
|
5
|
-
{"with cache disabled" => :disable_cache, "with cache enabled" => :enable_cache}.each do |context_description, macro|
|
5
|
+
{ "with cache disabled" => :disable_cache, "with cache enabled" => :enable_cache }.each do |context_description, macro|
|
6
6
|
context context_description do
|
7
|
-
|
7
|
+
send(macro)
|
8
8
|
|
9
|
-
subject { described_class.new(double) }
|
9
|
+
subject(:guard) { described_class.new(double) }
|
10
10
|
|
11
11
|
context "without a call to guard!" do
|
12
12
|
it { is_expected.to be_consistent }
|
13
13
|
end
|
14
14
|
|
15
15
|
context "with a call to guard!" do
|
16
|
-
before {
|
16
|
+
before { guard.guard! }
|
17
|
+
|
17
18
|
it { is_expected.to be_consistent }
|
18
19
|
end
|
19
20
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe InfoparkComponentCache::Guards::LastChanged do
|
4
|
+
subject(:guard) { described_class.new(cache_component_stub) }
|
5
|
+
|
4
6
|
let(:cache_component_stub) do
|
5
7
|
double.tap do |cache_component_stub|
|
6
8
|
cache_component_stub.stub(:cache_key) do |input|
|
@@ -9,7 +11,7 @@ describe InfoparkComponentCache::Guards::LastChanged do
|
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
12
|
-
let(:maximum_last_changed) { 10.minutes.ago
|
14
|
+
let(:maximum_last_changed) { 10.minutes.ago }
|
13
15
|
|
14
16
|
let(:obj_stub) do
|
15
17
|
double.tap do |obj_stub|
|
@@ -23,8 +25,6 @@ describe InfoparkComponentCache::Guards::LastChanged do
|
|
23
25
|
|
24
26
|
before { InfoparkComponentCache::CmsStateGuard.obj_root_class = obj_stub }
|
25
27
|
|
26
|
-
subject { described_class.new(cache_component_stub) }
|
27
|
-
|
28
28
|
context "with cache disabled" do
|
29
29
|
disable_cache
|
30
30
|
|
@@ -33,7 +33,8 @@ describe InfoparkComponentCache::Guards::LastChanged do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
context "with a call to guard!" do
|
36
|
-
before {
|
36
|
+
before { guard.guard! }
|
37
|
+
|
37
38
|
it { is_expected.not_to be_consistent }
|
38
39
|
end
|
39
40
|
end
|
@@ -47,19 +48,26 @@ describe InfoparkComponentCache::Guards::LastChanged do
|
|
47
48
|
end
|
48
49
|
|
49
50
|
context "with a call to guard!" do
|
50
|
-
before {
|
51
|
+
before { guard.guard! }
|
52
|
+
|
51
53
|
it { is_expected.to be_consistent }
|
52
54
|
end
|
53
55
|
|
54
|
-
context "after maximum last change changes" do
|
55
|
-
before
|
56
|
-
|
56
|
+
context "when after maximum last change changes" do
|
57
|
+
before do
|
58
|
+
guard.guard!
|
59
|
+
obj_stub.stub(:maximum).and_return(Time.now.to_iso)
|
60
|
+
end
|
61
|
+
|
57
62
|
it { is_expected.not_to be_consistent }
|
58
63
|
end
|
59
64
|
|
60
|
-
context "after maximum last change changes to a past date" do
|
61
|
-
before
|
62
|
-
|
65
|
+
context "when after maximum last change changes to a past date" do
|
66
|
+
before do
|
67
|
+
guard.guard!
|
68
|
+
obj_stub.stub(:maximum).and_return(1.month.ago.to_iso)
|
69
|
+
end
|
70
|
+
|
63
71
|
it { is_expected.to be_consistent }
|
64
72
|
end
|
65
73
|
end
|
@@ -1,19 +1,20 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "spec_helper"
|
2
|
+
require "infopark_component_cache/guards/never_consistent"
|
3
3
|
|
4
4
|
describe InfoparkComponentCache::Guards::NeverConsistent do
|
5
|
-
{"cache disabled" => :disable_cache, "cache enabled" => :enable_cache}.each do |context_description, macro|
|
5
|
+
{ "cache disabled" => :disable_cache, "cache enabled" => :enable_cache }.each do |context_description, macro|
|
6
6
|
context context_description do
|
7
|
-
|
7
|
+
send(macro)
|
8
8
|
|
9
|
-
subject { described_class.new(double) }
|
9
|
+
subject(:guard) { described_class.new(double) }
|
10
10
|
|
11
11
|
context "without a call to guard!" do
|
12
12
|
it { is_expected.not_to be_consistent }
|
13
13
|
end
|
14
14
|
|
15
15
|
context "with a call to guard!" do
|
16
|
-
before {
|
16
|
+
before { guard.guard! }
|
17
|
+
|
17
18
|
it { is_expected.not_to be_consistent }
|
18
19
|
end
|
19
20
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe InfoparkComponentCache::Guards::ObjCount do
|
4
|
+
subject(:guard) { described_class.new(cache_component_stub) }
|
5
|
+
|
4
6
|
let(:cache_component_stub) do
|
5
7
|
double.tap do |cache_component_stub|
|
6
8
|
cache_component_stub.stub(:cache_key) do |input|
|
@@ -9,7 +11,7 @@ describe InfoparkComponentCache::Guards::ObjCount do
|
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
12
|
-
let(:count) {
|
14
|
+
let(:count) { 12_314 }
|
13
15
|
|
14
16
|
let(:obj_stub) do
|
15
17
|
double.tap do |obj_stub|
|
@@ -21,8 +23,6 @@ describe InfoparkComponentCache::Guards::ObjCount do
|
|
21
23
|
|
22
24
|
before { InfoparkComponentCache::CmsStateGuard.obj_root_class = obj_stub }
|
23
25
|
|
24
|
-
subject { described_class.new(cache_component_stub) }
|
25
|
-
|
26
26
|
context "with cache disabled" do
|
27
27
|
disable_cache
|
28
28
|
|
@@ -31,7 +31,8 @@ describe InfoparkComponentCache::Guards::ObjCount do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
context "with a call to guard!" do
|
34
|
-
before {
|
34
|
+
before { guard.guard! }
|
35
|
+
|
35
36
|
it { is_expected.not_to be_consistent }
|
36
37
|
end
|
37
38
|
end
|
@@ -45,19 +46,26 @@ describe InfoparkComponentCache::Guards::ObjCount do
|
|
45
46
|
end
|
46
47
|
|
47
48
|
context "with a call to guard!" do
|
48
|
-
before {
|
49
|
+
before { guard.guard! }
|
50
|
+
|
49
51
|
it { is_expected.to be_consistent }
|
50
52
|
end
|
51
53
|
|
52
|
-
context "after obj count increases" do
|
53
|
-
before
|
54
|
-
|
54
|
+
context "when after obj count increases" do
|
55
|
+
before do
|
56
|
+
guard.guard!
|
57
|
+
obj_stub.stub(:count).and_return(55_555)
|
58
|
+
end
|
59
|
+
|
55
60
|
it { is_expected.not_to be_consistent }
|
56
61
|
end
|
57
62
|
|
58
|
-
context "after obj count decreases" do
|
59
|
-
before
|
60
|
-
|
63
|
+
context "when after obj count decreases" do
|
64
|
+
before do
|
65
|
+
guard.guard!
|
66
|
+
obj_stub.stub(:count).and_return(500)
|
67
|
+
end
|
68
|
+
|
61
69
|
it { is_expected.not_to be_consistent }
|
62
70
|
end
|
63
71
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe InfoparkComponentCache::Guards::ValidFrom do
|
4
|
+
subject(:guard) { described_class.new(cache_component_stub) }
|
5
|
+
|
4
6
|
let(:cache_component_stub) do
|
5
7
|
double.tap do |cache_component_stub|
|
6
8
|
cache_component_stub.stub(:cache_key) do |input|
|
@@ -9,7 +11,7 @@ describe InfoparkComponentCache::Guards::ValidFrom do
|
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
12
|
-
let(:minimum_valid_from) { 10.minutes.since
|
14
|
+
let(:minimum_valid_from) { 10.minutes.since }
|
13
15
|
|
14
16
|
let(:obj_stub) do
|
15
17
|
double.tap do |obj_stub|
|
@@ -23,8 +25,6 @@ describe InfoparkComponentCache::Guards::ValidFrom do
|
|
23
25
|
|
24
26
|
before { InfoparkComponentCache::CmsStateGuard.obj_root_class = obj_stub }
|
25
27
|
|
26
|
-
subject { described_class.new(cache_component_stub) }
|
27
|
-
|
28
28
|
context "with cache disabled" do
|
29
29
|
disable_cache
|
30
30
|
|
@@ -33,7 +33,8 @@ describe InfoparkComponentCache::Guards::ValidFrom do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
context "with a call to guard!" do
|
36
|
-
before {
|
36
|
+
before { guard.guard! }
|
37
|
+
|
37
38
|
it { is_expected.not_to be_consistent }
|
38
39
|
end
|
39
40
|
end
|
@@ -47,19 +48,26 @@ describe InfoparkComponentCache::Guards::ValidFrom do
|
|
47
48
|
end
|
48
49
|
|
49
50
|
context "with a call to guard!" do
|
50
|
-
before {
|
51
|
+
before { guard.guard! }
|
52
|
+
|
51
53
|
it { is_expected.to be_consistent }
|
52
54
|
end
|
53
55
|
|
54
|
-
context "after minimum valid from changes to a present date" do
|
55
|
-
before
|
56
|
-
|
56
|
+
context "when after minimum valid from changes to a present date" do
|
57
|
+
before do
|
58
|
+
guard.guard!
|
59
|
+
obj_stub.stub(:minimum).and_return(Time.now.to_iso)
|
60
|
+
end
|
61
|
+
|
57
62
|
it { is_expected.not_to be_consistent }
|
58
63
|
end
|
59
64
|
|
60
|
-
context "after minimum valid from changes to a past date" do
|
61
|
-
before
|
62
|
-
|
65
|
+
context "when after minimum valid from changes to a past date" do
|
66
|
+
before do
|
67
|
+
guard.guard!
|
68
|
+
obj_stub.stub(:minimum).and_return(1.month.ago.to_iso)
|
69
|
+
end
|
70
|
+
|
63
71
|
it { is_expected.not_to be_consistent }
|
64
72
|
end
|
65
73
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe InfoparkComponentCache::Guards::ValidUntil do
|
4
|
+
subject(:guard) { described_class.new(cache_component_stub) }
|
5
|
+
|
4
6
|
let(:cache_component_stub) do
|
5
7
|
double.tap do |cache_component_stub|
|
6
8
|
cache_component_stub.stub(:cache_key) do |input|
|
@@ -9,7 +11,7 @@ describe InfoparkComponentCache::Guards::ValidUntil do
|
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
12
|
-
let(:minimum_valid_until) { 10.minutes.since
|
14
|
+
let(:minimum_valid_until) { 10.minutes.since }
|
13
15
|
|
14
16
|
let(:obj_stub) do
|
15
17
|
double.tap do |obj_stub|
|
@@ -23,8 +25,6 @@ describe InfoparkComponentCache::Guards::ValidUntil do
|
|
23
25
|
|
24
26
|
before { InfoparkComponentCache::CmsStateGuard.obj_root_class = obj_stub }
|
25
27
|
|
26
|
-
subject { described_class.new(cache_component_stub) }
|
27
|
-
|
28
28
|
context "with cache disabled" do
|
29
29
|
disable_cache
|
30
30
|
|
@@ -33,7 +33,8 @@ describe InfoparkComponentCache::Guards::ValidUntil do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
context "with a call to guard!" do
|
36
|
-
before {
|
36
|
+
before { guard.guard! }
|
37
|
+
|
37
38
|
it { is_expected.not_to be_consistent }
|
38
39
|
end
|
39
40
|
end
|
@@ -47,26 +48,34 @@ describe InfoparkComponentCache::Guards::ValidUntil do
|
|
47
48
|
end
|
48
49
|
|
49
50
|
context "with a call to guard!" do
|
50
|
-
before {
|
51
|
+
before { guard.guard! }
|
52
|
+
|
51
53
|
it { is_expected.to be_consistent }
|
52
54
|
end
|
53
55
|
|
54
|
-
context "after minimum valid until changes to a present date" do
|
55
|
-
before
|
56
|
-
|
56
|
+
context "when after minimum valid until changes to a present date" do
|
57
|
+
before do
|
58
|
+
guard.guard!
|
59
|
+
obj_stub.stub(:minimum).and_return(Time.now.to_iso)
|
60
|
+
end
|
61
|
+
|
57
62
|
it { is_expected.not_to be_consistent }
|
58
63
|
end
|
59
64
|
|
60
|
-
context "after minimum valid until changes to a past date" do
|
61
|
-
before
|
62
|
-
|
65
|
+
context "when after minimum valid until changes to a past date" do
|
66
|
+
before do
|
67
|
+
guard.guard!
|
68
|
+
obj_stub.stub(:minimum).and_return(1.month.ago.to_iso)
|
69
|
+
end
|
70
|
+
|
63
71
|
it { is_expected.not_to be_consistent }
|
64
72
|
end
|
65
73
|
|
66
|
-
context "nil valid until" do
|
74
|
+
context "when nil valid until" do
|
67
75
|
let(:minimum_valid_until) { nil }
|
68
76
|
|
69
|
-
before {
|
77
|
+
before { guard.guard! }
|
78
|
+
|
70
79
|
it { is_expected.to be_consistent }
|
71
80
|
end
|
72
81
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
ENV[
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
2
|
# Load dummy app
|
3
|
-
require File.expand_path("
|
3
|
+
require File.expand_path("dummy/config/environment.rb", __dir__)
|
4
4
|
# Load rspec components
|
5
|
-
require
|
6
|
-
require
|
5
|
+
require "rspec/rails"
|
6
|
+
require "byebug"
|
7
7
|
# Nice backtraces
|
8
8
|
Rails.backtrace_cleaner.remove_silencers!
|
9
9
|
# Load support files
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
11
11
|
|
12
12
|
# configure rspec
|
13
13
|
RSpec.configure do |config|
|
@@ -17,12 +17,12 @@ RSpec.configure do |config|
|
|
17
17
|
config.order = "random"
|
18
18
|
config.extend CacheSwitchingMacros
|
19
19
|
config.expect_with :rspec do |c|
|
20
|
-
c.syntax =
|
20
|
+
c.syntax = %i(should expect)
|
21
21
|
end
|
22
22
|
config.mock_with :rspec do |c|
|
23
|
-
c.syntax =
|
23
|
+
c.syntax = %i(should expect)
|
24
24
|
end
|
25
|
-
config.before
|
25
|
+
config.before do
|
26
26
|
Rails.cache.clear
|
27
27
|
end
|
28
28
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module CacheSwitchingMacros
|
2
|
-
def enable_cache(trigger
|
2
|
+
def enable_cache(trigger = :all)
|
3
3
|
before(trigger) do
|
4
4
|
@__perform_caching_before ||= []
|
5
5
|
@__perform_caching_before.push Rails.application.config.action_controller.perform_caching
|
@@ -7,13 +7,13 @@ module CacheSwitchingMacros
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after(trigger) do
|
10
|
-
@__perform_caching_before ||=[]
|
10
|
+
@__perform_caching_before ||= []
|
11
11
|
previous_setting = @__perform_caching_before.pop || false
|
12
12
|
Rails.application.config.action_controller.perform_caching = previous_setting
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def disable_cache(trigger
|
16
|
+
def disable_cache(trigger = :all)
|
17
17
|
before(trigger) do
|
18
18
|
@__perform_caching_before ||= []
|
19
19
|
@__perform_caching_before.push Rails.application.config.action_controller.perform_caching
|
@@ -21,7 +21,7 @@ module CacheSwitchingMacros
|
|
21
21
|
end
|
22
22
|
|
23
23
|
after(trigger) do
|
24
|
-
@__perform_caching_before ||=[]
|
24
|
+
@__perform_caching_before ||= []
|
25
25
|
previous_setting = @__perform_caching_before.pop || false
|
26
26
|
Rails.application.config.action_controller.perform_caching = previous_setting
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_component_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Tomasz Przedmojski
|
8
|
-
autorequire:
|
7
|
+
- Tomasz Przedmojski, sveninfo
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,28 +16,42 @@ dependencies:
|
|
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
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 7.0.1.5.2.3.rc5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 7.0.1.5.2.3.rc5
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry-byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.9'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '3.9'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec-rails
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,33 +67,67 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.5'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: 0.87.1
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: 0.87.1
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: rubocop-performance
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.7'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.30'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.30'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.3'
|
73
118
|
- - ">="
|
74
119
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
120
|
+
version: 1.3.6
|
76
121
|
type: :development
|
77
122
|
prerelease: false
|
78
123
|
version_requirements: !ruby/object:Gem::Requirement
|
79
124
|
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '1.3'
|
80
128
|
- - ">="
|
81
129
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
130
|
+
version: 1.3.6
|
83
131
|
description: Easy and intelligent fragment caching for RailsConnector projects
|
84
132
|
email:
|
85
133
|
- tomasz.przedmojski@infopark.de
|
@@ -89,8 +137,16 @@ extra_rdoc_files: []
|
|
89
137
|
files:
|
90
138
|
- ".gitignore"
|
91
139
|
- ".rspec"
|
140
|
+
- ".rubocop.yml"
|
141
|
+
- ".rubocop_todo.yml"
|
92
142
|
- ".ruby-version"
|
143
|
+
- ".travis.yml"
|
93
144
|
- Gemfile
|
145
|
+
- Gemfile.lock
|
146
|
+
- Gemfile.rails50
|
147
|
+
- Gemfile.rails50.lock
|
148
|
+
- Gemfile.rails51
|
149
|
+
- Gemfile.rails51.lock
|
94
150
|
- LICENSE.txt
|
95
151
|
- README.md
|
96
152
|
- Rakefile
|
@@ -137,20 +193,21 @@ files:
|
|
137
193
|
- spec/dummy/db/development.sqlite3
|
138
194
|
- spec/dummy/db/schema.rb
|
139
195
|
- spec/dummy/log/.gitkeep
|
140
|
-
- spec/lib/
|
141
|
-
- spec/lib/delayed_guard_spec.rb
|
142
|
-
- spec/lib/guards/always_consistent_spec.rb
|
143
|
-
- spec/lib/guards/last_changed_spec.rb
|
144
|
-
- spec/lib/guards/never_consistent_spec.rb
|
145
|
-
- spec/lib/guards/obj_count_spec.rb
|
146
|
-
- spec/lib/guards/valid_from_spec.rb
|
147
|
-
- spec/lib/guards/valid_until_spec.rb
|
196
|
+
- spec/lib/infopark_component_cache/component_cache_spec.rb
|
197
|
+
- spec/lib/infopark_component_cache/delayed_guard_spec.rb
|
198
|
+
- spec/lib/infopark_component_cache/guards/always_consistent_spec.rb
|
199
|
+
- spec/lib/infopark_component_cache/guards/last_changed_spec.rb
|
200
|
+
- spec/lib/infopark_component_cache/guards/never_consistent_spec.rb
|
201
|
+
- spec/lib/infopark_component_cache/guards/obj_count_spec.rb
|
202
|
+
- spec/lib/infopark_component_cache/guards/valid_from_spec.rb
|
203
|
+
- spec/lib/infopark_component_cache/guards/valid_until_spec.rb
|
148
204
|
- spec/spec_helper.rb
|
149
205
|
- spec/support/cache_switching_macros.rb
|
150
|
-
homepage:
|
151
|
-
licenses:
|
206
|
+
homepage: http://infopark.com
|
207
|
+
licenses:
|
208
|
+
- LGPL-3.0
|
152
209
|
metadata: {}
|
153
|
-
post_install_message:
|
210
|
+
post_install_message:
|
154
211
|
rdoc_options: []
|
155
212
|
require_paths:
|
156
213
|
- lib
|
@@ -165,9 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
222
|
- !ruby/object:Gem::Version
|
166
223
|
version: '0'
|
167
224
|
requirements: []
|
168
|
-
|
169
|
-
|
170
|
-
signing_key:
|
225
|
+
rubygems_version: 3.0.9
|
226
|
+
signing_key:
|
171
227
|
specification_version: 4
|
172
228
|
summary: Fragment caching with automatic dependency resolution and cache invalidation.
|
173
229
|
test_files:
|
@@ -188,13 +244,13 @@ test_files:
|
|
188
244
|
- spec/dummy/db/development.sqlite3
|
189
245
|
- spec/dummy/db/schema.rb
|
190
246
|
- spec/dummy/log/.gitkeep
|
191
|
-
- spec/lib/
|
192
|
-
- spec/lib/delayed_guard_spec.rb
|
193
|
-
- spec/lib/guards/always_consistent_spec.rb
|
194
|
-
- spec/lib/guards/last_changed_spec.rb
|
195
|
-
- spec/lib/guards/never_consistent_spec.rb
|
196
|
-
- spec/lib/guards/obj_count_spec.rb
|
197
|
-
- spec/lib/guards/valid_from_spec.rb
|
198
|
-
- spec/lib/guards/valid_until_spec.rb
|
247
|
+
- spec/lib/infopark_component_cache/component_cache_spec.rb
|
248
|
+
- spec/lib/infopark_component_cache/delayed_guard_spec.rb
|
249
|
+
- spec/lib/infopark_component_cache/guards/always_consistent_spec.rb
|
250
|
+
- spec/lib/infopark_component_cache/guards/last_changed_spec.rb
|
251
|
+
- spec/lib/infopark_component_cache/guards/never_consistent_spec.rb
|
252
|
+
- spec/lib/infopark_component_cache/guards/obj_count_spec.rb
|
253
|
+
- spec/lib/infopark_component_cache/guards/valid_from_spec.rb
|
254
|
+
- spec/lib/infopark_component_cache/guards/valid_until_spec.rb
|
199
255
|
- spec/spec_helper.rb
|
200
256
|
- spec/support/cache_switching_macros.rb
|