rubysl-fcntl 2.0.4 → 3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +12 -9
- data/MRI_LICENSE +56 -0
- data/lib/fcntl.rb +25 -1
- data/lib/rubysl/fcntl.rb +0 -1
- data/lib/rubysl/fcntl/version.rb +1 -1
- data/rubysl-fcntl.gemspec +1 -1
- metadata +5 -8
- data/lib/rubysl/fcntl/extconf.rb +0 -15
- data/lib/rubysl/fcntl/fcntl.rb.ffi +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c5e4ee5e15715010e52d6e16739fe495e20e37e
|
4
|
+
data.tar.gz: 5c5c91dc14e26a2bf6782d69e008a1597ac6612f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81264b7d87660f72cf157c35339503ccdcca062155f464c61d7d097da2cf5ae2e9dd38e85f3708af1494d9d97514e391df5e017ac063781c6c5b1fff7d3daa87
|
7
|
+
data.tar.gz: c6815fa184e13402564a90261c5d9b3c411f05fb10dd916036ec3bccd2ca61d1e72dc8e5c20ad377ec2a59adc32691375785ad5998466448897cb66ba454e60a
|
data/.travis.yml
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
language: ruby
|
2
|
-
before_install:
|
3
|
-
- rvm use $RVM --install --binary --fuzzy
|
4
|
-
- gem update --system
|
5
|
-
- gem --version
|
6
|
-
- gem install rubysl-bundler
|
7
|
-
- gem install rubysl-rake
|
8
|
-
- rake
|
9
2
|
env:
|
10
|
-
-
|
11
|
-
|
3
|
+
- RUBYLIB=lib
|
4
|
+
- RUBYLIB=
|
5
|
+
script: mspec spec
|
6
|
+
rvm:
|
7
|
+
- 2.0.0
|
8
|
+
- rbx-2.2.1
|
9
|
+
matrix:
|
10
|
+
exclude:
|
11
|
+
- rvm: 2.0.0
|
12
|
+
env: RUBYLIB=lib
|
13
|
+
- rvm: rbx-2.2.1
|
14
|
+
env: RUBYLIB=
|
data/MRI_LICENSE
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
4
|
+
|
5
|
+
1. You may make and give away verbatim copies of the source form of the
|
6
|
+
software without restriction, provided that you duplicate all of the
|
7
|
+
original copyright notices and associated disclaimers.
|
8
|
+
|
9
|
+
2. You may modify your copy of the software in any way, provided that
|
10
|
+
you do at least ONE of the following:
|
11
|
+
|
12
|
+
a) place your modifications in the Public Domain or otherwise
|
13
|
+
make them Freely Available, such as by posting said
|
14
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
15
|
+
the author to include your modifications in the software.
|
16
|
+
|
17
|
+
b) use the modified software only within your corporation or
|
18
|
+
organization.
|
19
|
+
|
20
|
+
c) give non-standard binaries non-standard names, with
|
21
|
+
instructions on where to get the original software distribution.
|
22
|
+
|
23
|
+
d) make other distribution arrangements with the author.
|
24
|
+
|
25
|
+
3. You may distribute the software in object code or binary form,
|
26
|
+
provided that you do at least ONE of the following:
|
27
|
+
|
28
|
+
a) distribute the binaries and library files of the software,
|
29
|
+
together with instructions (in the manual page or equivalent)
|
30
|
+
on where to get the original distribution.
|
31
|
+
|
32
|
+
b) accompany the distribution with the machine-readable source of
|
33
|
+
the software.
|
34
|
+
|
35
|
+
c) give non-standard binaries non-standard names, with
|
36
|
+
instructions on where to get the original software distribution.
|
37
|
+
|
38
|
+
d) make other distribution arrangements with the author.
|
39
|
+
|
40
|
+
4. You may modify and include the part of the software into any other
|
41
|
+
software (possibly commercial). But some files in the distribution
|
42
|
+
are not written by the author, so that they are not under these terms.
|
43
|
+
|
44
|
+
For the list of those files and their copying conditions, see the
|
45
|
+
file LEGAL.
|
46
|
+
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
48
|
+
output from the software do not automatically fall under the
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
50
|
+
and may be sold commercially, and may be aggregated with this
|
51
|
+
software.
|
52
|
+
|
53
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
54
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
55
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
56
|
+
PURPOSE.
|
data/lib/fcntl.rb
CHANGED
@@ -1 +1,25 @@
|
|
1
|
-
|
1
|
+
module Fcntl
|
2
|
+
FD_CLOEXEC = Rubinius::Config['rbx.platform.fcntl.FD_CLOEXEC']
|
3
|
+
F_DUPFD = Rubinius::Config['rbx.platform.fcntl.F_DUPFD']
|
4
|
+
F_GETFD = Rubinius::Config['rbx.platform.fcntl.F_GETFD']
|
5
|
+
F_GETFL = Rubinius::Config['rbx.platform.fcntl.F_GETFL']
|
6
|
+
F_GETLK = Rubinius::Config['rbx.platform.fcntl.F_GETLK']
|
7
|
+
F_RDLCK = Rubinius::Config['rbx.platform.fcntl.F_RDLCK']
|
8
|
+
F_SETFD = Rubinius::Config['rbx.platform.fcntl.F_SETFD']
|
9
|
+
F_SETFL = Rubinius::Config['rbx.platform.fcntl.F_SETFL']
|
10
|
+
F_SETLK = Rubinius::Config['rbx.platform.fcntl.F_SETLK']
|
11
|
+
F_SETLKW = Rubinius::Config['rbx.platform.fcntl.F_SETLKW']
|
12
|
+
F_UNLCK = Rubinius::Config['rbx.platform.fcntl.F_UNLCK']
|
13
|
+
F_WRLCK = Rubinius::Config['rbx.platform.fcntl.F_WRLCK']
|
14
|
+
O_ACCMODE = Rubinius::Config['rbx.platform.fcntl.O_ACCMODE']
|
15
|
+
O_APPEND = Rubinius::Config['rbx.platform.fcntl.O_APPEND']
|
16
|
+
O_CREAT = Rubinius::Config['rbx.platform.fcntl.O_CREAT']
|
17
|
+
O_EXCL = Rubinius::Config['rbx.platform.fcntl.O_EXCL']
|
18
|
+
O_NDELAY = Rubinius::Config['rbx.platform.fcntl.O_NDELAY']
|
19
|
+
O_NOCTTY = Rubinius::Config['rbx.platform.fcntl.O_NOCTTY']
|
20
|
+
O_NONBLOCK = Rubinius::Config['rbx.platform.fcntl.O_NONBLOCK']
|
21
|
+
O_RDONLY = Rubinius::Config['rbx.platform.fcntl.O_RDONLY']
|
22
|
+
O_RDWR = Rubinius::Config['rbx.platform.fcntl.O_RDWR']
|
23
|
+
O_TRUNC = Rubinius::Config['rbx.platform.fcntl.O_TRUNC']
|
24
|
+
O_WRONLY = Rubinius::Config['rbx.platform.fcntl.O_WRONLY']
|
25
|
+
end
|
data/lib/rubysl/fcntl.rb
CHANGED
data/lib/rubysl/fcntl/version.rb
CHANGED
data/rubysl-fcntl.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.files = `git ls-files`.split($/)
|
15
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
-
spec.extensions = [
|
16
|
+
spec.extensions = []
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-fcntl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '3.0'
|
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: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi2-generators
|
@@ -84,20 +84,18 @@ description: Ruby standard library fcntl.
|
|
84
84
|
email:
|
85
85
|
- brixen@gmail.com
|
86
86
|
executables: []
|
87
|
-
extensions:
|
88
|
-
- lib/rubysl/fcntl/extconf.rb
|
87
|
+
extensions: []
|
89
88
|
extra_rdoc_files: []
|
90
89
|
files:
|
91
90
|
- ".gitignore"
|
92
91
|
- ".travis.yml"
|
93
92
|
- Gemfile
|
94
93
|
- LICENSE
|
94
|
+
- MRI_LICENSE
|
95
95
|
- README.md
|
96
96
|
- Rakefile
|
97
97
|
- lib/fcntl.rb
|
98
98
|
- lib/rubysl/fcntl.rb
|
99
|
-
- lib/rubysl/fcntl/extconf.rb
|
100
|
-
- lib/rubysl/fcntl/fcntl.rb.ffi
|
101
99
|
- lib/rubysl/fcntl/version.rb
|
102
100
|
- rubysl-fcntl.gemspec
|
103
101
|
homepage: https://github.com/rubysl/rubysl-fcntl
|
@@ -120,9 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
118
|
version: '0'
|
121
119
|
requirements: []
|
122
120
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.5.1
|
124
122
|
signing_key:
|
125
123
|
specification_version: 4
|
126
124
|
summary: Ruby standard library fcntl.
|
127
125
|
test_files: []
|
128
|
-
has_rdoc:
|
data/lib/rubysl/fcntl/extconf.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require "ffi2/generators"
|
2
|
-
|
3
|
-
FFI::FileProcessor.new "fcntl.rb.ffi", "fcntl.rb"
|
4
|
-
|
5
|
-
# Fake out rubygem's expected build steps with extconf.rb
|
6
|
-
File.open "Makefile", "w" do |f|
|
7
|
-
f.puts <<-EOM
|
8
|
-
.PHONY: all install
|
9
|
-
|
10
|
-
all:
|
11
|
-
|
12
|
-
install:
|
13
|
-
|
14
|
-
EOM
|
15
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
module Fcntl
|
2
|
-
@@@
|
3
|
-
constants do |c|
|
4
|
-
c.include 'fcntl.h'
|
5
|
-
|
6
|
-
c.const 'F_DUPFD'
|
7
|
-
c.const 'F_GETFD'
|
8
|
-
c.const 'F_GETLK'
|
9
|
-
c.const 'F_SETFD'
|
10
|
-
c.const 'F_GETFL'
|
11
|
-
c.const 'F_SETFL'
|
12
|
-
c.const 'F_SETLK'
|
13
|
-
c.const 'F_SETLKW'
|
14
|
-
c.const 'FD_CLOEXEC'
|
15
|
-
c.const 'F_RDLCK'
|
16
|
-
c.const 'F_UNLCK'
|
17
|
-
c.const 'F_WRLCK'
|
18
|
-
c.const 'O_CREAT'
|
19
|
-
c.const 'O_EXCL'
|
20
|
-
c.const 'O_NOCTTY'
|
21
|
-
c.const 'O_TRUNC'
|
22
|
-
c.const 'O_APPEND'
|
23
|
-
c.const 'O_NONBLOCK'
|
24
|
-
c.const 'O_NDELAY'
|
25
|
-
c.const 'O_RDONLY'
|
26
|
-
c.const 'O_RDWR'
|
27
|
-
c.const 'O_WRONLY'
|
28
|
-
c.const 'O_ACCMODE'
|
29
|
-
end
|
30
|
-
@@@
|
31
|
-
end
|
32
|
-
|