net-proto 1.4.0 → 1.4.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
2
  SHA256:
3
- metadata.gz: 22fc633cd0a57112a8a74a3725ef8cf228a0e4d7234d092b154bd075fb6467e3
4
- data.tar.gz: d1b70a57d424a8a9f8088c38f3551fd339ed9ba35b701de4d53354358555cee7
3
+ metadata.gz: b1bb0410a112bffe12fb31973dae5747d6b7fee011b0c6004bb3b70a113705d5
4
+ data.tar.gz: 1520a184788ead801920378b3900924d20f34181b5aa3ffb26cc1863b3cafe7d
5
5
  SHA512:
6
- metadata.gz: 7bb84b41f65803a273e6343d3a2e6d7126a2589831529120bbd255b6fcae57e642ea76d1976bd4f44287be0ededc5941f9393136d2b3429558e1b63174101934
7
- data.tar.gz: 0a9abc6743751706c141314275595f2162f69924ee4b8a63dd14a6fff9caa2f0a66edfa855031e9e563b62408b351e81afb012889355564e79bc807134eac2b0
6
+ metadata.gz: 0022bcec3b3fcd9e6070b04fe0a619bab1508b7a939865ffd26f068ac57ddbc69ff89ec35a1b040075ff4f88eac0d7aba69369244fea8426eea9240963e0aae0
7
+ data.tar.gz: e31b0e71126f44869040fb630968aaaea482a83aef4599f2389198f90ec26b57db0e2e82b9b526323f4135799f77e8d76054bf628e2860df7dacb471ac47a392
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,30 +1,33 @@
1
- == 1.4.0 - 17-Aug-2020
1
+ ## 1.4.1 - 18-Feb-2021
2
+ * Switch rdoc format to markdown where appropriate.
3
+
4
+ ## 1.4.0 - 17-Aug-2020
2
5
  * Switched from test-unit to rspec.
3
6
 
4
- == 1.3.1 - 30-Jul-2020
7
+ ## 1.3.1 - 30-Jul-2020
5
8
  * Add a LICENSE file as required by the Apache-2.0 license.
6
9
 
7
- == 1.3.0 - 10-Jan-2019
10
+ ## 1.3.0 - 10-Jan-2019
8
11
  * Changed license to Apache-2.0.
9
12
  * The VERSION constant is now frozen.
10
13
  * Added metadata to the gemspec.
11
14
  * Updated cert, should be good for about 10 years now.
12
15
 
13
- == 1.2.1 - 4-Jan-2016
16
+ ## 1.2.1 - 4-Jan-2016
14
17
  * This gem is now signed.
15
18
  * The gem related tasks in the Rakefile now assume Rubygems 2.x.
16
19
  * Added a net-proto.rb file for convenience.
17
20
 
18
- == 1.2.0 - 3-Nov-2014
21
+ ## 1.2.0 - 3-Nov-2014
19
22
  * The getprotobynumber and getprotobyname methods on MS Windows now accept
20
23
  optional window and message arguments. If used, the method becomes
21
24
  asynchronous and yields a block instead.
22
25
 
23
- == 1.1.1 - 9-Oct-2014
26
+ ## 1.1.1 - 9-Oct-2014
24
27
  * Implemented getprotoent on Windows using pure Ruby.
25
28
  * Miscellaneous minor updates to the Rakefile, gemspec and docs.
26
29
 
27
- == 1.1.0 - 18-Jan-2012
30
+ ## 1.1.0 - 18-Jan-2012
28
31
  * Switched to FFI instead of C backend. Now works with JRuby, too.
29
32
  * Added the generic get_protocol instance method that accepts either a
30
33
  string or an integer and does the right thing. This method should be
@@ -33,19 +36,19 @@
33
36
  * Refactored the test suite to use features of test-unit 2.x.
34
37
  * Added a default rake task.
35
38
 
36
- == 1.0.6 - 22-Oct-2010
39
+ ## 1.0.6 - 22-Oct-2010
37
40
  * Refactored the test suite and removed one test that was implementation
38
41
  dependent and not useful.
39
42
  * Updates to the README and gemspec.
40
43
 
41
- == 1.0.5 - 12-Sep-2009
44
+ ## 1.0.5 - 12-Sep-2009
42
45
  * Changed license to Artistic 2.0.
43
46
  * Added a build_binary_gem task.
44
47
  * Cleaned up and refactored the gemspec a bit, including the addition of
45
48
  a license and an updated description.
46
49
  * Switched test-unit from a runtime dependency to a dev dependency.
47
50
 
48
- == 1.0.4 - 6-Jan-2008
51
+ ## 1.0.4 - 6-Jan-2008
49
52
  * The struct returned by Net::Proto.getprotoent is now frozen. This is
50
53
  strictly read-only data.
51
54
  * It is now explicitly illegal to call Net::Proto.new.
@@ -54,31 +57,31 @@
54
57
  * Renamed and refactored the test suite. This library now requires test-unit
55
58
  version 2.0.2 or later.
56
59
 
57
- == 1.0.3 - 13-Aug-2007
60
+ ## 1.0.3 - 13-Aug-2007
58
61
  * Fix for OS X (whining about malloced pointer).
59
62
  * Added a Rakefile along with tasks for installation and testing.
60
63
  * Major internal reorganization.
61
64
  * Fixed Proto::VERSION test.
62
65
 
63
- == 1.0.2 - 18-Nov-2006
66
+ ## 1.0.2 - 18-Nov-2006
64
67
  * Updated the README, gemspec and netproto.txt files.
65
68
  * No code changes.
66
69
 
67
- == 1.0.1 - 30-Jun-2006
70
+ ## 1.0.1 - 30-Jun-2006
68
71
  * Added rdoc to the source files.
69
72
  * Added a gemspec.
70
73
 
71
- == 1.0.0 - 14-Jul-2005
74
+ ## 1.0.0 - 14-Jul-2005
72
75
  * Moved project to RubyForge.
73
76
  * Minor directory layout change.
74
77
  * Minor changes to the extconf.rb file.
75
78
  * Officially bumped VERSION to 1.0.0.
76
79
 
77
- == 0.2.5 - 18-Apr-2005
80
+ ## 0.2.5 - 18-Apr-2005
78
81
  * The Unix versions now call setprotoent(0) and endprotoent() internally
79
82
  before each call.
80
83
 
81
- == 0.2.4 - 12-Apr-2005
84
+ ## 0.2.4 - 12-Apr-2005
82
85
  * Added internal taint checking for the Proto.getprotobyname method.
83
86
  * Removed the INSTALL file. Installation instructions are now in the README.
84
87
  * Moved the sample script into the 'examples' directory.
@@ -87,13 +90,13 @@
87
90
  * Removed the netproto.rd and netproto.html files. The netproto.txt file is
88
91
  now rdoc friendly.
89
92
 
90
- == 0.2.3 - 13-Sep-2004
93
+ ## 0.2.3 - 13-Sep-2004
91
94
  * Replaced all instances of the deprecated STR2CSTR() function with the
92
95
  StringValuePtr() function. That means that, as of this release, this
93
96
  package requires Ruby 1.8.0 or later.
94
97
  * Minor documentation corrections.
95
98
 
96
- == 0.2.2 - 10-Apr-2004
99
+ ## 0.2.2 - 10-Apr-2004
97
100
  * No longer returns an Array in block form. Only the non-block form returns
98
101
  an array. The block form returns nil.
99
102
  * Updated the documentation, warranty information included, license changed
@@ -102,7 +105,7 @@
102
105
  * Changed "tc_all.rb" to "tc_netproto.rb".
103
106
  * Changed "netproto.rd2" to "netproto.rd".
104
107
 
105
- == 0.2.1 - 29-Jul-2003
108
+ ## 0.2.1 - 29-Jul-2003
106
109
  * Code cleanup (-Wall warnings on Linux)
107
110
  * Removed VERSION() class method. Use the constant instead
108
111
  * The getprotoent() method now returns an array of structs in non-block form
@@ -112,7 +115,7 @@
112
115
  TestUnit installed, instead of dynamically generating one
113
116
  * Fixed up TestUnit test suite
114
117
 
115
- == 0.2.0 - 26-Feb-2003
118
+ ## 0.2.0 - 26-Feb-2003
116
119
  * Added MS Windows support (except 'getprotoent()' - see docs)
117
120
  * For protocols that aren't defined, nil is now returned instead
118
121
  of crashing (always a good thing)
@@ -127,7 +130,7 @@
127
130
  * Manifest now MANIFEST
128
131
  * Package name changed to lower case
129
132
 
130
- == 0.1.0 - 13-Aug-2002
133
+ ## 0.1.0 - 13-Aug-2002
131
134
  * Fixed bug with getprotoent_r function for Linux
132
135
  * Added a 'generic' source file that uses the non-reentrant functions for
133
136
  those platforms that are not specifically supported.
@@ -136,5 +139,5 @@
136
139
  * Added a changelog :)
137
140
  * Added a manifest
138
141
 
139
- == 0.0.1 - 12-Aug-2002
142
+ ## 0.0.1 - 12-Aug-2002
140
143
  * Initial release (though written earlier)
@@ -1,7 +1,7 @@
1
- * CHANGES
1
+ * CHANGES.md
2
2
  * LICENSE
3
- * MANIFEST
4
- * README
3
+ * MANIFEST.md
4
+ * README.md
5
5
  * Rakefile
6
6
  * doc/netproto.txt
7
7
  * net-proto.gemspec
@@ -1,17 +1,18 @@
1
- == Description
1
+ ## Description
2
2
  The net-proto package provides a way to get protocol information.
3
3
 
4
- This is a wrapper for the getprotobyname(), getprotobynumber() and
5
- the getprotoent() functions.
4
+ This is a wrapper for the `getprotobyname`, `getprotobynumber` and
5
+ the `getprotoent` C functions.
6
6
 
7
- == Installation
8
- gem install net-proto
7
+ ## Installation
8
+ `gem install net-proto`
9
9
 
10
- == Prerequisites
11
- ffi 1.0.0 or later.
10
+ ## Prerequisites
11
+ * ffi 1.0.0 or later.
12
12
 
13
- == Synopsis
14
- require 'net/proto'
13
+ ## Synopsis
14
+ ```ruby
15
+ require 'net/proto' # or 'net-proto'
15
16
 
16
17
  # Using generic method
17
18
  Net::Proto.get_protocol(1) # => 'icmp'
@@ -25,13 +26,14 @@ Net::Proto.getprotobyname('tcp') # => 6
25
26
  Net::Proto.getprotoent do |ent|
26
27
  p ent
27
28
  end
29
+ ```
28
30
 
29
- == Why should I use this?
31
+ ## Why should I use this?
30
32
  Ruby has a predefined set of constants in socket.c in the general form of
31
33
  IPPROTO_XXX, Y. However, using constants in this fashion can be unreliable
32
34
  because it's easy to define your own protocols (I set 'echo' to 7, for
33
35
  example), or to modify/delete entries in /etc/protocols.
34
36
 
35
- == Further Documentation
36
- See the 'netproto.txt' file under the 'doc' directory for more details. There
37
+ ## Further Documentation
38
+ See the 'netproto.rdoc' file under the 'doc' directory for more details. There
37
39
  is also an example under the 'examples' directory.
File without changes
@@ -13,8 +13,6 @@ module Net
13
13
  ffi_convention :stdcall
14
14
  end
15
15
 
16
- private
17
-
18
16
  # These should exist on every platform.
19
17
  attach_function :getprotobyname_c, :getprotobyname, [:string], :pointer
20
18
  attach_function :getprotobynumber_c, :getprotobynumber, [:int], :pointer
@@ -35,8 +33,6 @@ module Net
35
33
  private_class_method :getprotobyname_c
36
34
  private_class_method :getprotobynumber_c
37
35
 
38
- public
39
-
40
36
  # If given a protocol string, returns the corresponding number. If
41
37
  # given a protocol number, returns the corresponding string.
42
38
  #
@@ -7,8 +7,6 @@ module Net
7
7
  class Proto
8
8
  ffi_lib FFI::Library::LIBC
9
9
 
10
- private
11
-
12
10
  attach_function :setprotoent, [:int], :void
13
11
  attach_function :endprotoent, [], :void
14
12
  attach_function :getprotobyname_r, [:string, :pointer, :pointer, :long, :pointer], :int
@@ -18,8 +16,6 @@ module Net
18
16
  private_class_method :setprotoent, :endprotoent, :getprotobyname_r
19
17
  private_class_method :getprotobynumber_r, :getprotoent_r
20
18
 
21
- public
22
-
23
19
  # If given a protocol string, returns the corresponding number. If
24
20
  # given a protocol number, returns the corresponding string.
25
21
  #
@@ -5,7 +5,7 @@ module Net
5
5
  extend FFI::Library
6
6
 
7
7
  # The version of the net-proto library
8
- VERSION = '1.4.0'.freeze
8
+ VERSION = '1.4.1'.freeze
9
9
 
10
10
  private_class_method :new
11
11
 
@@ -16,8 +16,6 @@ module Net
16
16
  private_class_method :setprotoent, :endprotoent, :getprotobyname_r
17
17
  private_class_method :getprotobynumber_r, :getprotoent_r
18
18
 
19
- public
20
-
21
19
  # If given a protocol string, returns the corresponding number. If
22
20
  # given a protocol number, returns the corresponding string.
23
21
  #
