Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit.

  • Loading branch information...
commit 1381fed8d3369e960a33aab50beb9d300533a7d0 0 parents
@postmodern authored
4 .gitignore
@@ -0,0 +1,4 @@
+doc
+pkg
+.bundle
+.yardoc
1  .specopts
@@ -0,0 +1 @@
+--colour --format specdoc
1  .yardopts
@@ -0,0 +1 @@
+--markup markdown --title 'FFI MsgPack Documentation' --protected --files ChangeLog.md,LICENSE.txt
4 ChangeLog.md
@@ -0,0 +1,4 @@
+### 0.1.0 / 2010-05-18
+
+* Initial release.
+
24 Gemfile
@@ -0,0 +1,24 @@
+source 'http://rubygems.org'
+
+group :runtime do
+ gem 'ffi', '~> 0.5.0'
+end
+
+group :development do
+ gem 'bundler', '~> 0.9.25'
+ gem 'rake', '~> 0.8.7'
+ gem 'jeweler', '~> 1.4.0', :git => 'git://github.com/technicalpickles/jeweler.git'
+end
+
+group :doc do
+ case RUBY_PLATFORM
+ when 'java'
+ gem 'maruku', '~> 0.6.0'
+ else
+ gem 'rdiscount', '~> 1.6.3'
+ end
+
+ gem 'yard', '~> 0.5.3'
+end
+
+gem 'rspec', '~> 1.3.0', :group => [:development, :test]
23 LICENSE.txt
@@ -0,0 +1,23 @@
+
+The MIT License
+
+Copyright (c) 2010 Hal Brodigan
+
+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.
27 README.md
@@ -0,0 +1,27 @@
+# ffi-msgpack
+
+* [github.com/postmodern/ffi-msgpack](http://github.com/postmodern/ffi-msgpack/)
+* [github.com/postmodern/ffi-msgpack/issues](http://github.com/postmodern/ffi-msgpack/issues)
+* Postmodern (postmodern.mod3 at gmail.com)
+
+## Description
+
+Ruby FFI bindings for the [msgpack](http://msgpack.sourceforge.net/) library.
+
+## Features
+
+## Examples
+
+## Requirements
+
+* [msgpack](http://msgpack.sourceforge.net/) >= 0.4.2
+* [ffi](http://github.com/ffi/ffi) >= 0.5.0
+
+## Install
+
+ $ sudo gem install ffi-msgpack
+
+## License
+
+See {file:LICENSE.txt} for license information.
+
39 Rakefile
@@ -0,0 +1,39 @@
+require 'rubygems'
+require 'bundler'
+
+begin
+ Bundler.setup(:development, :doc)
+rescue Bundler::BundlerError => e
+ STDERR.puts e.message
+ STDERR.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+
+require 'rake'
+require 'rake/clean'
+require 'jeweler'
+
+Jeweler::Tasks.new do |gem|
+ gem.name = 'ffi-msgpack'
+ gem.licenses = ['MIT']
+ gem.summary = %Q{FFI bindings for msgpack}
+ gem.email = 'postmodern.mod3@gmail.com'
+ gem.homepage = %Q{http://github.com/postmodern/ffi-msgpack}
+ gem.description = %Q{Ruby FFI bindings for the msgpack library.}
+ gem.authors = ['Postmodern']
+ gem.add_development_dependency 'bundler', '~> 0.9.23'
+ gem.has_rdoc = 'yard'
+end
+
+require 'spec/rake/spectask'
+
+desc "Run all specifications"
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs += ['lib', 'spec']
+ spec.spec_files = FileList['spec/**/*_spec.rb']
+ spec.spec_opts = ['--options', '.specopts']
+end
+task :default => :spec
+
+require 'yard'
+YARD::Rake::YardocTask.new
1  VERSION
@@ -0,0 +1 @@
+0.1.0
68 ffi-msgpack.gemspec
@@ -0,0 +1,68 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{ffi-msgpack}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Postmodern"]
+ s.date = %q{2010-05-18}
+ s.description = %q{Ruby FFI bindings for the msgpack library.}
+ s.email = %q{postmodern.mod3@gmail.com}
+ s.extra_rdoc_files = [
+ "ChangeLog.md",
+ "LICENSE.txt",
+ "README.md"
+ ]
+ s.files = [
+ ".gitignore",
+ ".specopts",
+ ".yardopts",
+ "ChangeLog.md",
+ "Gemfile",
+ "LICENSE.txt",
+ "README.md",
+ "Rakefile",
+ "VERSION",
+ "lib/ffi/msgpack.rb",
+ "lib/ffi/msgpack/msgpack.rb"
+ ]
+ s.has_rdoc = %q{yard}
+ s.homepage = %q{http://github.com/postmodern/ffi-msgpack}
+ s.licenses = ["MIT"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{FFI bindings for msgpack}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<ffi>, ["~> 0.5.0"])
+ s.add_development_dependency(%q<bundler>, ["~> 0.9.25"])
+ s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
+ s.add_development_dependency(%q<bundler>, ["~> 0.9.23"])
+ else
+ s.add_dependency(%q<ffi>, ["~> 0.5.0"])
+ s.add_dependency(%q<bundler>, ["~> 0.9.25"])
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
+ s.add_dependency(%q<rspec>, ["~> 1.3.0"])
+ s.add_dependency(%q<bundler>, ["~> 0.9.23"])
+ end
+ else
+ s.add_dependency(%q<ffi>, ["~> 0.5.0"])
+ s.add_dependency(%q<bundler>, ["~> 0.9.25"])
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
+ s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
+ s.add_dependency(%q<rspec>, ["~> 1.3.0"])
+ s.add_dependency(%q<bundler>, ["~> 0.9.23"])
+ end
+end
+
1  lib/ffi/msgpack.rb
@@ -0,0 +1 @@
+require 'ffi/msgpack/msgpack'
9 lib/ffi/msgpack/msgpack.rb
@@ -0,0 +1,9 @@
+require 'ffi'
+
+module FFI
+ module MsgPack
+ extend FFI::Library
+
+ ffi_lib 'msgpack'
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.