snort-rule 1.5.2 → 1.5.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
  SHA1:
3
- metadata.gz: b475f0c004d1ff722c739e102fc44b8de4ae57b0
4
- data.tar.gz: 16ceb5394563f2d3c6cbde7ed83c7e5a733cfbaf
3
+ metadata.gz: 2a7273283fb3e512503887be54a2f8fe2f9db0ba
4
+ data.tar.gz: c9805f7672b3d5728ec5c81e57189f5864ee9ab4
5
5
  SHA512:
6
- metadata.gz: d3d74558797835687eb71aa1cb662a89f3d634e063c977bfc9829fc1a28e378e6060b13b281de97069decfe3632e427d2be215d65e3694899d103817fbe70cde
7
- data.tar.gz: e9a47d83b028989f5cb91900acad0fb10f162984b9e44fd6c5f3139885719cf358b53e4a97b0a993937e6314944d790bd362576f01d963e794b776e7154cc322
6
+ metadata.gz: 54ee379bd8b7f69ffd9e67e836b6e04446d9742670d2bd44563056c93368cb01434d64c2d1675b73169d282638d17a47a3eb67d411e8988909a35b4d7505c7f6
7
+ data.tar.gz: 5782bd0aa94129664cca222ad73ebea3a84bc158d656881364c54be3700a8225db5404ee60d8fce4ca6b6ce4c1ec6ac7e28d0a5dc9281664512fedba62ff027a
@@ -1,5 +1,5 @@
1
1
  module Snort
2
2
  class Rule
3
- VERSION = "1.5.2"
3
+ VERSION = "1.5.3"
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ module Snort
29
29
  def RuleSet::from_filehandle(fh)
30
30
  rules = RuleSet.new
31
31
  fh.each_line do |line|
32
- if line =~ /(alert|drop|pass|reject|activate|dynamic|activate|sdrop)/
32
+ if line =~ /(alert|log|pass|activate|dynamic|drop|reject|sdrop)/
33
33
  begin
34
34
  rule = Snort::Rule.parse(line)
35
35
  if rule
@@ -97,7 +97,7 @@ class TestSnortCommunityRules < Minitest::Test
97
97
  assert File.exist?("test/community-rules/community.rules.test")
98
98
  total = enabled = disabled = 0
99
99
  open("test/community-rules/community.rules.test", 'r').each_line do |l|
100
- if l =~ /^(#)?\s*(alert|drop|pass|reject|activate|dynamic|activate|sdrop)/
100
+ if l =~ /^(#)?\s*(alert|log|pass|activate|dynamic|drop|reject|sdrop)/
101
101
  total += 1
102
102
  if l =~ /^#/
103
103
  disabled += 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snort-rule
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrislee35
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler