net-proto 1.2.0 → 1.2.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
  SHA1:
3
- metadata.gz: 9ad82469ee27db26ef64fc237b2f0997c128e491
4
- data.tar.gz: b75d18a5640061415124e0db9a4c9d984a09e1af
3
+ metadata.gz: b54c00f356ba67fe6f3588383bb8973dce4ba75b
4
+ data.tar.gz: cf1a681730ac2dbab3f49ffa912a4a7629092893
5
5
  SHA512:
6
- metadata.gz: bc8b339c75aa05037c264351888309c7d65392f3db57cdaf89cab05ca46584a8747501e905b999e0fb0f2aa30b7a6f1fb12bbea84d0baaddf8c2995e694c58bd
7
- data.tar.gz: b056f5cb415e6cbf756c5e9e4e36f77f29bf66844e493f243ace79ee5f1ce662a35a9924963f62c30c1f386ae29aa58f78a99275fa5204a3739e1a25d2906a1e
6
+ metadata.gz: 4f24456ea52a930972bd1c90236e7d64ed0941f06c35fe42bb94cab314ff84614690243496c17659852f8b0add8bbe44be58b2a564587074c732154ee39d18ae
7
+ data.tar.gz: db992eba1469f04f670d773b29d7c8a27d60fc96f481f2e9e8446dfbb807affc3d847e64caff77a73da603209e111055383df135d9e37c7dc107a2023ce0d5b1
@@ -0,0 +1,3 @@
1
+ .nF'��r���N,0��c\4_�5�N)أB�)(��Χc�*-��t=�Ձ:��`�`{�D0�hJ��Z�妶 4�x���\�sJ�(G��&���l݁l��E�3�U�[�O3{O �<<�� +�H;-d
2
+ ��y�]E���o3��UxU�򳉝9gPe��
3
+ h�
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.2.1 - 4-Jan-2016
2
+ * This gem is now signed.
3
+ * The gem related tasks in the Rakefile now assume Rubygems 2.x.
4
+ * Added a net-proto.rb file for convenience.
5
+
1
6
  == 1.2.0 - 3-Nov-2014
2
7
  * The getprotobynumber and getprotobyname methods on MS Windows now accept
3
8
  optional window and message arguments. If used, the method becomes
data/MANIFEST CHANGED
@@ -4,6 +4,8 @@
4
4
  * Rakefile
5
5
  * doc/netproto.txt
6
6
  * net-proto.gemspec
7
+ * certs/djberg96_pub.pem
8
+ * lib/net-proto.rb
7
9
  * lib/net/proto.rb
8
10
  * lib/net/proto/common.rb
9
11
  * lib/generic/net/proto.rb
data/Rakefile CHANGED
@@ -7,13 +7,10 @@ CLEAN.include('**/*.gem', '**/*.rbx', '**/*.rbc')
7
7
  namespace 'gem' do
8
8
  desc 'Create the net-proto gem'
9
9
  task :create => :clean do
10
+ require 'rubygems/package'
10
11
  spec = eval(IO.read('net-proto.gemspec'))
11
- if Gem::VERSION.to_f < 2.0
12
- Gem::Builder.new(spec).build
13
- else
14
- require 'rubygems/package'
15
- Gem::Package.build(spec)
16
- end
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
+ Gem::Package.build(spec, true)
17
14
  end
18
15
 
19
16
  desc 'Install the net-proto gem'
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
3
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
+ MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
7
+ Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
8
+ S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
9
+ gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
10
+ FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
11
+ zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
12
+ DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
13
+ nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
14
+ bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
15
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
16
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
17
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----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-2014 Daniel J. Berger
62
+ (C) 2003-2016 Daniel J. Berger
63
63
  All rights reserved.
64
64
 
65
65
  == Warranty
@@ -0,0 +1 @@
1
+ require_relative 'net/proto'
@@ -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.0'
8
+ VERSION = '1.2.1'
9
9
 
10
10
  private_class_method :new
11
11
 
@@ -126,7 +126,7 @@ module Net
126
126
  endprotoent() if respond_to?(:endprotoent, true)
127
127
  end
128
128
 
129
- ptr.null? ? nil: struct[:p_name]
129
+ ptr.null? ? nil : struct[:p_name]
130
130
  end
131
131
  end
132
132
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'net-proto'
5
- gem.version = '1.2.0'
5
+ gem.version = '1.2.1'
6
6
  gem.author = 'Daniel J. Berger'
7
7
  gem.license = 'Artistic 2.0'
8
8
  gem.email = 'djberg96@gmail.com'
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.summary = 'A Ruby interface for determining protocol information'
11
11
  gem.test_file = 'test/test_net_proto.rb'
12
12
  gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
+ gem.cert_chain = Dir['certs/*']
13
14
 
14
15
  gem.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/netproto.txt']
15
16
 
