rubysl-socket 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -2
- data/lib/rubysl/socket/socket.rb +2 -2
- data/lib/rubysl/socket/version.rb +1 -1
- data/rubysl-socket.gemspec +4 -0
- data/spec/socket/unpack_sockaddr_un_spec.rb +0 -1
- metadata +40 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a687efad1b7199d53b21fe71763459fec39b3283
|
4
|
+
data.tar.gz: f854d3362dae260928e72a7c4f4a556c55883e97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d185e6ab0ba0c801a1c6279ff7e3091b42476f0fb9438f7b30040acda156b26092deb4a10954746c5db64d5ed414a1acedf8f9c12c5735f2f01008a7c0abd0c3
|
7
|
+
data.tar.gz: 265d200b3494d2551b0fa96ca4039cb861ed0f6ac022cc03f3dcf4bf0aafbb61d551a5799c4e5016768f1b53dca6f042244a10a225f086a5e572535d3ada7eac
|
data/.travis.yml
CHANGED
data/lib/rubysl/socket/socket.rb
CHANGED
@@ -617,12 +617,12 @@ class Socket < BasicSocket
|
|
617
617
|
# IPv4 address
|
618
618
|
offset = FFI.config("sockaddr_in.sin_addr.offset")
|
619
619
|
size = FFI.config("sockaddr_in.sin_addr.size")
|
620
|
-
addresses << sockaddr.
|
620
|
+
addresses << sockaddr.slice(offset, size)
|
621
621
|
elsif family == AF_INET6
|
622
622
|
# Ipv6 address
|
623
623
|
offset = FFI.config("sockaddr_in6.sin6_addr.offset")
|
624
624
|
size = FFI.config("sockaddr_in6.sin6_addr.size")
|
625
|
-
addresses << sockaddr.
|
625
|
+
addresses << sockaddr.slice(offset, size)
|
626
626
|
else
|
627
627
|
addresses << a[3]
|
628
628
|
end
|
data/rubysl-socket.gemspec
CHANGED
@@ -16,6 +16,10 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
+
spec.required_ruby_version = "~> 1.8.7"
|
20
|
+
|
19
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
20
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "mspec", "~> 1.5"
|
24
|
+
spec.add_development_dependency "rubysl-prettyprint", "~> 1.0"
|
21
25
|
end
|
metadata
CHANGED
@@ -1,43 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-socket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubysl-prettyprint
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
41
69
|
description: Ruby standard library socket.
|
42
70
|
email:
|
43
71
|
- brixen@gmail.com
|
@@ -45,8 +73,8 @@ executables: []
|
|
45
73
|
extensions: []
|
46
74
|
extra_rdoc_files: []
|
47
75
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
50
78
|
- Gemfile
|
51
79
|
- LICENSE
|
52
80
|
- README.md
|
@@ -203,17 +231,17 @@ require_paths:
|
|
203
231
|
- lib
|
204
232
|
required_ruby_version: !ruby/object:Gem::Requirement
|
205
233
|
requirements:
|
206
|
-
- -
|
234
|
+
- - "~>"
|
207
235
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
236
|
+
version: 1.8.7
|
209
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
238
|
requirements:
|
211
|
-
- -
|
239
|
+
- - ">="
|
212
240
|
- !ruby/object:Gem::Version
|
213
241
|
version: '0'
|
214
242
|
requirements: []
|
215
243
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.2.2
|
217
245
|
signing_key:
|
218
246
|
specification_version: 4
|
219
247
|
summary: Ruby standard library socket.
|