acts_as_scrubbable 2.1.1 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fd0a4a434939fca6bd900a3a8d9add32055f9cc727e4dffbc2bf557a00cbb47
4
- data.tar.gz: 6606ec1824f14d10ed43bd310621551970b6cd921fd6a73d1935b41dfb0025dc
3
+ metadata.gz: 0b7213a56a968fe06418cb0639712b173b05a51694c4bd1cc87403998d23850c
4
+ data.tar.gz: 638e8280f0f658e0923d961a0e8421f9413ba6cca907520ca22a24a0a24de7ee
5
5
  SHA512:
6
- metadata.gz: 84806a9849b90c498156b9aab9a3c7a4660d522cdcaf6aba7844675db430dcdd4afeb8fa7dea210190dce76f479d564cfc8bba56e88ce44647a0d954a4f6688d
7
- data.tar.gz: cac874269684e74d817edfa4bd2712c0276a86806efc86430593600b3494b00fecb411864266fae3b4bcb742ec4c1d8273d1968b2393ac0e1369baea0c904106
6
+ metadata.gz: e10d3afaa5741048ab4202ebcb68bfe06277854b88a2ce7ed0b4674686b77a051a3969d58c57bb52430c45da9cd36ec66760a80fa4c0d019be380774b42521b7
7
+ data.tar.gz: d97258aa692015c1683d50805e1437f55fd8babfec9753ed4ac05a5f5543dd9f5fb701d102ccc40c19ea5449ef02370fc394a0f0dc85e3f7e6173c2648736819
@@ -0,0 +1,32 @@
1
+ ---
2
+ # onemedical/<repo>/.github/workflows/pr-security.yaml
3
+ #
4
+ # This is the workflow for distribution to repositories across the organization.
5
+ # It will call the reusable PR security workflow, and run scans against each PR.
6
+ name: PR Security
7
+
8
+
9
+ # yamllint disable-line rule:truthy
10
+ on:
11
+ pull_request:
12
+ branches: [main, master]
13
+
14
+
15
+ permissions:
16
+ # Required for workflows in private repositories.
17
+ contents: read
18
+
19
+ # Required for SARIF results upload to GHAS.
20
+ security-events: write
21
+ actions: read
22
+
23
+
24
+ jobs:
25
+ # Run the reusable workflow.
26
+ run-workflow:
27
+ name: Run Workflow
28
+ # yamllint disable-line rule:line-length
29
+ uses: onemedical/github-reusable-workflows/.github/workflows/reusable-pr-security.yaml@main
30
+ # The detect-secrets tool is used in some repositories, and generates false
31
+ # positives like the one below. Add comment to ignore.
32
+ secrets: inherit # pragma: allowlist secret
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- ruby '2.7.2'
1
+ ruby '3.2.2'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency 'guard-rspec' , '~> 4.6'
27
27
  s.add_development_dependency 'pry-byebug' , '~> 3.2'
28
28
  s.add_development_dependency 'terminal-notifier-guard' , '~> 1.6'
29
- s.add_development_dependency 'activerecord-nulldb-adapter', '~> 0.3'
29
+ s.add_development_dependency 'activerecord-nulldb-adapter', '~> 1.0'
30
30
 
31
31
  s.files = `git ls-files`.split("\n")
32
32
  s.test_files = `git ls-files -- spec/*`.split("\n")
@@ -28,7 +28,7 @@ module ActsAsScrubbable
28
28
  end
29
29
 
30
30
  ActsAsScrubbable.logger.info Term::ANSIColor.blue("#{scrubbed_count} #{ar_class} objects scrubbed")
31
- ActiveRecord::Base.connection.verify!
31
+ ActiveRecord::Base.connection.verify! if ActiveRecord::Base.connection.respond_to?(:reconnect)
32
32
 
33
33
  ActsAsScrubbable.logger.info Term::ANSIColor.white("Scrub Complete!")
34
34
  end
@@ -55,7 +55,7 @@ module ActsAsScrubbable
55
55
  Parallel.each(ar_classes) do |ar_class|
56
56
  ActsAsScrubbable::ArClassProcessor.new(ar_class).process(num_of_batches)
57
57
  end
58
- ActiveRecord::Base.connection.verify!
58
+ ActiveRecord::Base.connection.verify! if ActiveRecord::Base.connection.respond_to?(:reconnect)
59
59
 
60
60
  after_hooks unless skip_after_hooks
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsScrubbable
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.3'
3
3
  end
@@ -37,7 +37,6 @@ RSpec.describe ActsAsScrubbable::ArClassProcessor do
37
37
  end
38
38
 
39
39
  it "calls the expected helper classes with the expected batch size" do
40
- expect(ActiveRecord::Base.connection).to receive(:verify!)
41
40
  expect(update_processor_mock).to receive(:scrub_query).with(query)
42
41
  subject.process(num_of_batches)
43
42
  expect(ActsAsScrubbable::ParallelTableScrubber).to have_received(:new).with(ar_class, 256)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_scrubbable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samer Masry
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-09 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -202,14 +202,14 @@ dependencies:
202
202
  requirements:
203
203
  - - "~>"
204
204
  - !ruby/object:Gem::Version
205
- version: '0.3'
205
+ version: '1.0'
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - "~>"
211
211
  - !ruby/object:Gem::Version
212
- version: '0.3'
212
+ version: '1.0'
213
213
  description: ActsAsScrubbable helps you scrub your database the easy way with mock
214
214
  data at the ActiveRecord level
215
215
  email:
@@ -218,6 +218,7 @@ executables: []
218
218
  extensions: []
219
219
  extra_rdoc_files: []
220
220
  files:
221
+ - ".github/workflows/pr-security.yaml"
221
222
  - ".gitignore"
222
223
  - ".rspec"
223
224
  - ".travis.yml"
@@ -249,7 +250,7 @@ homepage: https://github.com/smasry/acts_as_scrubbable
249
250
  licenses:
250
251
  - MIT
251
252
  metadata: {}
252
- post_install_message:
253
+ post_install_message:
253
254
  rdoc_options: []
254
255
  require_paths:
255
256
  - lib
@@ -267,8 +268,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
268
  - !ruby/object:Gem::Version
268
269
  version: '0'
269
270
  requirements: []
270
- rubygems_version: 3.1.4
271
- signing_key:
271
+ rubygems_version: 3.4.10
272
+ signing_key:
272
273
  specification_version: 4
273
274
  summary: Scrubbing data made easy
274
275
  test_files: