acts_as_scrubbable 0.1.3 → 0.1.4

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: c17a614a649db119d6a1ce2b6ac7a40221b5fee8
4
- data.tar.gz: c3a1a2f47cf8c5115a13161c9edf05bfe19f3981
3
+ metadata.gz: 81dccf598a161962fdfd6f2bbe80d6525e8849ba
4
+ data.tar.gz: 55446858def4a5a225275d8b4f9ec612796c5953
5
5
  SHA512:
6
- metadata.gz: 158382f04e585a5d79061a65e2b6cfe38eb45db728cf1b181cdf0ea4bdfcfa58f3f8162ded7ea749486ce4ba560aae0ee380b37b94ec2b38cb7b838dbb98671c
7
- data.tar.gz: 69420457cf368f26afd250c16785bff66ce876508c18aff5ccfd12de28d592f7656eaad374f137600f40386203261063504ae51c6d26cd2227ae260674db26d7
6
+ metadata.gz: 217d59ded6e77267b24622d110192b1d30d8828cf9a391282b12aa1851564255c52ef178ce775c995e26e678d4e5973131a4526f7276e38e754db96fde09f7b0
7
+ data.tar.gz: 5375565c6e62c6f8284426fc7c34d3bcf7792cb9c5b978b85f2ed3d4a2304583331519cba27cb0c85a1718460ab17dc6f73b7ed0c8cffda55c3a269a8e79d2e3
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ Gemfile.lock
@@ -65,9 +65,11 @@ namespace :scrub do
65
65
  scrubbed_count = 0
66
66
 
67
67
  ActiveRecord::Base.connection_pool.with_connection do
68
-
69
- relation = ar_class.scoped
70
- relation = relation.send(:scrubbable_scope) if ar_class.respond_to?(:scrubbable_scope)
68
+ if ar_class.respond_to?(:scrubbable_scope)
69
+ relation = ar_class.send(:scrubbable_scope)
70
+ else
71
+ relation = ar_class.all
72
+ end
71
73
 
72
74
  relation.find_in_batches(batch_size: 1000) do |batch|
73
75
  ActiveRecord::Base.transaction do
@@ -1,3 +1,3 @@
1
1
  module ActsAsScrubbable
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
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: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samer Masry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -218,9 +218,9 @@ executables: []
218
218
  extensions: []
219
219
  extra_rdoc_files: []
220
220
  files:
221
+ - ".gitignore"
221
222
  - ".rspec"
222
223
  - Gemfile
223
- - Gemfile.lock
224
224
  - Guardfile
225
225
  - README.md
226
226
  - acts_as_scrubbable.gemspec
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  version: '0'
256
256
  requirements: []
257
257
  rubyforge_project:
258
- rubygems_version: 2.6.8
258
+ rubygems_version: 2.6.10
259
259
  signing_key:
260
260
  specification_version: 4
261
261
  summary: Scrubbing data made easy