@@ -10,8 +10,6 @@ module Net
10
10
  ffi_lib 'ws2_32'
11
11
  ffi_convention :stdcall
12
12
 
13
- private
14
-
15
13
  # These should exist on every platform.
16
14
  attach_function :getprotobyname_c, :getprotobyname, [:string], :pointer
17
15
  attach_function :getprotobynumber_c, :getprotobynumber, [:int], :pointer
@@ -25,8 +23,6 @@ module Net
25
23
  private_class_method :WSAAsyncGetProtoByNumber
26
24
  private_class_method :WSAGetLastError
27
25
 
28
- public
29
-
30
26
  # If given a protocol string, returns the corresponding number. If
31
27
  # given a protocol number, returns the corresponding string.
32
28
  #
data/net-proto.gemspec CHANGED
@@ -2,17 +2,17 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'net-proto'
5
- spec.version = '1.4.0'
5
+ spec.version = '1.4.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
9
  spec.homepage = 'https://github.com/djberg96/net-proto'
10
10
  spec.summary = 'A Ruby interface for determining protocol information'
11
11
  spec.test_file = 'spec/net_proto_spec.rb'
12
- spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
12
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') || f.include?('rubocop') }
13
13
  spec.cert_chain = Dir['certs/*']
14
14
 
15
- spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/netproto.txt']
15
+ spec.extra_rdoc_files = ['doc/netproto.rdoc']
16
16
 
17
17
  spec.add_dependency('ffi', '~> 1.0')
18
18
  spec.add_development_dependency('rspec', '~> 3.9')
@@ -1,7 +1,7 @@
1
1
  ###########################################################################
2
- # net_netproto_spec.rb
2
+ # net_proto_spec.rb
3
3
  #
4
- # Test suite for net-proto all platforms. This test suite should be run
4
+ # Test suite for net-proto on all platforms. This test suite should be run
5
5
  # via the 'rake spec' task.
6
6
  ###########################################################################
7
7
  require 'net/proto'
@@ -19,8 +19,8 @@ RSpec.describe Net::Proto do
19
19
  end
20
20
 
21
21
  example "version number is set to expected value" do
22
- expect(Net::Proto::VERSION).to eq('1.4.0')
23
- expect(Net::Proto::VERSION.frozen?).to eq(true)
22
+ expect(Net::Proto::VERSION).to eq('1.4.1')
23
+ expect(Net::Proto::VERSION).to be_frozen
24
24
  end
25
25
 
26
26
  example "get_protocol method basic functionality" do
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-proto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
@@ -35,7 +35,7 @@ cert_chain:
35
35
  ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
36
  WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
37
  -----END CERTIFICATE-----
38
- date:
38
+ date:
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: ffi
@@ -87,18 +87,14 @@ email: djberg96@gmail.com
87
87
  executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files:
90
- - CHANGES
91
- - README
92
- - MANIFEST
93
- - doc/netproto.txt
90
+ - doc/netproto.rdoc
94
91
  files:
95
92
  - LICENSE
96
- - CHANGES
97
- - MANIFEST
98
93
  - spec
99
94
  - spec/net_proto_spec.rb
100
- - README
95
+ - README.md
101
96
  - Rakefile
97
+ - MANIFEST.md
102
98
  - certs
103
99
  - certs/djberg96_pub.pem
104
100
  - examples
@@ -121,8 +117,9 @@ files:
121
117
  - lib/windows
122
118
  - lib/windows/net
123
119
  - lib/windows/net/proto.rb
120
+ - CHANGES.md
124
121
  - doc
125
- - doc/netproto.txt
122
+ - doc/netproto.rdoc
126
123
  - net-proto.gemspec
127
124
  homepage: https://github.com/djberg96/net-proto
128
125
  licenses:
@@ -134,7 +131,7 @@ metadata:
134
131
  documentation_uri: https://github.com/djberg96/net-proto/wiki
135
132
  source_code_uri: https://github.com/djberg96/net-proto
136
133
  wiki_uri: https://github.com/djberg96/net-proto/wiki
137
- post_install_message:
134
+ post_install_message:
138
135
  rdoc_options: []
139
136
  require_paths:
140
137
  - lib
@@ -149,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
146
  - !ruby/object:Gem::Version
150
147
  version: '0'
151
148
  requirements: []
152
- rubygems_version: 3.1.4
153
- signing_key:
149
+ rubygems_version: 3.0.3
150
+ signing_key:
154
151
  specification_version: 4
155
152
  summary: A Ruby interface for determining protocol information
156
153
  test_files:
metadata.gz.sig CHANGED
Binary file