recorder 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/recorder/changeset.rb +2 -0
- data/lib/recorder/config.rb +15 -12
- data/lib/recorder/observer.rb +1 -1
- data/lib/recorder/revision.rb +6 -5
- data/lib/recorder/sidekiq/revisions_worker.rb +1 -1
- data/lib/recorder/tape/record.rb +1 -1
- data/lib/recorder/version.rb +1 -1
- data/recorder.gemspec +8 -7
- metadata +17 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae74d8185637e26e50d8815288959677c403ac1c4879fc0feb866af31165eccf
|
4
|
+
data.tar.gz: a9d9595591300a31909329cba1406789796a776030b2a31ae0174bb0c7552947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719f87740ae8ca7f76a27c32fd0fa54a2220d87849647657394b90d4cd48fb40ff834c01f7f6c24486aa7182b784ccc75e0b81efea490e59bdd733991dcd08db
|
7
|
+
data.tar.gz: 2ed90e0e50ed3cc3eb92acf4416aa4d6aeef61ae7350f17696a2c5894b56cf804504fcb30cbf024fc3bd149c25e4abdd050af4f132b83bc947739081614e968d
|
data/Rakefile
CHANGED
data/lib/recorder/changeset.rb
CHANGED
data/lib/recorder/config.rb
CHANGED
@@ -10,18 +10,7 @@ module Recorder
|
|
10
10
|
attr_reader :ignore, :async
|
11
11
|
|
12
12
|
def initialize
|
13
|
-
|
14
|
-
@mutex = Mutex.new
|
15
|
-
@enabled = true
|
16
|
-
|
17
|
-
@sidekiq_options = {
|
18
|
-
queue: 'recorder',
|
19
|
-
retry: 10,
|
20
|
-
backtrace: true
|
21
|
-
}
|
22
|
-
|
23
|
-
@ignore = []
|
24
|
-
@async = false
|
13
|
+
reset
|
25
14
|
end
|
26
15
|
|
27
16
|
def ignore=(value)
|
@@ -40,5 +29,19 @@ module Recorder
|
|
40
29
|
def enabled=(enable)
|
41
30
|
@mutex.synchronize { @enabled = enable }
|
42
31
|
end
|
32
|
+
|
33
|
+
def reset
|
34
|
+
@mutex = Mutex.new
|
35
|
+
@enabled = true
|
36
|
+
|
37
|
+
@sidekiq_options = {
|
38
|
+
queue: 'recorder',
|
39
|
+
retry: 10,
|
40
|
+
backtrace: true
|
41
|
+
}
|
42
|
+
|
43
|
+
@ignore = []
|
44
|
+
@async = false
|
45
|
+
end
|
43
46
|
end
|
44
47
|
end
|
data/lib/recorder/observer.rb
CHANGED
data/lib/recorder/revision.rb
CHANGED
@@ -82,11 +82,12 @@ module Recorder
|
|
82
82
|
|
83
83
|
klass = "#{klass}Changeset"
|
84
84
|
|
85
|
-
klass =
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
85
|
+
klass =
|
86
|
+
begin
|
87
|
+
klass.constantize
|
88
|
+
rescue
|
89
|
+
nil
|
90
|
+
end
|
90
91
|
klass.present? ? klass : Recorder::Changeset
|
91
92
|
end
|
92
93
|
end
|
data/lib/recorder/tape/record.rb
CHANGED
data/lib/recorder/version.rb
CHANGED
data/recorder.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = 'recorder'
|
9
9
|
spec.version = Recorder::VERSION
|
10
10
|
spec.authors = ['Igor Alexandrov']
|
11
|
-
spec.email = ['igor.alexandrov@jetrockets.
|
11
|
+
spec.email = ['igor.alexandrov@jetrockets.com']
|
12
12
|
|
13
13
|
spec.summary = 'Rails model auditor'
|
14
14
|
spec.description = 'Recorder tracks changes of your Rails models'
|
@@ -20,17 +20,18 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_dependency 'activerecord', '
|
24
|
-
spec.add_dependency 'activesupport', '
|
23
|
+
spec.add_dependency 'activerecord', '~> 6.1'
|
24
|
+
spec.add_dependency 'activesupport', '~> 6.1'
|
25
25
|
spec.add_dependency 'pg'
|
26
26
|
spec.add_dependency 'request_store'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '>= 2.0'
|
29
|
-
spec.add_development_dependency 'database_cleaner'
|
29
|
+
# spec.add_development_dependency 'database_cleaner'
|
30
30
|
spec.add_development_dependency 'generator_spec'
|
31
31
|
spec.add_development_dependency 'jetrockets-standard'
|
32
32
|
spec.add_development_dependency 'rake', '~> 13.0'
|
33
|
-
spec.add_development_dependency 'rspec-rails'
|
34
|
-
spec.add_development_dependency 'timecop', '~> 0.8.1'
|
35
|
-
spec.add_development_dependency 'yard'
|
33
|
+
spec.add_development_dependency 'rspec-rails'
|
34
|
+
# spec.add_development_dependency 'timecop', '~> 0.8.1'
|
35
|
+
# spec.add_development_dependency 'yard'
|
36
|
+
spec.add_development_dependency 'rails-dummy'
|
36
37
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recorder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Alexandrov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
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.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: database_cleaner
|
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
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: generator_spec
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,32 +126,18 @@ dependencies:
|
|
140
126
|
name: rspec-rails
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- - "
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '3.5'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '3.5'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: timecop
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
129
|
+
- - ">="
|
158
130
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0
|
131
|
+
version: '0'
|
160
132
|
type: :development
|
161
133
|
prerelease: false
|
162
134
|
version_requirements: !ruby/object:Gem::Requirement
|
163
135
|
requirements:
|
164
|
-
- - "
|
136
|
+
- - ">="
|
165
137
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0
|
138
|
+
version: '0'
|
167
139
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
140
|
+
name: rails-dummy
|
169
141
|
requirement: !ruby/object:Gem::Requirement
|
170
142
|
requirements:
|
171
143
|
- - ">="
|
@@ -180,7 +152,7 @@ dependencies:
|
|
180
152
|
version: '0'
|
181
153
|
description: Recorder tracks changes of your Rails models
|
182
154
|
email:
|
183
|
-
- igor.alexandrov@jetrockets.
|
155
|
+
- igor.alexandrov@jetrockets.com
|
184
156
|
executables: []
|
185
157
|
extensions: []
|
186
158
|
extra_rdoc_files: []
|
@@ -234,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
206
|
- !ruby/object:Gem::Version
|
235
207
|
version: '0'
|
236
208
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.3.7
|
238
210
|
signing_key:
|
239
211
|
specification_version: 4
|
240
212
|
summary: Rails model auditor
|