aoandon 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,10 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ['contact@cyril.io']
11
11
  gem.description = %q{Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).}
12
12
  gem.summary = %q{Minimalist network intrusion detection system (NIDS).}
13
- gem.homepage = 'http://cyril.io'
13
+ gem.homepage = 'https://github.com/cyril/aoandon'
14
14
  gem.license = 'MIT'
15
-
16
15
  gem.bindir = 'bin'
17
-
16
+ gem.add_dependency 'pcap'
18
17
  gem.files = `git ls-files`.split($/).reject {|f| f == 'blue-andon-creature.jpg' }
19
18
  gem.executables = gem.files.grep(%r{^bin/}).map {|f| File.basename(f) }
20
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
@@ -1,7 +1,12 @@
1
1
  module Aoandon
2
2
  class Log
3
3
  def initialize(verbose = false)
4
- @file = File.open('log/aoandon.yml', 'a')
4
+ @file = if File.exist?('log/aoandon.yml')
5
+ File.open('log/aoandon.yml', 'a')
6
+ else
7
+ File.open('/var/log/aoandon.yml', 'a')
8
+ end
9
+
5
10
  @verbose = verbose
6
11
 
7
12
  puts "Log file: #{File.expand_path(@file.path)}"
@@ -1,3 +1,3 @@
1
1
  module Aoandon
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aoandon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,23 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-09-16 00:00:00.000000000 Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: pcap
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).
15
31
  email:
16
32
  - contact@cyril.io
@@ -38,7 +54,7 @@ files:
38
54
  - lib/aoandon/log.rb
39
55
  - lib/aoandon/static_rule.rb
40
56
  - lib/aoandon/version.rb
41
- homepage: http://cyril.io
57
+ homepage: https://github.com/cyril/aoandon
42
58
  licenses:
43
59
  - MIT
44
60
  post_install_message: