pcaprub 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +7 -5
- data/Gemfile +2 -9
- data/README.rdoc +1 -3
- data/Rakefile +1 -1
- data/ext/pcaprub_c/extconf.rb +8 -0
- data/lib/pcaprub/version.rb +1 -1
- data/test/test_helper.rb +2 -6
- data/test/test_pcaprub_unit.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c73d004b9ff68405a37b7f4a9466c187f3c5fd30110b8688ef9ec35a1a58954c
|
4
|
+
data.tar.gz: 48d2147906a775f47b76192b6c407fd9d2393b39a7383c08e2e14270daded436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d143fb92771897a20ababd154e1e4d136ce6d4685538211a4d80ab8c67337fc00728e75509fd8bfb2d9a77b146c23db130ac793f328acb2d63da113c4a5554
|
7
|
+
data.tar.gz: 2c57a1ea128a82e91b5f65f187849cae11a53eec67fb4f35291208e92fba27370cc1150910a55b7452cc55dbe9e040d987fa65f12ed7a8f634b8ee14bad0b7c2
|
data/.travis.yml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
language: ruby
|
2
2
|
before_install:
|
3
3
|
- sudo apt-get install libpcap-dev -qq
|
4
|
-
- gem update bundler
|
5
4
|
before_script:
|
6
5
|
- travis_retry gem update bundler
|
7
6
|
rvm:
|
8
|
-
- 2.
|
9
|
-
- 2.
|
10
|
-
- 2.
|
11
|
-
-
|
7
|
+
- 2.5
|
8
|
+
- 2.6
|
9
|
+
- 2.7
|
10
|
+
- 3.0
|
12
11
|
- ruby-head
|
12
|
+
env:
|
13
|
+
rvmsudo_secure_path: 1
|
14
|
+
cache: bundler
|
13
15
|
matrix:
|
14
16
|
allow_failures:
|
15
17
|
- rvm: ruby-head
|
data/Gemfile
CHANGED
@@ -4,15 +4,8 @@ group :development, :test do
|
|
4
4
|
# Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
|
5
5
|
gem 'minitest', '~> 4.7.0'
|
6
6
|
gem 'shoulda-context', '~> 1.1.6'
|
7
|
-
|
8
|
-
|
9
|
-
platforms :ruby_22, :ruby_23 do
|
10
|
-
gem 'test-unit'
|
11
|
-
end
|
12
|
-
|
13
|
-
platforms :ruby_20, :ruby_21, :ruby_22, :ruby_23 do
|
14
|
-
gem 'coveralls', :require => false
|
15
|
-
end
|
7
|
+
gem 'test-unit'
|
8
|
+
gem 'coveralls', :require => false
|
16
9
|
end
|
17
10
|
|
18
11
|
gem 'rake-compiler', '>= 0.6.0'
|
data/README.rdoc
CHANGED
@@ -21,9 +21,7 @@ For packet processing capability look at ruby gems PCAPFU, PCAPLET, etc..
|
|
21
21
|
== Requirements
|
22
22
|
|
23
23
|
MRI POSIX Ruby (Native compilation) [Travis-CI Tested]
|
24
|
-
Ruby
|
25
|
-
Ruby 1.9.3
|
26
|
-
~> Ruby 2.x
|
24
|
+
~> Ruby 2.4
|
27
25
|
|
28
26
|
libpcap - http://www.tcpdump.org
|
29
27
|
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ ENV['LANG'] = "en_US.UTF-8"
|
|
18
18
|
spec.homepage = "https://github.com/pcaprub/pcaprub"
|
19
19
|
spec.requirements = "libpcap"
|
20
20
|
spec.license = "LGPL-2.1"
|
21
|
-
spec.required_ruby_version = '
|
21
|
+
spec.required_ruby_version = '>= 2.0'
|
22
22
|
|
23
23
|
spec.files = [
|
24
24
|
".document",
|
data/ext/pcaprub_c/extconf.rb
CHANGED
@@ -18,6 +18,10 @@ if /i386-mingw32/ =~ RUBY_PLATFORM || /x64-mingw32/ =~ RUBY_PLATFORM
|
|
18
18
|
pcap_includedir = with_config("pcap-includedir", pcap_dir + "/include")
|
19
19
|
pcap_libdir = with_config("pcap-libdir", pcap_dir + "/lib")
|
20
20
|
|
21
|
+
if /x64-mingw32/ =~ RUBY_PLATFORM
|
22
|
+
pcap_libdir += "/x64"
|
23
|
+
end
|
24
|
+
|
21
25
|
$CFLAGS = "-DWIN32 -I#{pcap_includedir}"
|
22
26
|
$CFLAGS += " -g" if with_config("debug")
|
23
27
|
$LDFLAGS = "-L#{pcap_libdir}"
|
@@ -33,6 +37,10 @@ elsif /i386-mswin32/ =~ RUBY_PLATFORM || /x64-mswin32/ =~ RUBY_PLATFORM
|
|
33
37
|
pcap_includedir = with_config("pcap-includedir", pcap_dir + "\\include")
|
34
38
|
pcap_libdir = with_config("pcap-libdir", pcap_dir + "\\lib")
|
35
39
|
|
40
|
+
if /x64-mingw32/ =~ RUBY_PLATFORM
|
41
|
+
pcap_libdir += "\\x64"
|
42
|
+
end
|
43
|
+
|
36
44
|
$CFLAGS = "-DWIN32 -I#{pcap_includedir}"
|
37
45
|
$CFLAGS += " -g" if with_config("debug")
|
38
46
|
$LDFLAGS = "/link /LIBPATH:#{pcap_libdir}"
|
data/lib/pcaprub/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/test_pcaprub_unit.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pcaprub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shadowbq
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -149,7 +149,7 @@ require_paths:
|
|
149
149
|
- lib
|
150
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '2.0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -159,8 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements:
|
161
161
|
- libpcap
|
162
|
-
|
163
|
-
rubygems_version: 2.5.2.1
|
162
|
+
rubygems_version: 3.1.6
|
164
163
|
signing_key:
|
165
164
|
specification_version: 4
|
166
165
|
summary: libpcap bindings for ruby
|