op-clamav-client 3.4.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 +7 -0
- data/ChangeLog.md +64 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +674 -0
- data/README.md +209 -0
- data/Rakefile +104 -0
- data/clamav-client.gemspec +25 -0
- data/lib/clamav/client.rb +182 -0
- data/lib/clamav/commands/command.rb +38 -0
- data/lib/clamav/commands/instream_command.rb +39 -0
- data/lib/clamav/commands/ping_command.rb +25 -0
- data/lib/clamav/commands/quit_command.rb +25 -0
- data/lib/clamav/commands/scan_command.rb +35 -0
- data/lib/clamav/connection.rb +129 -0
- data/lib/clamav/response.rb +28 -0
- data/lib/clamav/responses/error_response.rb +25 -0
- data/lib/clamav/responses/success_response.rb +25 -0
- data/lib/clamav/responses/virus_response.rb +26 -0
- data/lib/clamav/util.rb +32 -0
- data/lib/clamav/wrapper.rb +33 -0
- data/lib/clamav/wrappers/new_line_wrapper.rb +29 -0
- data/lib/clamav/wrappers/null_termination_wrapper.rb +29 -0
- data/lib/clamav.rb +1 -0
- data/test/Dockerfile +16 -0
- data/test/integration/clamav/client_test.rb +142 -0
- data/test/integration/clamav/util_test.rb +41 -0
- data/test/test_helper.rb +21 -0
- data/test/unit/clamav/client_test.rb +59 -0
- data/test/unit/clamav/commands/instream_command_test.rb +53 -0
- data/test/unit/clamav/commands/ping_command_test.rb +33 -0
- data/test/unit/clamav/commands/scan_command_test.rb +36 -0
- data/test/unit/clamav/connection_test.rb +46 -0
- data/test/unit/clamav/wrappers/new_line_wrapper_test.rb +38 -0
- data/test/unit/clamav/wrappers/null_termination_wrapper_test.rb +38 -0
- metadata +143 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 98dd090f5580972f04fba00ee86c34a43f39e079901d64900e908c80f1e4206b
|
4
|
+
data.tar.gz: 697b4e739f3278bdaac1bb352a4c6d92f230e278f68f4d54a4b1b32988149322
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8aa14c49826c63cc89c92dbbb4402582147bbd3058f818d18f978e0ff175ed174494191af43342cc980e42eb1733ed4cb5bd046167dc43e00e5fedb66ee94c23
|
7
|
+
data.tar.gz: f25e23e9c05b5e852843f6e8b62997133623853d28a00918364bef7e25e29ef45b0154c80eefff71e85b31bef392115a45dd058017b800d386a2e395838096f6
|
data/ChangeLog.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Unreleased
|
2
|
+
|
3
|
+
# 3.4.2
|
4
|
+
|
5
|
+
* Fix `write_request` and `read_response` with timeout configuration enabled
|
6
|
+
|
7
|
+
# 3.4.1
|
8
|
+
|
9
|
+
* Drop fixtures from the gem
|
10
|
+
|
11
|
+
# 3.4.0
|
12
|
+
|
13
|
+
* Add `connect_timeout`, `write_timeout` and `read_timeout` configurations
|
14
|
+
* Add gem specific exceptions classes for connection errors
|
15
|
+
|
16
|
+
# 3.3.0
|
17
|
+
|
18
|
+
* Add support for Ruby 3.2
|
19
|
+
* Update packed files in gem
|
20
|
+
# 3.2.0
|
21
|
+
|
22
|
+
* Add `ClamAV::Client#ping` as a short-hand for executing a ping
|
23
|
+
* Add `ClamAV::Client#safe?` as a way to check both streams and files
|
24
|
+
* Add support for Ruby 2.7
|
25
|
+
|
26
|
+
# 3.1.0
|
27
|
+
|
28
|
+
* Drop support for old Rubies (prior to 2.2)
|
29
|
+
* Drop fixtures from the gem
|
30
|
+
|
31
|
+
# 3.0.0
|
32
|
+
|
33
|
+
* README.md: Added instructions to install ClamAV on Ubuntu, RedHat and CentOS
|
34
|
+
* INSTREAM: fixed a problem parsing the "FOUND" response
|
35
|
+
* VirusReponse: The virus file name is now held by the VirusReponse object
|
36
|
+
* test/ci-setup.sh : Configure ClamAV on the CI
|
37
|
+
|
38
|
+
# 2.0.1
|
39
|
+
|
40
|
+
* README.md : ClamAV's setup notes
|
41
|
+
* clamav-client.gemspec : Upgrade gem after yanking it on RG
|
42
|
+
|
43
|
+
# 2.0.0
|
44
|
+
|
45
|
+
* lib/clamav/commands/instream_command: Support of INSTREAM
|
46
|
+
* lib/clamav/responses.rb : Change insufficient comparison
|
47
|
+
* README.md: Now backward-compatible back to Ruby 1.9.2
|
48
|
+
* lib/clamav/client.rb : Configure with constants
|
49
|
+
* CLAMD_UNIX_SOCKET
|
50
|
+
* CLAMD_TCP_HOST
|
51
|
+
* CLAMD_TCP_PORT
|
52
|
+
* clamav-client.gemspec : Add the minitest gem for older Rubies
|
53
|
+
* .travis.yml : New test script. Add support for more Rubies
|
54
|
+
* lib/clamav/connection : remove keyword arguments
|
55
|
+
* travis.yml : Add basic configuration
|
56
|
+
* lib/clamav/wrapper.rb : Host common code
|
57
|
+
* lib/clamav/commands/command : Remove dead code
|
58
|
+
* Code format consistency.
|
59
|
+
* Explicit #call() to better document usage.
|
60
|
+
* Code typos; Ruby highlighting; wording.
|
61
|
+
|
62
|
+
# 1.0.0
|
63
|
+
|
64
|
+
* Initial release
|
data/Gemfile
ADDED