thoth 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/thoth/logger.rb +1 -1
- data/lib/thoth/version.rb +1 -1
- data/spec/dummy/Gemfile +1 -1
- data/thoth.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc4c495e0e43df12a9feac3c87b8dd8048b92fa85b0888fe7625dc7e2baa313a
|
4
|
+
data.tar.gz: b0e4f5196a85f87a9c4b4460cf0aa5acaf93e5d175d16551c370c57f55c6d0ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c8206712f6c30272a25ad2328385555bddd8fda18e9787a872add736fe1bbbc4a3a445399eb8447393fb1c6b0fc5384f28e880a2a3248b4c5f7e96f550bd12
|
7
|
+
data.tar.gz: 29ea47f712c88d147b6ed47b56ea944f49b3888cf8895815f7b13210b24c6276b396c9043e991842ed1ab01878c19c9d8db9431827f01935566354ca1654fc49
|
data/README.md
CHANGED
@@ -68,6 +68,14 @@ file = File.open(Rails.root.join(*%w[log checkout_events.log]), 'a')
|
|
68
68
|
Thoth.logger = Thoth::Logger.new(Thoth::Output::Json.new(file))
|
69
69
|
```
|
70
70
|
|
71
|
+
## Running Specs
|
72
|
+
```
|
73
|
+
cd spec/dummy
|
74
|
+
bundle exec rake db:setup
|
75
|
+
cd ../..
|
76
|
+
bundle exec rspec
|
77
|
+
```
|
78
|
+
|
71
79
|
|
72
80
|
## Contributing
|
73
81
|
|
data/lib/thoth/logger.rb
CHANGED
@@ -11,7 +11,7 @@ module Thoth
|
|
11
11
|
|
12
12
|
#lazy load this since this class is initialized before rails' filter_parameters is set
|
13
13
|
def param_filter
|
14
|
-
@param_filter ||= ::
|
14
|
+
@param_filter ||= ::ActiveSupport::ParameterFilter.new(::Rails.application.config.filter_parameters)
|
15
15
|
end
|
16
16
|
|
17
17
|
def log(event_name, details={}, context={})
|
data/lib/thoth/version.rb
CHANGED
data/spec/dummy/Gemfile
CHANGED
data/thoth.gemspec
CHANGED
@@ -17,12 +17,12 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency 'activesupport', ['>=
|
20
|
+
spec.add_dependency 'activesupport', ['>= 6.0']
|
21
21
|
spec.add_dependency 'request_store'
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency 'rails', '>=
|
25
|
+
spec.add_development_dependency 'rails', '>= 6.0'
|
26
26
|
spec.add_development_dependency 'rspec-rails', '>= 4.1.2'
|
27
27
|
spec.add_development_dependency 'sqlite3'
|
28
28
|
spec.add_development_dependency 'pry-remote'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thoth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Huibonhoa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.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: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: request_store
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '6.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|