file_sentry 0.2.0 → 0.2.3

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: e7dc49f35192c46441476d1d74663e555a18e2bf6129107619dd1643d296e032
4
- data.tar.gz: 13fb073cb45a5cd7a4d71a8e12579166c563f3d3ef179f39f39da635e8875b81
3
+ metadata.gz: '038280c3b1fdd9399c90743e646ac52e54beafd43b677ab42938e65070b413bd'
4
+ data.tar.gz: 8f46245693744561fb4d4b982714d53159794ec877d600649aea93fd07d7f3a9
5
5
  SHA512:
6
- metadata.gz: '09e4351dc05a8d471aa818ab4b3b2d93a0f0fc174159b67cd2804385bba9037ac00d45ccff3f62f745e630b83cb11c9abfb2005131bead945a4dc9e03a98e958'
7
- data.tar.gz: a9fd362c67fe26c46bb3b4dcf3de7e6ddc27fa6cb394906afde9c3e4d0158b552c73b2014a9109446afd5979638b7dee8a76c57925130184e4139ec20efb53d7
6
+ metadata.gz: 73c2c3595bca680d7328ecb6e072a4ce98a1577f08ae55c4b285218cfd2fa82594e817f3a360a34fca72216ba4a43871495c03899061b689a6a32a24d372de25
7
+ data.tar.gz: d5e43ac1738e73e4726866c0003eca21f1e1b29e152d48275eb5a9dc41017c3dfd98b874ab7d8a813560a2fdd17dd2bd8c9cfd22fa2571838a192b5de5b3810f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- file_sentry (0.2.0)
4
+ file_sentry (0.2.1)
5
5
  colorize
6
6
  dotenv
7
7
  httparty
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # FileSentry
2
2
 
3
- FileSentry is a gem that scans files for malware using a comprehensive suite of anti-malware engines.
4
- It displays
3
+ FileSentry is a gem that scans a designated file for malware using a comprehensive suite of anti-malware engines.
4
+ It displays results from each engine as well as a brief summary. FileSentry is powered by the OPSWAT Metadefender Cloud API. To use this gem, you will need to create an account with OPSWAT. Don't worry, it's free to sign up!
5
5
 
6
6
  ## Installation
7
7
 
@@ -9,19 +9,34 @@ First, make sure you have the latest version of Ruby installed. FileSentry was d
9
9
 
10
10
  If you do not have Ruby installed, follow the instructions on this blog post to install rbenv and Ruby 2.5.0:[Setup Ruby On Rails on Ubuntu 16.04 Xenial Xerus](https://gorails.com/setup/ubuntu/16.04).
11
11
 
12
- Follow the instructions using rbenv, and only follow along on the 'Installing Ruby' section.
12
+ Only install Ruby and rbenv as specified in the 'Installing Ruby' section. Don't
13
+ forget to run
13
14
 
14
- To install the gem, enter the following in your terminal of choice
15
+ $ rbenv rehash
16
+
17
+ after installing bundler!
18
+
19
+ To install the gem, enter the following in your terminal of choice:
15
20
 
16
21
  $ gem install file_sentry
17
22
 
18
- You can also clone this repo if you want to tweak FileSentry!
23
+ You can also clone this repo if you want to tweak FileSentry. Read the development section for more info if that floats your boat.
19
24
 
20
25
  ## Usage
26
+ If you do not have an OPSWAT account/API key, visit [portal.opswat.com](portal.opswat.com) to sign up. After creating an account, the "home" tab will display your OPSWAT API Key.
27
+
28
+ After installation, to scan a file for malware enter the following command:
29
+
30
+ $ file_sentry RELATIVE_PATH_TO_FILE (Optional)HASH_DIGEST
31
+
32
+
33
+ If this is your first time running the application, you will be prompted to enter your API key.
34
+
35
+ The RELATIVE_PATH_TO_FILE argument loads the specified file into FileSentry, relative to the current working directory. To enter a file name with spaces, use quotation marks or escape whitespace with a backslash.
21
36
 
22
- Once FileSentry is installed, you can enter
37
+ The HASH_DIGEST argument is optional. If the gem is ran without the HASH_DIGEST argument, FileSentry will default to MD5.
23
38
 
24
- $ file_sentry {}
39
+ You can change the API key at any time by running the gem without any command line arguments.
25
40
 
26
41
  ## Development
27
42
 
@@ -1,3 +1,3 @@
1
1
  module FileSentry
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandra Wright