perma_cache 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +109 -95
- data/lib/perma_cache.rb +6 -6
- data/lib/perma_cache/version.rb +1 -1
- data/test/test_helper.rb +3 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 11f6cdac66b946cccb5f893f5da04d58975bdb66abb7671430c74fc1bff85bfe
|
4
|
+
data.tar.gz: 64cf89dbd468d3962de947433d3d1c23ece1cada7d2393ebbe7e4698ee61b946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8848468f5aaa6adfb7bdbd28cc65e5166b6bd369c774b4d8483a5e4c30cc9b16954bc3a0535d39a348234ed3f80721ab2516e40ed8c281f255fc941861857d0
|
7
|
+
data.tar.gz: d3109d11576be7ebac15fbf1ca973af12da0310b7520697c893159625aab985bc7af0e4b8e3cbaee58d30e2670e31cf4d696696d83ff5df19c54cb544f301024
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3
|
1
|
+
2.6.3
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,113 +1,126 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
perma_cache (0.0
|
4
|
+
perma_cache (0.1.0)
|
5
5
|
rails
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
actionpack (=
|
12
|
-
|
13
|
-
|
10
|
+
actioncable (5.2.3)
|
11
|
+
actionpack (= 5.2.3)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailer (5.2.3)
|
15
|
+
actionpack (= 5.2.3)
|
16
|
+
actionview (= 5.2.3)
|
17
|
+
activejob (= 5.2.3)
|
14
18
|
mail (~> 2.5, >= 2.5.4)
|
15
|
-
rails-dom-testing (~>
|
16
|
-
actionpack (
|
17
|
-
actionview (=
|
18
|
-
activesupport (=
|
19
|
-
rack (~>
|
20
|
-
rack-test (
|
21
|
-
rails-dom-testing (~>
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
23
|
-
actionview (
|
24
|
-
activesupport (=
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.2.3)
|
21
|
+
actionview (= 5.2.3)
|
22
|
+
activesupport (= 5.2.3)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (>= 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.2.3)
|
28
|
+
activesupport (= 5.2.3)
|
25
29
|
builder (~> 3.1)
|
26
|
-
|
27
|
-
rails-dom-testing (~>
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
29
|
-
activejob (
|
30
|
-
activesupport (=
|
31
|
-
globalid (>= 0.3.
|
32
|
-
activemodel (
|
33
|
-
activesupport (=
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.2.3)
|
34
|
+
activesupport (= 5.2.3)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.2.3)
|
37
|
+
activesupport (= 5.2.3)
|
38
|
+
activerecord (5.2.3)
|
39
|
+
activemodel (= 5.2.3)
|
40
|
+
activesupport (= 5.2.3)
|
41
|
+
arel (>= 9.0)
|
42
|
+
activestorage (5.2.3)
|
43
|
+
actionpack (= 5.2.3)
|
44
|
+
activerecord (= 5.2.3)
|
45
|
+
marcel (~> 0.3.1)
|
46
|
+
activesupport (5.2.3)
|
47
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
48
|
+
i18n (>= 0.7, < 2)
|
42
49
|
minitest (~> 5.1)
|
43
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
44
50
|
tzinfo (~> 1.1)
|
45
|
-
arel (
|
46
|
-
builder (3.2.
|
47
|
-
byebug (
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
globalid (0.
|
52
|
-
activesupport (>= 4.
|
53
|
-
i18n (
|
54
|
-
|
55
|
-
loofah (2.
|
51
|
+
arel (9.0.0)
|
52
|
+
builder (3.2.3)
|
53
|
+
byebug (11.0.1)
|
54
|
+
concurrent-ruby (1.1.5)
|
55
|
+
crass (1.0.5)
|
56
|
+
erubi (1.9.0)
|
57
|
+
globalid (0.4.2)
|
58
|
+
activesupport (>= 4.2.0)
|
59
|
+
i18n (1.7.0)
|
60
|
+
concurrent-ruby (~> 1.0)
|
61
|
+
loofah (2.3.1)
|
62
|
+
crass (~> 1.0.2)
|
56
63
|
nokogiri (>= 1.5.9)
|
57
|
-
mail (2.
|
58
|
-
|
64
|
+
mail (2.7.1)
|
65
|
+
mini_mime (>= 0.1.1)
|
66
|
+
marcel (0.3.3)
|
67
|
+
mimemagic (~> 0.3.2)
|
59
68
|
metaclass (0.0.4)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
69
|
+
method_source (0.9.2)
|
70
|
+
mimemagic (0.3.3)
|
71
|
+
mini_mime (1.0.2)
|
72
|
+
mini_portile2 (2.4.0)
|
73
|
+
minitest (5.13.0)
|
74
|
+
mocha (1.9.0)
|
64
75
|
metaclass (~> 0.0.1)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
rack
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
rails-html-sanitizer (1.0
|
88
|
-
loofah (~> 2.
|
89
|
-
railties (
|
90
|
-
actionpack (=
|
91
|
-
activesupport (=
|
76
|
+
nio4r (2.5.2)
|
77
|
+
nokogiri (1.10.5)
|
78
|
+
mini_portile2 (~> 2.4.0)
|
79
|
+
rack (2.0.7)
|
80
|
+
rack-test (1.1.0)
|
81
|
+
rack (>= 1.0, < 3)
|
82
|
+
rails (5.2.3)
|
83
|
+
actioncable (= 5.2.3)
|
84
|
+
actionmailer (= 5.2.3)
|
85
|
+
actionpack (= 5.2.3)
|
86
|
+
actionview (= 5.2.3)
|
87
|
+
activejob (= 5.2.3)
|
88
|
+
activemodel (= 5.2.3)
|
89
|
+
activerecord (= 5.2.3)
|
90
|
+
activestorage (= 5.2.3)
|
91
|
+
activesupport (= 5.2.3)
|
92
|
+
bundler (>= 1.3.0)
|
93
|
+
railties (= 5.2.3)
|
94
|
+
sprockets-rails (>= 2.0.0)
|
95
|
+
rails-dom-testing (2.0.3)
|
96
|
+
activesupport (>= 4.2.0)
|
97
|
+
nokogiri (>= 1.6)
|
98
|
+
rails-html-sanitizer (1.3.0)
|
99
|
+
loofah (~> 2.3)
|
100
|
+
railties (5.2.3)
|
101
|
+
actionpack (= 5.2.3)
|
102
|
+
activesupport (= 5.2.3)
|
103
|
+
method_source
|
92
104
|
rake (>= 0.8.7)
|
93
|
-
thor (>= 0.
|
94
|
-
rake (
|
95
|
-
shoulda (
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
sprockets (3.
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
thread_safe (0.3.5)
|
109
|
-
tzinfo (1.2.2)
|
105
|
+
thor (>= 0.19.0, < 2.0)
|
106
|
+
rake (13.0.0)
|
107
|
+
shoulda-context (1.2.2)
|
108
|
+
shoulda-matchers (4.1.2)
|
109
|
+
activesupport (>= 4.2.0)
|
110
|
+
sprockets (4.0.0)
|
111
|
+
concurrent-ruby (~> 1.0)
|
112
|
+
rack (> 1, < 3)
|
113
|
+
sprockets-rails (3.2.1)
|
114
|
+
actionpack (>= 4.0)
|
115
|
+
activesupport (>= 4.0)
|
116
|
+
sprockets (>= 3.0.0)
|
117
|
+
thor (0.20.3)
|
118
|
+
thread_safe (0.3.6)
|
119
|
+
tzinfo (1.2.5)
|
110
120
|
thread_safe (~> 0.1)
|
121
|
+
websocket-driver (0.7.1)
|
122
|
+
websocket-extensions (>= 0.1.0)
|
123
|
+
websocket-extensions (0.1.4)
|
111
124
|
|
112
125
|
PLATFORMS
|
113
126
|
ruby
|
@@ -119,7 +132,8 @@ DEPENDENCIES
|
|
119
132
|
mocha
|
120
133
|
perma_cache!
|
121
134
|
rake
|
122
|
-
shoulda
|
135
|
+
shoulda-context
|
136
|
+
shoulda-matchers
|
123
137
|
|
124
138
|
BUNDLED WITH
|
125
|
-
1.
|
139
|
+
1.17.3
|
data/lib/perma_cache.rb
CHANGED
@@ -5,22 +5,22 @@ require "perma_cache/version"
|
|
5
5
|
module PermaCache
|
6
6
|
class UndefinedCache < StandardError ; end
|
7
7
|
|
8
|
-
def self.version=
|
8
|
+
def self.version=(v)
|
9
9
|
@version = v
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.version
|
13
|
-
@version
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.cache
|
17
|
-
@cache || raise(UndefinedCache, "Please define a cache object: (PermaCache.cache = Rails.cache)")
|
13
|
+
@version ||= 1
|
18
14
|
end
|
19
15
|
|
20
16
|
def self.cache=(c)
|
21
17
|
@cache = c
|
22
18
|
end
|
23
19
|
|
20
|
+
def self.cache
|
21
|
+
@cache ||= raise(UndefinedCache, "Please define a cache object: (PermaCache.cache = Rails.cache)")
|
22
|
+
end
|
23
|
+
|
24
24
|
def self.build_key_from_object(obj)
|
25
25
|
# Don't want to add this to Object
|
26
26
|
Array.new.tap do |arr|
|
data/lib/perma_cache/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perma_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Sharpe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -63,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
|
67
|
-
rubygems_version: 2.4.8
|
66
|
+
rubygems_version: 3.0.6
|
68
67
|
signing_key:
|
69
68
|
specification_version: 4
|
70
69
|
summary: It's a perma cache, duh
|