acts_as_scrubbable 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fd0a4a434939fca6bd900a3a8d9add32055f9cc727e4dffbc2bf557a00cbb47
4
- data.tar.gz: 6606ec1824f14d10ed43bd310621551970b6cd921fd6a73d1935b41dfb0025dc
3
+ metadata.gz: dc8917662cd62adb9270f1d9751326025cc41f56453b042977f0d7601016fce9
4
+ data.tar.gz: 55631d73472e2003fafea3e98c60fff4839572d5a6e7a84ba098b37c7c878cba
5
5
  SHA512:
6
- metadata.gz: 84806a9849b90c498156b9aab9a3c7a4660d522cdcaf6aba7844675db430dcdd4afeb8fa7dea210190dce76f479d564cfc8bba56e88ce44647a0d954a4f6688d
7
- data.tar.gz: cac874269684e74d817edfa4bd2712c0276a86806efc86430593600b3494b00fecb411864266fae3b4bcb742ec4c1d8273d1968b2393ac0e1369baea0c904106
6
+ metadata.gz: 2f54a6c9ed8a27968208a63bbd737f331a9458f50fddd538e1d0405dd58dfe4224c03a7da1b3a1829e7edc19b534a67d5ea08f7257d0a37e0fabc2f49caad7cb
7
+ data.tar.gz: 84decd9137e35a2469213763888d1cc009ad37bddae59c71d250005eebcf176c396eca580ec44f5e1ab513c9e9e890373ad806d0f47771a62cfd98df8bc23c68
@@ -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! unless ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::NullDBAdapter)
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! unless ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::NullDBAdapter)
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.2'
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.2
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: