witch_doctor 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -3
- data/app/controllers/witch_doctor/virus_scans_controller.rb +8 -2
- data/app/models/virus_scan.rb +1 -39
- data/app/models/witch_doctor/virus_scan.rb +33 -0
- data/app/permiterters/virus_scan_permitter.rb +1 -1
- data/lib/witch_doctor/antivirus_concern.rb +5 -1
- data/lib/witch_doctor/version.rb +1 -1
- data/lib/witch_doctor.rb +11 -1
- data/spec/dummy/config/initializers/witch_doctor.rb +1 -1
- data/spec/dummy/log/development.log +2 -0
- data/spec/dummy/log/test.log +13247 -0
- data/spec/models/virus_scan_spec.rb +14 -0
- metadata +3 -2
@@ -49,4 +49,18 @@ describe VirusScan do
|
|
49
49
|
expect(virus_scan.as_json['scanned_at']).to be nil
|
50
50
|
end
|
51
51
|
end
|
52
|
+
|
53
|
+
describe '#virus_scan_scheduling_on?' do
|
54
|
+
it 'should be true by default' do
|
55
|
+
expect(Document.new.virus_scan_scheduling_on?).to be true
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'when skip scheduling is on' do
|
59
|
+
it 'should be true by default' do
|
60
|
+
WitchDoctor.skip_virus_scan_scheduling = true
|
61
|
+
expect(Document.new.virus_scan_scheduling_on?).to be false
|
62
|
+
WitchDoctor.skip_virus_scan_scheduling = false
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
52
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: witch_doctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Valent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- app/controllers/witch_doctor/virus_scans_controller.rb
|
124
124
|
- app/helpers/witch_doctor/application_helper.rb
|
125
125
|
- app/models/virus_scan.rb
|
126
|
+
- app/models/witch_doctor/virus_scan.rb
|
126
127
|
- app/permiterters/virus_scan_permitter.rb
|
127
128
|
- config/routes.rb
|
128
129
|
- db/migrate/20150209121818_create_witch_doctor_virus_scans.rb
|