net-proto 1.2.1 → 1.3.0

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: b54c00f356ba67fe6f3588383bb8973dce4ba75b
4
- data.tar.gz: cf1a681730ac2dbab3f49ffa912a4a7629092893
2
+ SHA256:
3
+ metadata.gz: 1daa42393b00eb774a8ad1e9b6ecf3f1b369ac47c46d974c9d671e695a2963c6
4
+ data.tar.gz: 8b2437cc1ea12f09cad3b724307f24ea2172ad61cb6d764bcdac0a7bf4751f77
5
5
  SHA512:
6
- metadata.gz: 4f24456ea52a930972bd1c90236e7d64ed0941f06c35fe42bb94cab314ff84614690243496c17659852f8b0add8bbe44be58b2a564587074c732154ee39d18ae
7
- data.tar.gz: db992eba1469f04f670d773b29d7c8a27d60fc96f481f2e9e8446dfbb807affc3d847e64caff77a73da603209e111055383df135d9e37c7dc107a2023ce0d5b1
6
+ metadata.gz: eba3abc747ec6d2f92ae05bbb907124d85f7ea13a9c03b86519e7fc5306f54ab4ac5abe1e5080c3904b9da295f7e845dcfb8e2d9780fc136e982d44539e83580
7
+ data.tar.gz: d832391f70e27a8e8b4bdcadf1ad866e8f1083d6694b6269d944c2818fce546111d0a6fada3ccd93b9dd960d7f0ee496563545701c6d0e6bb001d988c7c2480a
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ == 1.3.0 - 10-Jan-2019
2
+ * Changed license to Apache-2.0.
3
+ * The VERSION constant is now frozen.
4
+ * Added metadata to the gemspec.
5
+ * Updated cert, should be good for about 10 years now.
6
+
1
7
  == 1.2.1 - 4-Jan-2016
2
8
  * This gem is now signed.
3
9
  * The gem related tasks in the Rakefile now assume Rubygems 2.x.
@@ -1,21 +1,26 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
2
+ MIIEcDCC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18
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
19
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
20
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
21
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
22
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
21
26
  -----END CERTIFICATE-----
@@ -59,7 +59,7 @@ Proto.getprotoent{ |struct| ... }
59
59
  at https://github.com/djberg96/net-proto.
60
60
 
61
61
  == Copyright
62
- (C) 2003-2016 Daniel J. Berger
62
+ (C) 2003-2019 Daniel J. Berger
63
63
  All rights reserved.
64
64
 
65
65
  == Warranty
@@ -68,7 +68,7 @@ Proto.getprotoent{ |struct| ... }
68
68
  warranties of merchantability and fitness for a particular purpose.
69
69
 
70
70
  == License
71
- Artistic 2.0
71
+ Apache-2.0
72
72
 
73
73
  == Author
74
74
  Daniel J. Berger
@@ -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.2.1'
8
+ VERSION = '1.3.0'.freeze
9
9
 
10
10
  private_class_method :new
11
11
 
@@ -1,24 +1,33 @@
1
1
  require 'rubygems'
2
2
 
3
- Gem::Specification.new do |gem|
4
- gem.name = 'net-proto'
5
- gem.version = '1.2.1'
6
- gem.author = 'Daniel J. Berger'
7
- gem.license = 'Artistic 2.0'
8
- gem.email = 'djberg96@gmail.com'
9
- gem.homepage = 'https://github.com/djberg96/net-proto'
10
- gem.summary = 'A Ruby interface for determining protocol information'
11
- gem.test_file = 'test/test_net_proto.rb'
12
- gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
- gem.cert_chain = Dir['certs/*']
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'net-proto'
5
+ spec.version = '1.3.0'
6
+ spec.author = 'Daniel J. Berger'
7
+ spec.license = 'Apache-2.0'
8
+ spec.email = 'djberg96@gmail.com'
9
+ spec.homepage = 'https://github.com/djberg96/net-proto'
10
+ spec.summary = 'A Ruby interface for determining protocol information'
11
+ spec.test_file = 'test/test_net_proto.rb'
12
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
+ spec.cert_chain = Dir['certs/*']
14
14
 
15
- gem.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/netproto.txt']
15
+ spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/netproto.txt']
16
16
 
17
- gem.add_dependency('ffi', '>= 1.0.0')
18
- gem.add_development_dependency('test-unit', '>= 2.2.0')
19
- gem.add_development_dependency('rake')
17
+ spec.add_dependency('ffi', '>= 1.0.0')
18
+ spec.add_development_dependency('test-unit', '>= 2.2.0')
19
+ spec.add_development_dependency('rake')
20
20
 
21
- gem.description = <<-EOF
21
+ spec.metadata = {
22
+ 'homepage_uri' => 'https://github.com/djberg96/net-proto',
23
+ 'bug_tracker_uri' => 'https://github.com/djberg96/net-proto/issues',
24
+ 'changelog_uri' => 'https://github.com/djberg96/net-proto/blob/ffi/CHANGES',
25
+ 'documentation_uri' => 'https://github.com/djberg96/net-proto/wiki',
26
+ 'source_code_uri' => 'https://github.com/djberg96/net-proto',
27
+ 'wiki_uri' => 'https://github.com/djberg96/net-proto/wiki'
28
+ }
29
+
30
+ spec.description = <<-EOF
22
31
  The net-proto library provides an interface for get protocol information
23
32
  by name or by number. It can also iterate over the list of protocol
24
33
  entries defined on your system.
@@ -24,7 +24,8 @@ class TC_Net_Proto < Test::Unit::TestCase
24
24
  end
25
25
 
26
26
  test "version number is set to expected value" do
27
- assert_equal('1.2.1', Net::Proto::VERSION)
27
+ assert_equal('1.3.0', Net::Proto::VERSION)
28
+ assert_true(Net::Proto::VERSION.frozen?)
28
29
  end
29
30
 
30
31
  test "get_protocol method basic functionality" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-proto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,27 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
14
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
16
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
18
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
19
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBet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1+8xAh
32
37
  -----END CERTIFICATE-----
33
- date: 2016-01-04 00:00:00.000000000 Z
38
+ date:
34
39
  dependencies:
35
40
  - !ruby/object:Gem::Dependency
36
41
  name: ffi
@@ -87,41 +92,47 @@ extra_rdoc_files:
87
92
  - MANIFEST
88
93
  - doc/netproto.txt
89
94
  files:
90
- - certs
91
- - certs/djberg96_pub.pem
92
95
  - CHANGES
93
- - doc
94
- - doc/netproto.txt
96
+ - test
97
+ - test/test_net_proto.rb
98
+ - net-proto.gemspec
95
99
  - examples
96
100
  - examples/example_net_proto.rb
101
+ - doc
102
+ - doc/netproto.txt
103
+ - README
104
+ - Rakefile
105
+ - MANIFEST
97
106
  - lib
98
- - lib/generic
99
- - lib/generic/net
100
- - lib/generic/net/proto.rb
107
+ - lib/windows
108
+ - lib/windows/net
109
+ - lib/windows/net/proto.rb
110
+ - lib/sunos
111
+ - lib/sunos/net
112
+ - lib/sunos/net/proto.rb
113
+ - lib/net-proto.rb
101
114
  - lib/linux
102
115
  - lib/linux/net
103
116
  - lib/linux/net/proto.rb
104
117
  - lib/net
118
+ - lib/net/proto.rb
105
119
  - lib/net/proto
106
120
  - lib/net/proto/common.rb
107
- - lib/net/proto.rb
108
- - lib/net-proto.rb
109
- - lib/sunos
110
- - lib/sunos/net
111
- - lib/sunos/net/proto.rb
112
- - lib/windows
113
- - lib/windows/net
114
- - lib/windows/net/proto.rb
115
- - MANIFEST
116
- - net-proto.gemspec
117
- - Rakefile
118
- - README
119
- - test
120
- - test/test_net_proto.rb
121
+ - lib/generic
122
+ - lib/generic/net
123
+ - lib/generic/net/proto.rb
124
+ - certs
125
+ - certs/djberg96_pub.pem
121
126
  homepage: https://github.com/djberg96/net-proto
122
127
  licenses:
123
- - Artistic 2.0
124
- metadata: {}
128
+ - Apache-2.0
129
+ metadata:
130
+ homepage_uri: https://github.com/djberg96/net-proto
131
+ bug_tracker_uri: https://github.com/djberg96/net-proto/issues
132
+ changelog_uri: https://github.com/djberg96/net-proto/blob/ffi/CHANGES
133
+ documentation_uri: https://github.com/djberg96/net-proto/wiki
134
+ source_code_uri: https://github.com/djberg96/net-proto
135
+ wiki_uri: https://github.com/djberg96/net-proto/wiki
125
136
  post_install_message:
126
137
  rdoc_options: []
127
138
  require_paths:
@@ -137,8 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
148
  - !ruby/object:Gem::Version
138
149
  version: '0'
139
150
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.5.1
151
+ rubygems_version: 3.0.2
142
152
  signing_key:
143
153
  specification_version: 4
144
154
  summary: A Ruby interface for determining protocol information
metadata.gz.sig CHANGED
Binary file