acts_as_scrubbable 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 18e5fd9c3c096cbd3b7b0eb0a62e554d0f2b7a93
4
- data.tar.gz: 0c0f215a8bf37f667d72a11744c6b154eff2f445
3
+ metadata.gz: 78252290fb94891806ebaa7b4bc32b66b8bfe330
4
+ data.tar.gz: 558c1d23f1e98491dd3916f91f29934b390d0d0c
5
5
  SHA512:
6
- metadata.gz: 145d1f1b6c5ee267ea626e1bcf8939ace8c5ed82f1efb8a1babedd74c7989b576ee88887c3b809f370ab7afe9491ddea316706e2c210e57df6af0ea6dbf222bb
7
- data.tar.gz: b549371c925fdf431be8d8d3bd1f1e994654a3ef9fa67d4e45967f67d38dd1632c1769263b9074ac000f544e5fedab1c902c5e7e2dd1825a9a58eb8df484b2a1
6
+ metadata.gz: 3c18426c1ebcc06348824ad624db3624a5b6b6a9538eadf86a4d642ac5b3586d17e8aa4f2b1f5048f90de8c190ba19104955345bc3e48d0be1533509954ea664
7
+ data.tar.gz: e8703d9c6667d678b37faaf4152bcec0f569006efa1c84a901bde317c46dcc1878686e8c16dbabe7aa7e13fd207420a8f3eafb53c2047c716129ca2adcc5b140
data/README.md CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  Scrubbing made easy
4
4
 
5
- Acts as scrubbable give you model level access to scrub your data per object
5
+ Acts as scrubbable give you model level access to scrub your data per object.
6
+
7
+ It runs using the parallel gem for faster processing which is dependent on the
8
+ amount of cores available on the box. *More cores == faster scrubbing*
6
9
 
7
10
 
8
11
  ## Installation
@@ -50,6 +53,13 @@ I, [2015-11-05T14:09:25.615155 #64194] INFO -- : Scrub Complete!
50
53
 
51
54
  ```
52
55
 
56
+ In the case you are automating the rake task and want to skip the confirmation
57
+
58
+ ```
59
+ rake scrub SKIP_CONFIRM=true
60
+ ```
61
+
62
+
53
63
 
54
64
  ### Extending
55
65
 
@@ -61,7 +71,7 @@ ActsAsScrubbable.configure do |c|
61
71
 
62
72
  c.after_hook do
63
73
  puts "Running after commit"
64
- ActiveRecord::Base.connection.execute("SELECT * FROM FOO")
74
+ ActiveRecord::Base.connection.execute("TRUNCATE some_table")
65
75
  end
66
76
  end
67
77
  ```
@@ -13,10 +13,12 @@ namespace :scrub do
13
13
 
14
14
  @logger = Logger.new($stdout)
15
15
 
16
- answer = ask("Type SCRUB to continue.".red)
17
- unless answer == "SCRUB"
18
- puts "exiting ...".red
19
- exit
16
+ unless ENV["SKIP_CONFIRM"] == "true"
17
+ answer = ask("Type SCRUB to continue.".red)
18
+ unless answer == "SCRUB"
19
+ puts "exiting ...".red
20
+ exit
21
+ end
20
22
  end
21
23
 
22
24
  @logger.warn "Scrubbing classes".red
@@ -1,3 +1,3 @@
1
1
  module ActsAsScrubbable
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_scrubbable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samer Masry