ratonvirus 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc7e931fe59e66c07af39b8468730cb9f4c23e7680bd1a6110c1598cab73e328
4
- data.tar.gz: 3bd536062079bb898448a87688563ec82abca7d04b075731f7a5a2002a6ea901
3
+ metadata.gz: 58abd4cac8d4f8e796d0bada9f5286e5b8dddd2293f436d61a57ce26f985349b
4
+ data.tar.gz: '01826556782f908972f799613690104a239625d4e6dd774ae0dad438dfc7b8f9'
5
5
  SHA512:
6
- metadata.gz: 81b5a5ebb0c057392a0923d6c1cd292044845423d8459d0eec21c02d261ab581b0e6aaae23457ea28453fe7221154f2619f24d2b1b8202ce74e469ea446913b6
7
- data.tar.gz: 3dab899e7141a7bdac10bb2bf4bc3c003744f8923fb4375e26cc79dc82b8efbfb6809bf221fc600daa07be78b5c7403e7dca80db23022f4a1d9944a6b3512b41
6
+ metadata.gz: 7431d9cd81d0132175ff71f05752fa4032dd96c4a341c335223c83c1f65cd4008c48aa89f45539c3bbd0dc819f83a68be2dd6de6183ff5d2d24bf28588d511ae
7
+ data.tar.gz: ca01bf5032d79bd5ceb5ca6605fb13e66b81ce43f8936a4bad31b00d7a09ab6eedf3f42399c5cd56166beddb3da9070147cfafc0ba39a0e7d13d7f1c78589220
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
+ # v0.3.2
2
+
3
+ Fixed:
4
+
5
+ - Backport: Issue with ActiveStorage file integrity check due to IO position change after the virus check
6
+
1
7
  # v0.3.1
2
8
 
3
9
  Fixed:
4
10
 
5
- - Issue related to the EICAR test scanner. Related to [#16](https://github.com/mainio/ratonvirus/pull/16)
11
+ - Backport: Issue related to the EICAR test scanner. Related to [#16](https://github.com/mainio/ratonvirus/pull/16)
6
12
 
7
13
  # v0.3.0
8
14
 
@@ -22,7 +22,12 @@ module Ratonvirus
22
22
 
23
23
  begin
24
24
  tempfile.binmode
25
- IO.copy_stream(io, tempfile)
25
+ if io.is_a?(StringIO)
26
+ # cannot specify src_offset for non-IO
27
+ IO.copy_stream(io, tempfile)
28
+ else
29
+ IO.copy_stream(io, tempfile, nil, 0)
30
+ end
26
31
  tempfile.flush
27
32
  tempfile.rewind
28
33
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ratonvirus
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport