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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3502750275c27a11a95adad1581c97550532dc9
4
- data.tar.gz: abe3df4e2406173bc5b83a4394f52664845e3c18
3
+ metadata.gz: 5e84618f3ccf691bb06636b180bc6d654e135aba
4
+ data.tar.gz: 081e40cb091e1361406d555d66e497724d0abadc
5
5
  SHA512:
6
- metadata.gz: 5093ce489438986af9eacc1b46b275b206ca598f58aa533b95f88747509c4f80574b667eb1eee5755598bfe66f7eeff097304615c8be52c6d564c359bde40ff5
7
- data.tar.gz: e32ce25f0abeb1987bee2e46b4090c0c2805828dc34ae2506a969e001eac96bce0870210c110df9754ea10c125335ea2da118015425a008608071b727ea40ee4
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
- if params[:status] == "clean"
9
- scan.update_attribute(:status, "clean")
10
- elsif params[:status] == "infected"
11
- scan.update_attribute(:status, "infected")
8
+ status = case params[:status]
9
+ when "clean"
10
+ "clean"
11
+ when "infected"
12
+ "infected"
12
13
  else
13
- scan.update_attribute(:status, "unknown")
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[:id]
23
+ @uuid = params[:uuid]
21
24
  end
22
25
  end
@@ -1,3 +1,3 @@
1
1
  module VsRails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-04-17 00:00:00.000000000 Z
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.4
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.4
40
+ version: 0.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement