Skip to content

Commit

Permalink
Migrated off of Hoe and to Jeweler, for building/releasing ffi-bert.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 12, 2010
1 parent 5bf9189 commit ac70e10
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 120 deletions.
1 change: 1 addition & 0 deletions .specopts
@@ -0,0 +1 @@
--colour --format specdoc
1 change: 1 addition & 0 deletions .yardopts
@@ -0,0 +1 @@
--markup markdown --title 'FFI BERT Documentation' --protected --files ChangeLog.md,LICENSE.txt
4 changes: 4 additions & 0 deletions ChangeLog.md
@@ -0,0 +1,4 @@
### 1.0.0 / 2009-12-31

* Initial release.

6 changes: 0 additions & 6 deletions History.rdoc

This file was deleted.

43 changes: 0 additions & 43 deletions README.rdoc → LICENSE.txt
@@ -1,46 +1,3 @@
= ffi-bert

* http://github.com/postmodern/ffi-bert
* http://github.com/postmodern/ffi-bert/issues
* http://github.com/postmodern/libBERT/issues
* Postmodern (postmodern.mod3 at gmail.com)

== DESCRIPTION:

FFI bindings to libBERT, a library for the encoding and decoding of BERT
data.

== FEATURES/PROBLEMS:

* Supports encoding/decoding of:
* Integers.
* Floating point numbers.
* Atoms.
* Strings.
* Binary data.
* Tuples.
* Lists.
* Complex types:
* Nil.
* Boolean True and False values.
* Dictionaries.
* Time values.
* Regular Expressions.
* Supports buffered, streaming or callback-based reading/writing of
BERT data.
* Supports converting between BERT data and Ruby native objects.

== REQUIREMENTS:

* {libBERT}[http://github.com/postmodern/libBERT] >= 0.1.0
* {ffi}[http://github.com/ffi/ffi] >= 0.6.0

== INSTALL:

$ sudo gem install ffi-bert

== LICENSE:

(The MIT License)

Copyright (c) 2009-2010 Hal Brodigan
Expand Down
28 changes: 0 additions & 28 deletions Manifest.txt

This file was deleted.

45 changes: 45 additions & 0 deletions README.md
@@ -0,0 +1,45 @@
# ffi-bert

* [github.com/postmodern/ffi-bert](http://github.com/postmodern/ffi-bert/)
* [github.com/postmodern/ffi-bert/issues](http://github.com/postmodern/ffi-bert/issues)
* [github.com/postmodern/libBERT/issues](http://github.com/postmodern/libBERT/issues)
* Postmodern (postmodern.mod3 at gmail.com)

## DESCRIPTION:

FFI bindings to libBERT, a library for the encoding and decoding of BERT
data.

## FEATURES/PROBLEMS:

* Supports encoding/decoding of:
* Integers.
* Floating point numbers.
* Atoms.
* Strings.
* Binary data.
* Tuples.
* Lists.
* Complex types:
* Nil.
* Boolean True and False values.
* Dictionaries.
* Time values.
* Regular Expressions.
* Supports buffered, streaming or callback-based reading/writing of
BERT data.
* Supports converting between BERT data and Ruby native objects.

## REQUIREMENTS:

* [libBERT](http://github.com/postmodern/libBERT) >= 0.1.0
* [ffi](http://github.com/ffi/ffi) >= 0.6.0

## INSTALL:

$ sudo gem install ffi-bert

## LICENSE:

See {file:LICENSE.txt} for license information.

55 changes: 35 additions & 20 deletions Rakefile
@@ -1,27 +1,42 @@
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require 'hoe/signing'
require './tasks/spec.rb'
require './tasks/yard.rb'
require 'rake'
require './lib/bert/version.rb'

Hoe.spec('ffi-bert')do
self.developer('Postmodern', 'postmodern.mod3@gmail.com')
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'parameters'
gem.version = FFI::BERT::VERSION
gem.summary = %Q{FFI bindings to libBERT.}
gem.description = %Q{FFI bindings to libBERT, a library for the encoding and decoding of BERT data.}
gem.email = 'postmodern.mod3@gmail.com'
gem.homepage = 'http://github.com/postmodern/ffi-bert'
gem.authors = ['Postmodern']
gem.add_dependency 'ffi', '>= 0.6.0'
gem.add_development_dependency 'rspec', '>= 1.3.0'
gem.add_development_dependency 'yard', '>= 0.5.3'
gem.has_rdoc = 'yard'
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

self.readme_file = 'README.rdoc'
self.history_file = 'History.rdoc'
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs += ['lib', 'spec']
spec.spec_files = FileList['spec/**/*_spec.rb']
spec.spec_opts = ['--options', '.specopts']
end

self.extra_deps = [
['ffi', '>=0.6.0']
]
task :spec => :check_dependencies
task :default => :spec

self.extra_dev_deps = [
['rspec', '>=1.2.9'],
['yard', '>=0.5.2']
]
begin
require 'yard'

self.spec_extras = {:has_rdoc => 'yard'}
YARD::Rake::YardocTask.new
rescue LoadError
task :yard do
abort "YARD is not available. In order to run yard, you must: gem install yard"
end
end

# vim: syntax=ruby
83 changes: 83 additions & 0 deletions ffi-bert.gemspec
@@ -0,0 +1,83 @@
# 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-bert}
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-02-11}
s.description = %q{FFI bindings to libBERT, a library for the encoding and decoding of BERT data.}
s.email = %q{postmodern.mod3@gmail.com}
s.extra_rdoc_files = [
"ChangeLog.md",
"LICENSE.txt",
"README.md"
]
s.files = [
".gitignore",
".specopts",
".yardopts",
"ChangeLog.md",
"LICENSE.txt",
"README.md",
"Rakefile",
"lib/bert.rb",
"lib/bert/atom_value.rb",
"lib/bert/bin_value.rb",
"lib/bert/data.rb",
"lib/bert/data_values.rb",
"lib/bert/dict.rb",
"lib/bert/dict_node.rb",
"lib/bert/encoder.rb",
"lib/bert/errno.rb",
"lib/bert/extensions.rb",
"lib/bert/extensions/tuple.rb",
"lib/bert/ffi.rb",
"lib/bert/list.rb",
"lib/bert/list_node.rb",
"lib/bert/regex_value.rb",
"lib/bert/string_value.rb",
"lib/bert/tuple.rb",
"lib/bert/types.rb",
"lib/bert/version.rb",
"spec/bert_spec.rb",
"spec/data_spec.rb",
"spec/spec_helper.rb"
]
s.has_rdoc = %q{yard}
s.homepage = %q{http://github.com/postmodern/ffi-bert}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{FFI bindings to libBERT.}
s.test_files = [
"spec/spec_helper.rb",
"spec/bert_spec.rb",
"spec/data_spec.rb",
"spec/encoder_spec.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<ffi>, [">= 0.6.0"])
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
s.add_development_dependency(%q<yard>, [">= 0.5.3"])
else
s.add_dependency(%q<ffi>, [">= 0.6.0"])
s.add_dependency(%q<rspec>, [">= 1.3.0"])
s.add_dependency(%q<yard>, [">= 0.5.3"])
end
else
s.add_dependency(%q<ffi>, [">= 0.6.0"])
s.add_dependency(%q<rspec>, [">= 1.3.0"])
s.add_dependency(%q<yard>, [">= 0.5.3"])
end
end

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
@@ -1,5 +1,5 @@
require 'rubygems'
gem 'rspec', '>=1.2.9'
gem 'rspec', '>=1.3.0'
require 'spec'

require 'bert/version'
Expand Down
10 changes: 0 additions & 10 deletions tasks/spec.rb

This file was deleted.

12 changes: 0 additions & 12 deletions tasks/yard.rb

This file was deleted.

0 comments on commit ac70e10

Please sign in to comment.