rubysl-fcntl 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 224a66a6303cb78d87feabe30e485e4bafb5af42
4
+ data.tar.gz: 02ebbd76c966f55396547beaf95520c151a5c117
5
+ SHA512:
6
+ metadata.gz: 5a11bb2f3fe20d31c51fad5835fac65d803c20fcd79471e536f7d311c1c6ed06c463930b4100446071f37c8a6364010d022c6bd940a31de8dd9b07d49e81d233
7
+ data.tar.gz: e6edbe238ffc9fc5b50c69a0ec1141b024d89bd9d1011171710203a5e670e8cc1e1a1d5ac26e1c6c3ce5e21b6576b7766d5a0ef43b18b8cbbd2067da43d66153
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ *.dSYM
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ lib/rubysl/fcntl/fcntl.rb
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ env:
3
+ - RUBYLIB=lib
4
+ script: bundle exec mspec
5
+ rvm:
6
+ - 1.8.7
7
+ - rbx-nightly-18mode
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rubysl-fcntl.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2013, Brian Shirai
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ 3. Neither the name of the library nor the names of its contributors may be
13
+ used to endorse or promote products derived from this software without
14
+ specific prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT,
20
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Rubysl::Fcntl
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'rubysl-fcntl'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install rubysl-fcntl
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/fcntl.rb ADDED
@@ -0,0 +1 @@
1
+ require "rubysl/fcntl"
@@ -0,0 +1,2 @@
1
+ require "rubysl/fcntl/version"
2
+ require "rubysl/fcntl/fcntl"
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,32 @@
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
+
@@ -0,0 +1,5 @@
1
+ module RubySL
2
+ module Fcntl
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ require './lib/rubysl/fcntl/version'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "rubysl-fcntl"
6
+ spec.version = RubySL::Fcntl::VERSION
7
+ spec.authors = ["Brian Shirai"]
8
+ spec.email = ["brixen@gmail.com"]
9
+ spec.description = %q{Ruby standard library fcntl.}
10
+ spec.summary = %q{Ruby standard library fcntl.}
11
+ spec.homepage = "https://github.com/rubysl/rubysl-fcntl"
12
+ spec.license = "BSD"
13
+
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.extensions = ["lib/rubysl/fcntl/extconf.rb"]
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_runtime_dependency "ffi2-generators", "~> 0.0.1"
21
+ spec.add_runtime_dependency "rake", "~> 10.0"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "mspec", "~> 1.5"
25
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubysl-fcntl
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian Shirai
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi2-generators
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.5'
69
+ description: Ruby standard library fcntl.
70
+ email:
71
+ - brixen@gmail.com
72
+ executables: []
73
+ extensions:
74
+ - lib/rubysl/fcntl/extconf.rb
75
+ extra_rdoc_files: []
76
+ files:
77
+ - .gitignore
78
+ - .travis.yml
79
+ - Gemfile
80
+ - LICENSE
81
+ - README.md
82
+ - Rakefile
83
+ - lib/fcntl.rb
84
+ - lib/rubysl/fcntl.rb
85
+ - lib/rubysl/fcntl/extconf.rb
86
+ - lib/rubysl/fcntl/fcntl.rb.ffi
87
+ - lib/rubysl/fcntl/version.rb
88
+ - rubysl-fcntl.gemspec
89
+ homepage: https://github.com/rubysl/rubysl-fcntl
90
+ licenses:
91
+ - BSD
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.0.7
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: Ruby standard library fcntl.
113
+ test_files: []