cacheflow 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -2
- data/LICENSE.txt +1 -1
- data/README.md +14 -1
- data/lib/cacheflow/version.rb +1 -1
- metadata +14 -89
- data/.gitignore +0 -9
- data/Gemfile +0 -4
- data/Rakefile +0 -10
- data/cacheflow.gemspec +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f585f3cf94b24eb7c3d9282c4f726f2218177e14006e74162c2ccafc2da07f24
|
4
|
+
data.tar.gz: 43e447b62e8c3d539f6aed7e894492c9d21788f2405eccffb032343776e2ccf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91114836fbdb19720357849834ceae7e358480b1ead162bf44c88e8c9cbbf6ffca789400a8141412a39a2ac049086b77fb97d1a47e1b37393dec22842ba56ef
|
7
|
+
data.tar.gz: 6b13c5830438a9d4ef652b87f2b602e37a5f235622a7ef05a4b435c0d572f758cec72743c9982d4d96a002147d67bc7708dbeeb1db88ddddff27cf113e9e2122
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -26,12 +26,16 @@ Cacheflow.silence do
|
|
26
26
|
end
|
27
27
|
```
|
28
28
|
|
29
|
-
To silence logging for
|
29
|
+
To silence logging for [Sidekiq](https://github.com/mperham/sidekiq) commands, create an initializer with:
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
Cacheflow.silence_sidekiq!
|
33
33
|
```
|
34
34
|
|
35
|
+
## Data Protection
|
36
|
+
|
37
|
+
If you use Cacheflow in an environment with [personal data](https://en.wikipedia.org/wiki/Personally_identifiable_information) and store that data in Memcached or Redis, it can end up in your app logs. To avoid this, silence logging for those calls.
|
38
|
+
|
35
39
|
## History
|
36
40
|
|
37
41
|
View the [changelog](https://github.com/ankane/cacheflow/blob/master/CHANGELOG.md)
|
@@ -44,3 +48,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
|
|
44
48
|
- Fix bugs and [submit pull requests](https://github.com/ankane/cacheflow/pulls)
|
45
49
|
- Write, clarify, or fix documentation
|
46
50
|
- Suggest or add new features
|
51
|
+
|
52
|
+
To get started with development:
|
53
|
+
|
54
|
+
```sh
|
55
|
+
git clone https://github.com/ankane/cacheflow.git
|
56
|
+
cd cacheflow
|
57
|
+
bundle install
|
58
|
+
bundle exec rake test
|
59
|
+
```
|
data/lib/cacheflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cacheflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,107 +16,33 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
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: '
|
27
|
-
|
28
|
-
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: dalli
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: redis
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
description:
|
98
|
-
email:
|
99
|
-
- andrew@chartkick.com
|
26
|
+
version: '5.2'
|
27
|
+
description:
|
28
|
+
email: andrew@ankane.org
|
100
29
|
executables: []
|
101
30
|
extensions: []
|
102
31
|
extra_rdoc_files: []
|
103
32
|
files:
|
104
|
-
- ".gitignore"
|
105
33
|
- CHANGELOG.md
|
106
|
-
- Gemfile
|
107
34
|
- LICENSE.txt
|
108
35
|
- README.md
|
109
|
-
- Rakefile
|
110
|
-
- cacheflow.gemspec
|
111
36
|
- lib/cacheflow.rb
|
112
37
|
- lib/cacheflow/memcached.rb
|
113
38
|
- lib/cacheflow/railtie.rb
|
114
39
|
- lib/cacheflow/redis.rb
|
115
40
|
- lib/cacheflow/version.rb
|
116
41
|
homepage: https://github.com/ankane/cacheflow
|
117
|
-
licenses:
|
42
|
+
licenses:
|
43
|
+
- MIT
|
118
44
|
metadata: {}
|
119
|
-
post_install_message:
|
45
|
+
post_install_message:
|
120
46
|
rdoc_options: []
|
121
47
|
require_paths:
|
122
48
|
- lib
|
@@ -124,16 +50,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
50
|
requirements:
|
125
51
|
- - ">="
|
126
52
|
- !ruby/object:Gem::Version
|
127
|
-
version: '
|
53
|
+
version: '2.6'
|
128
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
55
|
requirements:
|
130
56
|
- - ">="
|
131
57
|
- !ruby/object:Gem::Version
|
132
58
|
version: '0'
|
133
59
|
requirements: []
|
134
|
-
|
135
|
-
|
136
|
-
signing_key:
|
60
|
+
rubygems_version: 3.3.3
|
61
|
+
signing_key:
|
137
62
|
specification_version: 4
|
138
63
|
summary: Colorized logging for Memcached and Redis
|
139
64
|
test_files: []
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/cacheflow.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "cacheflow/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "cacheflow"
|
8
|
-
spec.version = Cacheflow::VERSION
|
9
|
-
spec.authors = ["Andrew Kane"]
|
10
|
-
spec.email = ["andrew@chartkick.com"]
|
11
|
-
|
12
|
-
spec.summary = "Colorized logging for Memcached and Redis"
|
13
|
-
spec.homepage = "https://github.com/ankane/cacheflow"
|
14
|
-
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
-
f.match(%r{^(test|spec|features)/})
|
17
|
-
end
|
18
|
-
spec.bindir = "exe"
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_dependency "activesupport"
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "minitest"
|
27
|
-
spec.add_development_dependency "dalli"
|
28
|
-
spec.add_development_dependency "redis"
|
29
|
-
end
|