witch_doctor 0.1.1.1 → 0.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
  SHA1:
3
- metadata.gz: 22a22ff9d15bbd3fb0ea9b5c47289c17f3c04afd
4
- data.tar.gz: 10a672f0c721c71ba80e51e64ec8f0becad7366c
3
+ metadata.gz: 0e488255c1787360c0530fa7db20210960c9e40d
4
+ data.tar.gz: 2fd9f892ad7f38f8af98d45aa6db85c33b44511d
5
5
  SHA512:
6
- metadata.gz: d9e55d97aef4eb4fab4fcfdb657747ec8a097a73011dd7592982f79cf5cf1612dd5de61c293b6557ca8192171bf36361949c0a3ed2fba48f8ccf26be8f9db144
7
- data.tar.gz: 8839db31e9dc737ecd32c977c32ab92b74cb9979c20dc1ff73d603212584c5b66e6d9ad9272f415ada2597a9ca8e15d32c15860435cd86f05545a248697e162c
6
+ metadata.gz: 0da25a445b251b6d7a648b8c5b4e3da8d31c4b1559047987e4a97c82a975abd316f2acf9bb0dc1df910bed73d08c9afa5ab0484dc93aece4a42f85d8c90a7bab
7
+ data.tar.gz: 2691da3d55694e2690127890c885547c8982c04ff5e7057ca69aa5bc287f6b295906bb2611d15056dceff4d027223f8d4c79d77fa1b8140541d86b92ea8aad38
@@ -10,7 +10,7 @@ module WitchDoctor
10
10
  authenticate! do
11
11
  @virus_scans = VirusScan
12
12
  .not_scanned
13
- .limit(2)
13
+ .limit(WitchDoctor.virus_scan_limit)
14
14
 
15
15
  respond_to do |format|
16
16
  format.json do
@@ -1,3 +1,3 @@
1
1
  module WitchDoctor
2
- VERSION = "0.1.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/witch_doctor.rb CHANGED
@@ -4,10 +4,14 @@ require "witch_doctor/antivirus_concern"
4
4
 
5
5
  module WitchDoctor
6
6
  class << self
7
- attr_writer :time_stamper
7
+ attr_writer :time_stamper, :virus_scan_limit
8
8
 
9
9
  def time_stamper
10
10
  @time_stamper ||= -> { Time.now }
11
11
  end
12
+
13
+ def virus_scan_limit
14
+ @virus_scan_limit ||= 10
15
+ end
12
16
  end
13
17
  end
@@ -277,3 +277,5 @@ Migrating to CreateWitchDoctorVirusScans (20150209121818)
277
277
   (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
278
278
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
279
279
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
280
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"