data/Gemfile.lock DELETED
@@ -1,152 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- acts_as_scrubbable (0.1.2)
5
- activerecord (>= 4.1, < 5.1)
6
- activesupport (>= 4.1, < 5.1)
7
- faker (>= 1.4)
8
- highline (>= 1.7)
9
- parallel (>= 1.6)
10
- railties (>= 4.1, < 5.1)
11
- term-ansicolor (>= 1.3)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- actionpack (5.0.3)
17
- actionview (= 5.0.3)
18
- activesupport (= 5.0.3)
19
- rack (~> 2.0)
20
- rack-test (~> 0.6.3)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (5.0.3)
24
- activesupport (= 5.0.3)
25
- builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 2.0)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
- activemodel (5.0.3)
30
- activesupport (= 5.0.3)
31
- activerecord (5.0.3)
32
- activemodel (= 5.0.3)
33
- activesupport (= 5.0.3)
34
- arel (~> 7.0)
35
- activerecord-nulldb-adapter (0.3.6)
36
- activerecord (>= 2.0.0)
37
- activesupport (5.0.3)
38
- concurrent-ruby (~> 1.0, >= 1.0.2)
39
- i18n (~> 0.7)
40
- minitest (~> 5.1)
41
- tzinfo (~> 1.1)
42
- arel (7.1.4)
43
- builder (3.2.3)
44
- byebug (9.0.6)
45
- coderay (1.1.1)
46
- concurrent-ruby (1.0.5)
47
- diff-lcs (1.3)
48
- erubis (2.7.0)
49
- faker (1.7.3)
50
- i18n (~> 0.5)
51
- ffi (1.9.18)
52
- formatador (0.2.5)
53
- guard (2.14.1)
54
- formatador (>= 0.2.4)
55
- listen (>= 2.7, < 4.0)
56
- lumberjack (~> 1.0)
57
- nenv (~> 0.1)
58
- notiffany (~> 0.0)
59
- pry (>= 0.9.12)
60
- shellany (~> 0.0)
61
- thor (>= 0.18.1)
62
- guard-compat (1.2.1)
63
- guard-rspec (4.7.3)
64
- guard (~> 2.1)
65
- guard-compat (~> 1.1)
66
- rspec (>= 2.99.0, < 4.0)
67
- highline (1.7.8)
68
- i18n (0.8.1)
69
- listen (3.1.5)
70
- rb-fsevent (~> 0.9, >= 0.9.4)
71
- rb-inotify (~> 0.9, >= 0.9.7)
72
- ruby_dep (~> 1.2)
73
- loofah (2.0.3)
74
- nokogiri (>= 1.5.9)
75
- lumberjack (1.0.12)
76
- method_source (0.8.2)
77
- mini_portile2 (2.1.0)
78
- minitest (5.10.2)
79
- nenv (0.3.0)
80
- nokogiri (1.7.2)
81
- mini_portile2 (~> 2.1.0)
82
- notiffany (0.1.1)
83
- nenv (~> 0.1)
84
- shellany (~> 0.0)
85
- parallel (1.11.2)
86
- pry (0.10.4)
87
- coderay (~> 1.1.0)
88
- method_source (~> 0.8.1)
89
- slop (~> 3.4)
90
- pry-byebug (3.4.2)
91
- byebug (~> 9.0)
92
- pry (~> 0.10)
93
- rack (2.0.3)
94
- rack-test (0.6.3)
95
- rack (>= 1.0)
96
- rails-dom-testing (2.0.3)
97
- activesupport (>= 4.2.0)
98
- nokogiri (>= 1.6)
99
- rails-html-sanitizer (1.0.3)
100
- loofah (~> 2.0)
101
- railties (5.0.3)
102
- actionpack (= 5.0.3)
103
- activesupport (= 5.0.3)
104
- method_source
105
- rake (>= 0.8.7)
106
- thor (>= 0.18.1, < 2.0)
107
- rake (12.0.0)
108
- rb-fsevent (0.9.8)
109
- rb-inotify (0.9.8)
110
- ffi (>= 0.5.0)
111
- rspec (3.6.0)
112
- rspec-core (~> 3.6.0)
113
- rspec-expectations (~> 3.6.0)
114
- rspec-mocks (~> 3.6.0)
115
- rspec-core (3.6.0)
116
- rspec-support (~> 3.6.0)
117
- rspec-expectations (3.6.0)
118
- diff-lcs (>= 1.2.0, < 2.0)
119
- rspec-support (~> 3.6.0)
120
- rspec-mocks (3.6.0)
121
- diff-lcs (>= 1.2.0, < 2.0)
122
- rspec-support (~> 3.6.0)
123
- rspec-support (3.6.0)
124
- ruby_dep (1.5.0)
125
- shellany (0.0.1)
126
- slop (3.6.0)
127
- term-ansicolor (1.6.0)
128
- tins (~> 1.0)
129
- terminal-notifier-guard (1.7.0)
130
- thor (0.19.4)
131
- thread_safe (0.3.6)
132
- tins (1.14.0)
133
- tzinfo (1.2.3)
134
- thread_safe (~> 0.1)
135
-
136
- PLATFORMS
137
- ruby
138
-
139
- DEPENDENCIES
140
- activerecord-nulldb-adapter (~> 0.3)
141
- acts_as_scrubbable!
142
- guard (~> 2.13)
143
- guard-rspec (~> 4.6)
144
- pry-byebug (~> 3.2)
145
- rspec (~> 3.3)
146
- terminal-notifier-guard (~> 1.6)
147
-
148
- RUBY VERSION
149
- ruby 2.3.1p112
150
-
151
- BUNDLED WITH
152
- 1.14.6