pcaprub 0.13.0 → 0.13.1

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
- SHA1:
3
- metadata.gz: 3fdbd4939dcfb61fc4cc143de865f17bd4999ba6
4
- data.tar.gz: 58b38fcc9f3a4b9ff136134ab3fb18783ade94b1
2
+ SHA256:
3
+ metadata.gz: c73d004b9ff68405a37b7f4a9466c187f3c5fd30110b8688ef9ec35a1a58954c
4
+ data.tar.gz: 48d2147906a775f47b76192b6c407fd9d2393b39a7383c08e2e14270daded436
5
5
  SHA512:
6
- metadata.gz: b8af65ed57f6c0fe37c2d2e5d184f4ba38510ed0e7e8ff607ead0aae160d9916cfbd24ef8ec7929ff3cafcdcfd868a47bda74166d8c3cca27ca9284a245b93a5
7
- data.tar.gz: db80e02ee8b845edaa10551ecc5a3b327e96a72dd5b7ba5d456578fc5e39322b686c079215f2f060a064398b48cb5b33aee3f96b75baa45e2dc56274d09b3254
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.0.0
9
- - 2.1
10
- - 2.2
11
- - 2.3.0
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
- # test-unit moved to its own gem in ruby 2.2
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 1.8.7 (EOL June 2014)
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 = '~> 2.0'
21
+ spec.required_ruby_version = '>= 2.0'
22
22
 
23
23
  spec.files = [
24
24
  ".document",
@@ -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}"
@@ -4,7 +4,7 @@ module PCAPRUB #:nodoc:
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 13
7
- TINY = 0
7
+ TINY = 1
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].join('.')
10
10
 
data/test/test_helper.rb CHANGED
@@ -8,9 +8,5 @@ require "minitest/autorun"
8
8
  require 'test/unit'
9
9
  require 'pcaprub'
10
10
 
11
-
12
- if RUBY_VERSION >= "1.9.2"
13
- require 'coveralls'
14
- Coveralls.wear!
15
- end
16
-
11
+ require 'coveralls'
12
+ Coveralls.wear!
@@ -71,7 +71,7 @@ class Pcap::UnitTest < Test::Unit::TestCase
71
71
  d = Pcap.lookupdev
72
72
  o = Pcap.open_live(d, 65535, true, 1)
73
73
  r = o.datalink
74
- assert_equal(Fixnum, r.class)
74
+ assert_equal(Integer, r.class)
75
75
  end
76
76
 
77
77
  def test_pcap_snapshot
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.0
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: 2018-07-26 00:00:00.000000000 Z
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
- rubyforge_project:
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