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 +4 -4
- data/README.md +12 -2
- data/lib/acts_as_scrubbable/tasks.rb +6 -4
- data/lib/acts_as_scrubbable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78252290fb94891806ebaa7b4bc32b66b8bfe330
|
|
4
|
+
data.tar.gz: 558c1d23f1e98491dd3916f91f29934b390d0d0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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("
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|