@@ -24,7 +24,7 @@ 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.0', Net::Proto::VERSION)
27
+ assert_equal('1.2.1', Net::Proto::VERSION)
28
28
  end
29
29
 
30
30
  test "get_protocol method basic functionality" do
metadata CHANGED
@@ -1,55 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-proto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
14
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGR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Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
31
+ tGSHgAmcLlkdGgan182qsE/4kKM=
32
+ -----END CERTIFICATE-----
33
+ date: 2016-01-04 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: ffi
15
37
  requirement: !ruby/object:Gem::Requirement
16
38
  requirements:
17
- - - '>='
39
+ - - ">="
18
40
  - !ruby/object:Gem::Version
19
41
  version: 1.0.0
20
42
  type: :runtime
21
43
  prerelease: false
22
44
  version_requirements: !ruby/object:Gem::Requirement
23
45
  requirements:
24
- - - '>='
46
+ - - ">="
25
47
  - !ruby/object:Gem::Version
26
48
  version: 1.0.0
27
49
  - !ruby/object:Gem::Dependency
28
50
  name: test-unit
29
51
  requirement: !ruby/object:Gem::Requirement
30
52
  requirements:
31
- - - '>='
53
+ - - ">="
32
54
  - !ruby/object:Gem::Version
33
55
  version: 2.2.0
34
56
  type: :development
35
57
  prerelease: false
36
58
  version_requirements: !ruby/object:Gem::Requirement
37
59
  requirements:
38
- - - '>='
60
+ - - ">="
39
61
  - !ruby/object:Gem::Version
40
62
  version: 2.2.0
41
63
  - !ruby/object:Gem::Dependency
42
64
  name: rake
43
65
  requirement: !ruby/object:Gem::Requirement
44
66
  requirements:
45
- - - '>='
67
+ - - ">="
46
68
  - !ruby/object:Gem::Version
47
69
  version: '0'
48
70
  type: :development
49
71
  prerelease: false
50
72
  version_requirements: !ruby/object:Gem::Requirement
51
73
  requirements:
52
- - - '>='
74
+ - - ">="
53
75
  - !ruby/object:Gem::Version
54
76
  version: '0'
55
77
  description: |2
@@ -65,19 +87,36 @@ extra_rdoc_files:
65
87
  - MANIFEST
66
88
  - doc/netproto.txt
67
89
  files:
90
+ - certs
91
+ - certs/djberg96_pub.pem
68
92
  - CHANGES
69
- - MANIFEST
70
- - README
71
- - Rakefile
93
+ - doc
72
94
  - doc/netproto.txt
95
+ - examples
73
96
  - examples/example_net_proto.rb
97
+ - lib
98
+ - lib/generic
99
+ - lib/generic/net
74
100
  - lib/generic/net/proto.rb
101
+ - lib/linux
102
+ - lib/linux/net
75
103
  - lib/linux/net/proto.rb
76
- - lib/net/proto.rb
104
+ - lib/net
105
+ - lib/net/proto
77
106
  - lib/net/proto/common.rb
107
+ - lib/net/proto.rb
108
+ - lib/net-proto.rb
109
+ - lib/sunos
110
+ - lib/sunos/net
78
111
  - lib/sunos/net/proto.rb
112
+ - lib/windows
113
+ - lib/windows/net
79
114
  - lib/windows/net/proto.rb
115
+ - MANIFEST
80
116
  - net-proto.gemspec
117
+ - Rakefile
118
+ - README
119
+ - test
81
120
  - test/test_net_proto.rb
82
121
  homepage: https://github.com/djberg96/net-proto
83
122
  licenses:
@@ -89,17 +128,17 @@ require_paths:
89
128
  - lib
90
129
  required_ruby_version: !ruby/object:Gem::Requirement
91
130
  requirements:
92
- - - '>='
131
+ - - ">="
93
132
  - !ruby/object:Gem::Version
94
133
  version: '0'
95
134
  required_rubygems_version: !ruby/object:Gem::Requirement
96
135
  requirements:
97
- - - '>='
136
+ - - ">="
98
137
  - !ruby/object:Gem::Version
99
138
  version: '0'
100
139
  requirements: []
101
140
  rubyforge_project:
102
- rubygems_version: 2.4.2
141
+ rubygems_version: 2.5.1
103
142
  signing_key:
104
143
  specification_version: 4
105
144
  summary: A Ruby interface for determining protocol information
@@ -0,0 +1,4 @@
1
+ i.T3�l-6
2
+ `kx���Y�Z����e
3
+ ��y�l�5$��=�I��^쳽T�0�?_Z�x ��/ d�p�fz��#rVF�:�P�Cp3���\7�X9Uڴ��8ju��Q�|�����gd��-˸ǻ����K�O�*�*^�x=tzN��=��K^������z���/^? Ox�^������2��Bm�� ]�ɯ%Q77-��~:I��ت
4
+ d