Permalink
Browse files

Updated release material and normalized naming.

  • Loading branch information...
lucsky committed May 31, 2010
1 parent 8a686ab commit bce7a5fb33ae4c01855969a11573fc3f7c089f04
View
21 LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010 Scott Chacon
+
+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.
View
@@ -0,0 +1,14 @@
+ffi-zlib
+========
+
+A ruby-ffi wrapper for the zlib library.
+
+Installation
+============
+
+ [sudo] gem install ffi-zlib
+
+Usage
+=====
+
+ffi-zlib being a very thin wrapper roughly reproducing the zlib header(s), you can simply refer to the zlib [manual](http://www.zlib.net/manual.html) for details and usage.
View
@@ -1,24 +0,0 @@
-# ffi-zlib
-
-A ruby-ffi wrapper for the zlib library.
-
-# Installation
-
-## From Rubyforge (the usual way)
-
- [sudo] gem install ffi-zlib
-
-## From GitHub hosted gems
-
- [sudo] gem sources -a http://gems.github.com # (you only need to do this once)
- [sudo] gem install lucsky-ffi-zlib
-
-## Building your own gems
-
- rake gem
- [sudo] gem install ffi-zlib-x.x.x.gem
-
-## Usage
-
-ffi-zlib being a very thin wrapper roughly reproducing the zlib header(s), you can simply refer to the zlib [manual](http://www.zlib.net/manual.html) for details and usage.
-
View
@@ -1,17 +1,8 @@
-require "rubygems"
-require 'rake/gempackagetask'
+require "rake/testtask"
-load 'ffi-zlib.gemspec'
+task :default => [:test]
-Rake::GemPackageTask.new($spec) do |p|
- p.need_tar = true
- p.need_zip = true
+Rake::TestTask.new do |task|
+ task.libs << "lib"
+ task.test_files = FileList["test/test*.rb"]
end
-
-task :test do
- require "test/unit"
- $LOAD_PATH << "lib"
- Dir[File.join("tests", "test_*.rb")].each { |t| require t }
-end
-
-task :default => :package
View
@@ -1,28 +1,20 @@
-$spec = Gem::Specification.new do |s|
+require "date"
+
+spec = Gem::Specification.new do |s|
s.name = "ffi-zlib"
s.version = "0.1.0"
s.summary = "FFI based wrapper for zlib."
- s.homepage = "http://github.com/lucsky/ffi-zlib/tree/master"
- s.description = "ffi-zlib provides a very thin wrapper around zlib using the ruby ffi library."
+ s.description = "ffi-zlib provides a very thin wrapper around zlib using the Ruby FFI library."
+ s.homepage = "http://github.com/lucsky/ffi-zlib"
s.platform = Gem::Platform::RUBY
s.author = "Luc Heinrich"
s.email = "luc@honk-honk.com"
- s.rubyforge_project = "ffi-zlib"
s.require_path = "lib"
s.has_rdoc = false
- s.test_files = %w( tests/test_checksums.rb
- tests/test_compress.rb
- tests/test_deflate.rb
- tests/test_gz.rb
- tests/test_misc.rb )
- s.files = %w( README.mdown
- Rakefile
- ffi-zlib.gemspec
- lib/ffi/zlib.rb
- tests/helper.rb
- tests/support/pale_blue_dot.txt ) + s.test_files
+ s.test_files = Dir["test/**/test_*.rb"]
+ s.files = Dir["lib/**/*"] + Dir["test/fixtures/*"] + ["README.md", "LICENSE"] + s.test_files
s.add_dependency("ffi")
end
File renamed without changes.
@@ -1,6 +1,6 @@
module Setup
def setup
- @data = File.read(File.join("tests", "support", "pale_blue_dot.txt"))
+ @data = File.read(File.join("test", "fixtures", "pale_blue_dot.txt"))
@buffer = FFI::Buffer.alloc_in(4096)
end
end
@@ -1,6 +1,6 @@
require "test/unit"
require "ffi/zlib"
-require "tests/helper.rb"
+require "test/helper.rb"
class TestAdler32 < Test::Unit::TestCase
include Setup
@@ -1,6 +1,6 @@
require "test/unit"
require "ffi/zlib"
-require "tests/helper.rb"
+require "test/helper.rb"
class TestCompress < Test::Unit::TestCase
include Setup
@@ -1,11 +1,11 @@
require "test/unit"
require "ffi/zlib"
-require "tests/helper.rb"
+require "test/helper.rb"
class TestDeflate < Test::Unit::TestCase
def setup
- @data = File.read(File.join("tests", "support", "pale_blue_dot.txt"))
+ @data = File.read(File.join("test", "fixtures", "pale_blue_dot.txt"))
@buffer = FFI::MemoryPointer.new(@data.length)
@buffer.put_string(0, @data)
end
@@ -1,3 +1,3 @@
require "test/unit"
require "ffi/zlib"
-require "tests/helper.rb"
+require "test/helper.rb"
@@ -1,6 +1,6 @@
require "test/unit"
require "ffi/zlib"
-require "tests/helper.rb"
+require "test/helper.rb"
class TestMisc < Test::Unit::TestCase

0 comments on commit bce7a5f

Please sign in to comment.