vs_rails 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/vs_rails/scans_controller.rb +9 -6
- data/lib/vs_rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e84618f3ccf691bb06636b180bc6d654e135aba
|
4
|
+
data.tar.gz: 081e40cb091e1361406d555d66e497724d0abadc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0d3d1d89845d9a3bc0640ed4c3101c347b64d9217ced4d5d05bd3ce98ccb7986454cd4555be6b77d19caaf1e41e5f42896961210dd791b46cb35bb4ef7d5fe
|
7
|
+
data.tar.gz: 7a2e8d73044fb4a58685db55813ebdc7b6e3c60a98d3e71e8aaf43b68933d557fe1ef6efd1e9ece7bf126c4ea7138c3994040829f1e4e551e223c17a9c04cdf2
|
@@ -5,18 +5,21 @@ class VsRails::ScansController < ApplicationController
|
|
5
5
|
def callback
|
6
6
|
scan = Scan.where(uuid: @uuid).first
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
status = case params[:status]
|
9
|
+
when "clean"
|
10
|
+
"clean"
|
11
|
+
when "infected"
|
12
|
+
"infected"
|
12
13
|
else
|
13
|
-
|
14
|
+
"unknown"
|
14
15
|
end
|
15
16
|
|
17
|
+
scan.update(vs_id: params[:id], status: status)
|
18
|
+
|
16
19
|
render nothing: true
|
17
20
|
end
|
18
21
|
|
19
22
|
def get_scan_id
|
20
|
-
@uuid = params[:
|
23
|
+
@uuid = params[:uuid]
|
21
24
|
end
|
22
25
|
end
|
data/lib/vs_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vs_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bit Zesty Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.5
|
34
34
|
type: :runtime
|
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: 0.0.
|
40
|
+
version: 0.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|