Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 461d8da
Showing
14 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- | ||
ChangeLog.md | ||
LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
doc/ | ||
pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--colour --format documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--markup markdown --title "ffi-extractor Documentation" --protected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### 0.1.0 / 2012-08-11 | ||
|
||
* Initial release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2012 Postmodern | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# ffi-extractor | ||
|
||
* [Homepage](https://github.com/postmodern/ffi-extractor#readme) | ||
* [Issues](https://github.com/postmodern/ffi-extractor/issues) | ||
* [Documentation](http://rubydoc.info/gems/ffi-extractor/frames) | ||
* [Email](mailto:postmodern.mod3 at gmail.com) | ||
|
||
## Description | ||
|
||
TODO: Description | ||
|
||
## Features | ||
|
||
## Examples | ||
|
||
require 'ffi/extractor' | ||
|
||
## Requirements | ||
|
||
## Install | ||
|
||
$ gem install ffi-extractor | ||
|
||
## Copyright | ||
|
||
Copyright (c) 2012 Postmodern | ||
|
||
See {file:LICENSE.txt} for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# encoding: utf-8 | ||
|
||
require 'rubygems' | ||
require 'rake' | ||
|
||
begin | ||
gem 'rubygems-tasks', '~> 0.2' | ||
require 'rubygems/tasks' | ||
|
||
Gem::Tasks.new | ||
rescue LoadError => e | ||
warn e.message | ||
warn "Run `gem install rubygems-tasks` to install Gem::Tasks." | ||
end | ||
|
||
begin | ||
gem 'rspec', '~> 2.4' | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new | ||
rescue LoadError => e | ||
task :spec do | ||
abort "Please run `gem install rspec` to install RSpec." | ||
end | ||
end | ||
|
||
task :test => :spec | ||
task :default => :spec | ||
|
||
begin | ||
gem 'yard', '~> 0.8' | ||
require 'yard' | ||
|
||
YARD::Rake::YardocTask.new | ||
rescue LoadError => e | ||
task :yard do | ||
abort "Please run `gem install yard` to install YARD." | ||
end | ||
end | ||
task :doc => :yard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# encoding: utf-8 | ||
|
||
require 'yaml' | ||
|
||
Gem::Specification.new do |gem| | ||
gemspec = YAML.load_file('gemspec.yml') | ||
|
||
gem.name = gemspec.fetch('name') | ||
gem.version = gemspec.fetch('version') do | ||
lib_dir = File.join(File.dirname(__FILE__),'lib') | ||
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir) | ||
|
||
require 'ffi/extractor/version' | ||
FFI::Extractor::VERSION | ||
end | ||
|
||
gem.summary = gemspec['summary'] | ||
gem.description = gemspec['description'] | ||
gem.licenses = Array(gemspec['license']) | ||
gem.authors = Array(gemspec['authors']) | ||
gem.email = gemspec['email'] | ||
gem.homepage = gemspec['homepage'] | ||
|
||
glob = lambda { |patterns| gem.files & Dir[*patterns] } | ||
|
||
gem.files = `git ls-files`.split($/) | ||
gem.files = glob[gemspec['files']] if gemspec['files'] | ||
|
||
gem.executables = gemspec.fetch('executables') do | ||
glob['bin/*'].map { |path| File.basename(path) } | ||
end | ||
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.' | ||
|
||
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb'] | ||
gem.test_files = glob[gemspec['test_files'] || '{test/{**/}*_test.rb'] | ||
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}'] | ||
|
||
gem.require_paths = Array(gemspec.fetch('require_paths') { | ||
%w[ext lib].select { |dir| File.directory?(dir) } | ||
}) | ||
|
||
gem.requirements = gemspec['requirements'] | ||
gem.required_ruby_version = gemspec['required_ruby_version'] | ||
gem.required_rubygems_version = gemspec['required_rubygems_version'] | ||
gem.post_install_message = gemspec['post_install_message'] | ||
|
||
split = lambda { |string| string.split(/,\s*/) } | ||
|
||
if gemspec['dependencies'] | ||
gemspec['dependencies'].each do |name,versions| | ||
gem.add_dependency(name,split[versions]) | ||
end | ||
end | ||
|
||
if gemspec['development_dependencies'] | ||
gemspec['development_dependencies'].each do |name,versions| | ||
gem.add_development_dependency(name,split[versions]) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: ffi-extractor | ||
summary: "TODO: Summary" | ||
description: "TODO: Description" | ||
license: MIT | ||
authors: Postmodern | ||
email: postmodern.mod3@gmail.com | ||
homepage: https://github.com/postmodern/ffi-extractor#readme | ||
|
||
development_dependencies: | ||
rspec: ~> 2.4 | ||
rubygems-tasks: ~> 0.2 | ||
yard: ~> 0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'ffi/extractor/version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module FFI | ||
module Extractor | ||
# ffi-extractor version | ||
VERSION = "0.1.0" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'spec_helper' | ||
require 'ffi/extractor' | ||
|
||
describe FFI::Extractor do | ||
it "should have a VERSION constant" do | ||
subject.const_get('VERSION').should_not be_empty | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gem 'rspec', '~> 2.4' | ||
require 'rspec' | ||
require 'ffi/extractor/version' | ||
|
||
include FFI::Extractor |