diff --git a/History.rdoc b/History.rdoc new file mode 100644 index 00000000..a9a39746 --- /dev/null +++ b/History.rdoc @@ -0,0 +1,3 @@ +=== 0.1.0 / 2009-10-21 + +* Initial version diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..deb0f259 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2009 Simon Harris + +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. diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 00000000..d06d6882 --- /dev/null +++ b/README.rdoc @@ -0,0 +1 @@ += Hamster diff --git a/Rakefile b/Rakefile new file mode 100644 index 00000000..4568ac8f --- /dev/null +++ b/Rakefile @@ -0,0 +1,5 @@ +Dir["tasks/**/*.rb"].each do |task_file| + require task_file +end + +task :default => [ :spec ] diff --git a/TODO b/TODO new file mode 100644 index 00000000..e69de29b diff --git a/hamster.gemspec b/hamster.gemspec new file mode 100644 index 00000000..33d8a7e4 --- /dev/null +++ b/hamster.gemspec @@ -0,0 +1,16 @@ +require 'lib/hamster/version' + +Gem::Specification.new do |s| + s.name = "Hamster" + s.version = Hamster::VERSION + s.platform = Gem::Platform::RUBY + s.has_rdoc = true + s.extra_rdoc_files = ["README.rdoc", "History.rdoc", "TODO", "LICENSE"] + s.summary = "Hash Array Mapped Tries for Ruby" + s.description = s.summary + s.author = "Simon Harris" + s.email = "haruki.zaemon@gmail.com" + s.homepage = "http://github.com/harukizaemon/hamster" + s.require_path = "lib" + s.files = Dir["lib/**/*", "spec/**/*", "tasks/**/*", "Rakefile"] + s.extra_rdoc_files +end diff --git a/lib/hamster.rb b/lib/hamster.rb new file mode 100644 index 00000000..3c678ff7 --- /dev/null +++ b/lib/hamster.rb @@ -0,0 +1,2 @@ +require 'hamster/trie' +require 'hamster/version' diff --git a/lib/hamster/trie.rb b/lib/hamster/trie.rb new file mode 100644 index 00000000..d0820a88 --- /dev/null +++ b/lib/hamster/trie.rb @@ -0,0 +1,6 @@ +module Hamster + + class Trie + end + +end diff --git a/lib/hamster/version.rb b/lib/hamster/version.rb new file mode 100644 index 00000000..429235f0 --- /dev/null +++ b/lib/hamster/version.rb @@ -0,0 +1,5 @@ +module Hamster + + VERSION = "0.1.0".freeze + +end diff --git a/spec/hamster/trie_spec.rb b/spec/hamster/trie_spec.rb new file mode 100644 index 00000000..075edc72 --- /dev/null +++ b/spec/hamster/trie_spec.rb @@ -0,0 +1,5 @@ +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe Hamster::Trie do + +end diff --git a/spec/spec.opts b/spec/spec.opts new file mode 100644 index 00000000..7d2417be --- /dev/null +++ b/spec/spec.opts @@ -0,0 +1,3 @@ +--colour +--loadby random +--backtrace diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 00000000..29f8535e --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,7 @@ +require 'rubygems' + +# Support running specs with "rake spec" and "spec" +lib = File.expand_path(File.dirname(__FILE__) + '/../lib') +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) + +require 'hamster' diff --git a/tasks/spec.rb b/tasks/spec.rb new file mode 100644 index 00000000..88d595da --- /dev/null +++ b/tasks/spec.rb @@ -0,0 +1,6 @@ +require "spec/rake/spectask" + +desc "Run specifications" +Spec::Rake::SpecTask.new(:spec) do |t| + t.spec_opts << "--options" << "spec/spec.opts" if File.exists?("spec/spec.opts") +end