ratonvirus 0.1.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -1
- data/README.md +1 -1
- data/lib/ratonvirus/error.rb +2 -0
- data/lib/ratonvirus/scanner/base.rb +2 -2
- data/lib/ratonvirus/scanner/eicar.rb +3 -3
- data/lib/ratonvirus/storage/active_storage.rb +73 -61
- data/lib/ratonvirus/storage/carrierwave.rb +3 -0
- data/lib/ratonvirus/support/backend.rb +26 -25
- data/lib/ratonvirus/version.rb +1 -1
- data/lib/tasks/ratonvirus.rake +8 -10
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d118c57bf1aa46d9b6bc78a3889a850d7c6a6103e3f8c01590972206807c23
|
4
|
+
data.tar.gz: 5745da5e8cebf691c69ef3bd9d0ad4fd3d21b222e25aa41087c55e44a372997b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa82196a8d08c1a733d967b84290eb08b41f8cbbb6b42e0f220da8c99462cc73a19dde9bef8c496a1e6e0036649921399224442624e30f574e030848551cac4f
|
7
|
+
data.tar.gz: 0e5e3fe8ff3216262199cccd4599dbd9a3bf97fb7ec2c6e73475615a311a27396a7f69e9bf9e39749b5bc9b242ad0c2716a41753abfb0f59962f135ae05f49f7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
# v0.4.0
|
2
|
+
|
3
|
+
Support for Rails 7
|
4
|
+
|
5
|
+
Changed:
|
6
|
+
|
7
|
+
- The minimum Ruby version is now set to 2.7 as it is a requirement of Rails 7
|
8
|
+
|
9
|
+
# v0.3.0
|
10
|
+
|
11
|
+
Changed:
|
12
|
+
|
13
|
+
- Minimum Ruby version is now set to 2.5
|
14
|
+
|
15
|
+
Fixed:
|
16
|
+
|
17
|
+
- Issue related with scanning files with CarrierWave storage engine using remote storage engines such as Fog. Related
|
18
|
+
to [#9](https://github.com/mainio/ratonvirus/pull/9)
|
19
|
+
|
20
|
+
# v0.2.0
|
21
|
+
|
22
|
+
Support for Rails 6
|
23
|
+
|
24
|
+
The ActiveStorage storage engine has been updated and partly rewritten due to changes in its API. The new API introduces
|
25
|
+
a changes concept in the library which this update takes in to account. In the new API, the blobs will not get uploaded
|
26
|
+
to the storage service before the validations have been successful, which led to rethinking how this storage engine
|
27
|
+
works in Ratonvirus.
|
28
|
+
|
1
29
|
# v0.1.2
|
2
30
|
|
3
31
|
Fixed:
|
@@ -5,7 +33,6 @@ Fixed:
|
|
5
33
|
- Backport: Issue related with scanning files with CarrierWave storage engine using remote storage engines such as Fog.
|
6
34
|
Related to #9
|
7
35
|
|
8
|
-
|
9
36
|
# v0.1.1
|
10
37
|
|
11
38
|
Fixed:
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Rails antivirus made easy.
|
4
4
|
Developed by [Mainio Tech](https://www.mainiotech.fi/).
|
5
5
|
|
6
|
-
[![Build Status](https://
|
6
|
+
[![Build Status](https://github.com/mainio/ratonvirus/actions/workflows/ci_ratonvirus.yml/badge.svg)](https://github.com/mainio/ratonvirus/actions)
|
7
7
|
[![codecov](https://codecov.io/gh/mainio/ratonvirus/branch/master/graph/badge.svg)](https://codecov.io/gh/mainio/ratonvirus)
|
8
8
|
|
9
9
|
Ratonvirus allows your Rails application to rat on the viruses that your users
|
data/lib/ratonvirus/error.rb
CHANGED
@@ -11,8 +11,8 @@ module Ratonvirus
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
attr_reader :errors
|
14
|
+
# :errors - Only available after `virus?` has been called.
|
15
|
+
attr_reader :config, :errors
|
16
16
|
|
17
17
|
def initialize(configuration = {})
|
18
18
|
@config = default_config.merge!(configuration)
|
@@ -19,11 +19,11 @@ module Ratonvirus
|
|
19
19
|
protected
|
20
20
|
|
21
21
|
def run_scan(path)
|
22
|
-
if
|
23
|
-
errors << :antivirus_file_not_found
|
24
|
-
else
|
22
|
+
if File.file?(path)
|
25
23
|
sha256 = Digest::SHA256.file path
|
26
24
|
errors << :antivirus_virus_detected if sha256 == EICAR_SHA256
|
25
|
+
else
|
26
|
+
errors << :antivirus_file_not_found
|
27
27
|
end
|
28
28
|
rescue StandardError
|
29
29
|
errors << :antivirus_client_error
|
@@ -3,21 +3,11 @@
|
|
3
3
|
module Ratonvirus
|
4
4
|
module Storage
|
5
5
|
class ActiveStorage < Base
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# Calling record.changed? will not also work because it is not marked
|
12
|
-
# as dirty in case the Active Storage attachment has changed.
|
13
|
-
#
|
14
|
-
# NOTE:
|
15
|
-
# This should be changed in the future as the `attachment_changes` was
|
16
|
-
# introduced to Rails by this commit:
|
17
|
-
# https://github.com/rails/rails/commit/e8682c5bf051517b0b265e446aa1a7eccfd47bf7
|
18
|
-
#
|
19
|
-
# However, it is still not available in Rails 5.2.x.
|
20
|
-
true
|
6
|
+
include Ratonvirus::Storage::Support::IoHandling
|
7
|
+
|
8
|
+
def changed?(record, attribute)
|
9
|
+
resource = record.public_send attribute
|
10
|
+
!resource.record.attachment_changes[resource.name].nil?
|
21
11
|
end
|
22
12
|
|
23
13
|
def accept?(resource)
|
@@ -25,72 +15,94 @@ module Ratonvirus
|
|
25
15
|
resource.is_a?(::ActiveStorage::Attached::Many)
|
26
16
|
end
|
27
17
|
|
28
|
-
def process(resource, &
|
18
|
+
def process(resource, &block)
|
29
19
|
return unless block_given?
|
30
20
|
return if resource.nil?
|
31
|
-
|
32
21
|
return unless resource.attached?
|
33
22
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
23
|
+
change = resource.record.attachment_changes[resource.name]
|
24
|
+
|
25
|
+
case change
|
26
|
+
when ::ActiveStorage::Attached::Changes::CreateOne
|
27
|
+
handle_create_one(change, &block)
|
28
|
+
when ::ActiveStorage::Attached::Changes::CreateMany
|
29
|
+
handle_create_many(change, &block)
|
40
30
|
end
|
41
31
|
end
|
42
32
|
|
43
33
|
def asset_path(asset, &block)
|
44
34
|
return unless block_given?
|
45
|
-
return
|
46
|
-
return unless asset.blob
|
35
|
+
return unless asset.is_a?(Array)
|
47
36
|
|
48
|
-
|
37
|
+
ext = asset[0].filename.extension_with_delimiter
|
38
|
+
case asset[1]
|
39
|
+
when ActionDispatch::Http::UploadedFile, Rack::Test::UploadedFile
|
40
|
+
# These files should be already locally stored but their permissions
|
41
|
+
# can prevent the virus scanner executable from accessing them.
|
42
|
+
# Therefore, a temporary file is created for them as well.
|
43
|
+
io_path(asset[1], ext, &block)
|
44
|
+
when Hash
|
45
|
+
io = asset[1].fetch(:io)
|
46
|
+
io_path(io, ext, &block) if io
|
47
|
+
when ::ActiveStorage::Blob
|
48
|
+
asset[1].open do |tempfile|
|
49
|
+
prepare_for_scanner tempfile.path
|
50
|
+
yield tempfile.path
|
51
|
+
end
|
52
|
+
end
|
49
53
|
end
|
50
54
|
|
55
|
+
# This is actually only required for the dyncamic blob uploads but for
|
56
|
+
# consistency, it is handled for all the cases accordingly either by
|
57
|
+
# closing the tempfile of the upload which also removes the file when
|
58
|
+
# called with the bang method. For the IO references, the IO is closed
|
59
|
+
# which should trigger the file deletion by latest at the Rack or Ruby
|
60
|
+
# level during garbage collection. There is no guarantee that the file
|
61
|
+
# for which the IO was opened would be deleted beause the IO itself is
|
62
|
+
# not necessarily associated with an actual file.
|
51
63
|
def asset_remove(asset)
|
52
|
-
asset.
|
64
|
+
return unless asset.is_a?(Array)
|
65
|
+
|
66
|
+
case asset[1]
|
67
|
+
when ActionDispatch::Http::UploadedFile, Rack::Test::UploadedFile
|
68
|
+
# This removes the temp file from the system.
|
69
|
+
asset[1].tempfile.close!
|
70
|
+
when Hash
|
71
|
+
# No guarantee all references for the file are deleted.
|
72
|
+
io = asset[1].fetch(:io)
|
73
|
+
io.close
|
74
|
+
when ::ActiveStorage::Blob
|
75
|
+
# This deletes the dynamically uploaded blobs that might not be
|
76
|
+
# associated with any record at this point. This ensures the blobs are
|
77
|
+
# not left "hanging" in the storage system and the database in case
|
78
|
+
# automatic file deletion is applied.
|
79
|
+
asset[1].purge
|
80
|
+
end
|
53
81
|
end
|
54
82
|
|
55
83
|
private
|
56
84
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
# provides similar functionality. However, Rails 5.2.x still does not
|
65
|
-
# include this functionality, so we need to take care of it ourselves.
|
66
|
-
#
|
67
|
-
# This was introduced in the following commit:
|
68
|
-
# https://github.com/rails/rails/commit/ee21b7c2eb64def8f00887a9fafbd77b85f464f1
|
69
|
-
#
|
70
|
-
# SEE:
|
71
|
-
# https://edgeguides.rubyonrails.org/active_storage_overview.html#downloading-files
|
72
|
-
def blob_path(blob)
|
73
|
-
tempfile = Tempfile.open(
|
74
|
-
["Ratonvirus", blob.filename.extension_with_delimiter],
|
75
|
-
tempdir
|
76
|
-
)
|
77
|
-
|
78
|
-
begin
|
79
|
-
tempfile.binmode
|
80
|
-
blob.download { |chunk| tempfile.write(chunk) }
|
81
|
-
tempfile.flush
|
82
|
-
tempfile.rewind
|
83
|
-
|
84
|
-
yield tempfile.path
|
85
|
-
rescue StandardError
|
86
|
-
return
|
87
|
-
ensure
|
88
|
-
tempfile.close!
|
85
|
+
def handle_create_one(change, &block)
|
86
|
+
yield_processable_from(change, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
def handle_create_many(change, &block)
|
90
|
+
change.send(:subchanges).each do |subchange|
|
91
|
+
yield_processable_from(subchange, &block)
|
89
92
|
end
|
90
93
|
end
|
91
94
|
|
92
|
-
def
|
93
|
-
|
95
|
+
def yield_processable_from(change, &_block)
|
96
|
+
attachable = change.attachable
|
97
|
+
return unless attachable
|
98
|
+
return if attachable.is_a?(::ActiveStorage::Blob)
|
99
|
+
|
100
|
+
# If the attachable is a string, it is a reference to an already
|
101
|
+
# existing blob. This can happen e.g. when the file blob is uploaded
|
102
|
+
# dynamically before the form is submitted.
|
103
|
+
attachable = change.attachment.blob if attachable.is_a?(String)
|
104
|
+
|
105
|
+
yield processable([change.attachment, attachable])
|
94
106
|
end
|
95
107
|
end
|
96
108
|
end
|
@@ -37,8 +37,11 @@ module Ratonvirus
|
|
37
37
|
|
38
38
|
def asset_remove(asset)
|
39
39
|
path = asset.file.path
|
40
|
+
delete_dir = asset.file.is_a?(::CarrierWave::SanitizedFile)
|
40
41
|
asset.remove!
|
41
42
|
|
43
|
+
return unless delete_dir
|
44
|
+
|
42
45
|
# Remove the temp cache dir if it exists
|
43
46
|
dir = File.dirname(path)
|
44
47
|
FileUtils.remove_dir(dir) if File.directory?(dir)
|
@@ -88,37 +88,37 @@ module Ratonvirus
|
|
88
88
|
def define_backend(backend_type, backend_subclass)
|
89
89
|
class_eval <<-CODE, __FILE__, __LINE__ + 1
|
90
90
|
# Getter for #{backend_type}
|
91
|
-
def self.#{backend_type}
|
92
|
-
@#{backend_type} ||= create_#{backend_type}
|
93
|
-
end
|
91
|
+
def self.#{backend_type} # def self.foo
|
92
|
+
@#{backend_type} ||= create_#{backend_type} # @foo ||= create_foo
|
93
|
+
end # end
|
94
94
|
|
95
95
|
# Setter for #{backend_type}
|
96
|
-
def self.#{backend_type}=(#{backend_type}_value)
|
97
|
-
set_backend(
|
98
|
-
:#{backend_type},
|
99
|
-
"#{backend_subclass}",
|
100
|
-
#{backend_type}_value
|
101
|
-
)
|
102
|
-
end
|
96
|
+
def self.#{backend_type}=(#{backend_type}_value) # def self.foo=(foo_value)
|
97
|
+
set_backend( # set_backend(
|
98
|
+
:#{backend_type}, # :foo
|
99
|
+
"#{backend_subclass}", # "Foo"
|
100
|
+
#{backend_type}_value # foo_value
|
101
|
+
) # )
|
102
|
+
end # end
|
103
103
|
|
104
104
|
# Destroys the currently active #{backend_type}.
|
105
105
|
# The #{backend_type} is re-initialized when the getter is called.
|
106
|
-
def self.destroy_#{backend_type}
|
107
|
-
@#{backend_type} = nil
|
108
|
-
end
|
106
|
+
def self.destroy_#{backend_type} # def self.destroy_foo
|
107
|
+
@#{backend_type} = nil # @foo = nil
|
108
|
+
end # end
|
109
109
|
|
110
110
|
# Creates a new backend instance
|
111
111
|
# private
|
112
|
-
def self.create_#{backend_type}
|
113
|
-
if @#{backend_type}_defs.nil?
|
114
|
-
raise NotDefinedError.new("#{backend_subclass} not defined!")
|
115
|
-
end
|
116
|
-
|
117
|
-
@#{backend_type}_defs[:klass].new(
|
118
|
-
@#{backend_type}_defs[:config]
|
119
|
-
)
|
120
|
-
end
|
121
|
-
private_class_method :create_#{backend_type}
|
112
|
+
def self.create_#{backend_type} # def self.create_foo
|
113
|
+
if @#{backend_type}_defs.nil? # if @foo_defs.nil?
|
114
|
+
raise NotDefinedError.new("#{backend_subclass} not defined!") # raise NotDefinedError.new("Foo not defined")
|
115
|
+
end # end
|
116
|
+
#
|
117
|
+
@#{backend_type}_defs[:klass].new( # @foo_defs[:klass].new(
|
118
|
+
@#{backend_type}_defs[:config] # @foo_defs[:config]
|
119
|
+
) # )
|
120
|
+
end # end
|
121
|
+
private_class_method :create_#{backend_type} # private_class_method :create_foo
|
122
122
|
CODE
|
123
123
|
end
|
124
124
|
|
@@ -154,12 +154,13 @@ module Ratonvirus
|
|
154
154
|
subtype = backend_value.class
|
155
155
|
config = backend_value.config
|
156
156
|
else
|
157
|
-
|
157
|
+
case backend_value
|
158
|
+
when Array
|
158
159
|
subtype = backend_value.shift
|
159
160
|
config = backend_value.shift || {}
|
160
161
|
|
161
162
|
raise InvalidError, "Invalid #{backend_type} type: #{subtype}" unless subtype.is_a?(Symbol)
|
162
|
-
|
163
|
+
when Symbol
|
163
164
|
subtype = backend_value
|
164
165
|
config = {}
|
165
166
|
else
|
data/lib/ratonvirus/version.rb
CHANGED
data/lib/tasks/ratonvirus.rake
CHANGED
@@ -3,19 +3,17 @@
|
|
3
3
|
namespace :ratonvirus do
|
4
4
|
desc "Tests if the antivirus scanner is available and properly configured"
|
5
5
|
task test: :environment do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
puts "Ratonvirus scanner is not available!"
|
11
|
-
puts ""
|
12
|
-
puts "Please refer to Ratonvirus documentation for proper configuration."
|
13
|
-
end
|
14
|
-
rescue StandardError
|
15
|
-
puts "Ratonvirus scanner is not configured."
|
6
|
+
if Ratonvirus.scanner.available?
|
7
|
+
puts "Ratonvirus correctly configured."
|
8
|
+
else
|
9
|
+
puts "Ratonvirus scanner is not available!"
|
16
10
|
puts ""
|
17
11
|
puts "Please refer to Ratonvirus documentation for proper configuration."
|
18
12
|
end
|
13
|
+
rescue StandardError
|
14
|
+
puts "Ratonvirus scanner is not configured."
|
15
|
+
puts ""
|
16
|
+
puts "Please refer to Ratonvirus documentation for proper configuration."
|
19
17
|
end
|
20
18
|
|
21
19
|
desc "Scans the given file through the antivirus scanner"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratonvirus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Hukkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,98 +58,98 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.18.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.18.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: activemodel
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '7.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '7.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: activestorage
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '7.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '7.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: carrierwave
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1
|
117
|
+
version: '2.1'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1
|
124
|
+
version: '2.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.11.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 1.11.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop-rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 2.2.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 2.2.0
|
153
153
|
description: Adds antivirus check capability for Rails applications.
|
154
154
|
email:
|
155
155
|
- antti.hukkanen@mainiotech.fi
|
@@ -193,14 +193,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
194
194
|
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: '
|
196
|
+
version: '2.7'
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
203
|
+
rubygems_version: 3.1.6
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Provides antivirus checks for Rails.
|