nfrb 0.1.1.release → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +1 -1
- data/README.rdoc +12 -22
- data/lib/nfrb/version.rb +3 -3
- data/nfrb.gemspec +3 -3
- metadata +9 -12
data/LICENSE.txt
CHANGED
@@ -3,7 +3,7 @@ license:
|
|
3
3
|
|
4
4
|
Copyright (c) 2009, Peter Haag
|
5
5
|
Copyright (c) 2004-2008, SWITCH - Teleinformatikdienste fuer Lehre und Forschung
|
6
|
-
Copyright (c)
|
6
|
+
Copyright (c) 2012, Davide Guerri <davide.guerri@gmail.com>
|
7
7
|
All rights reserved.
|
8
8
|
|
9
9
|
Redistribution and use in source and binary forms, with or without
|
data/README.rdoc
CHANGED
@@ -2,26 +2,26 @@
|
|
2
2
|
|
3
3
|
Nfrb is a very simple yet fast gem that can be used to parse nfcapd files.
|
4
4
|
|
5
|
-
|
5
|
+
= Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
==== Via Github, for development
|
7
|
+
== Via Github, for development
|
10
8
|
|
11
9
|
~# git clone git://github.com/dguerri/nfrb.git
|
12
10
|
~# cd nfrb
|
13
11
|
~# bundle install
|
14
12
|
~# rake install
|
15
13
|
|
16
|
-
|
14
|
+
== Via Rubygems
|
15
|
+
|
16
|
+
~# gem install nfrb
|
17
17
|
|
18
|
-
|
18
|
+
== Bundler
|
19
19
|
|
20
|
-
|
20
|
+
gem "nfrb", "~> 0.1.2"
|
21
21
|
|
22
|
-
|
22
|
+
= Usage
|
23
23
|
|
24
|
-
|
24
|
+
== Sample code
|
25
25
|
|
26
26
|
nfrb-bech.rb:
|
27
27
|
|
@@ -44,23 +44,13 @@ nfrb-bech.rb:
|
|
44
44
|
puts "#{i} flows processed in #{stop_t - start_t} seconds."
|
45
45
|
puts "Flows per seconds = #{i / (stop_t - start_t)}"
|
46
46
|
|
47
|
-
|
47
|
+
== Sample output benchmark (3.4 Ghz Intel Core i7)
|
48
48
|
|
49
49
|
# bundle exec ruby nfrb-bech.rb nfcapd.201112181720
|
50
50
|
325602 flows processed in 0.67114 seconds.
|
51
51
|
Flows per seconds = 488513.404029311
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
56
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
57
|
-
* Fork the project
|
58
|
-
* Start a feature/bugfix branch
|
59
|
-
* Commit and push until you are happy with your contribution
|
60
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
61
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
62
|
-
|
63
|
-
== Copyright
|
53
|
+
= Copyright
|
64
54
|
|
65
|
-
Copyright (c) 2011 Davide Guerri. See LICENSE.txt for further details.
|
55
|
+
Copyright (c) 2011-2012 Davide Guerri. See LICENSE.txt for further details.
|
66
56
|
|
data/lib/nfrb/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is part of the nfrb gem for Ruby.
|
2
2
|
#
|
3
|
-
# Copyright (C)
|
3
|
+
# Copyright (C) 2012 Davide Guerri
|
4
4
|
#
|
5
5
|
# This code is largely derived from nfreader.c of nfdump suite.
|
6
6
|
|
@@ -8,8 +8,8 @@ module NfRb
|
|
8
8
|
module Version
|
9
9
|
MAJOR = 0
|
10
10
|
MINOR = 1
|
11
|
-
PATCH =
|
12
|
-
BUILD =
|
11
|
+
PATCH = 2
|
12
|
+
BUILD = nil
|
13
13
|
|
14
14
|
STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
|
15
15
|
end
|
data/nfrb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "nfrb"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Davide Guerri"]
|
12
|
-
s.date = "2012-03-
|
12
|
+
s.date = "2012-03-04"
|
13
13
|
s.description = "Nfrb is a very simple yet fast gem that can be used to parse nfcapd files."
|
14
14
|
s.email = "davide.guerri@gmail.com"
|
15
15
|
s.extensions = ["ext/rb_nfrb/extconf.rb"]
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nfrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 0.1.1.release
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Davide Guerri
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-04 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -166,14 +165,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
166
|
none: false
|
168
167
|
requirements:
|
169
|
-
- - "
|
168
|
+
- - ">="
|
170
169
|
- !ruby/object:Gem::Version
|
171
|
-
hash:
|
170
|
+
hash: 3
|
172
171
|
segments:
|
173
|
-
-
|
174
|
-
|
175
|
-
- 1
|
176
|
-
version: 1.3.1
|
172
|
+
- 0
|
173
|
+
version: "0"
|
177
174
|
requirements: []
|
178
175
|
|
179
176
|
rubyforge_project:
|