Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

jeweler stuff

  • Loading branch information...
commit f2ccb406f458fc794ae40f5263161a5360a10738 1 parent 9d1a540
@jakedouglas authored
View
4 Gemfile
@@ -0,0 +1,4 @@
+group :development do
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+end
View
15 Gemfile.lock
@@ -0,0 +1,15 @@
+GEM
+ specs:
+ git (1.2.5)
+ jeweler (1.6.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rake (0.8.7)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ jeweler (~> 1.6.4)
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Jake Douglas
+
+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
29 Rakefile
@@ -0,0 +1,29 @@
+require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+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 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ # dependencies defined in Gemfile
+ gem.name = "fnv"
+ gem.summary = "fnv1 and fnv1a hash functions in pure ruby"
+ gem.email = "jakecdouglas@gmail.com"
+ gem.homepage = "https://github.com/jakedouglas/fnv"
+ gem.authors = ["Jake Douglas"]
+ gem.license = "MIT"
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+task :default => :test
+
+task :test do
+ require "test/fnv_test.rb"
+end
View
2  test/fnv_test.rb
@@ -1,5 +1,5 @@
require "test/unit"
-require "fnv"
+require File.join(File.dirname(__FILE__), "..", "lib", "fnv")
class FnvTest < Test::Unit::TestCase
def test_fnv1_32
Please sign in to comment.
Something went wrong with that request. Please try again.