Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Harris committed Oct 21, 2009
0 parents commit 95430eb
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 0 deletions.
3 changes: 3 additions & 0 deletions History.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
=== 0.1.0 / 2009-10-21

* Initial version
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= Hamster
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dir["tasks/**/*.rb"].each do |task_file|
require task_file
end

task :default => [ :spec ]
Empty file added TODO
Empty file.
16 changes: 16 additions & 0 deletions hamster.gemspec
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"
s.homepage = "http://github.com/harukizaemon/hamster"
s.require_path = "lib"
s.files = Dir["lib/**/*", "spec/**/*", "tasks/**/*", "Rakefile"] + s.extra_rdoc_files
end
2 changes: 2 additions & 0 deletions lib/hamster.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'hamster/trie'
require 'hamster/version'
6 changes: 6 additions & 0 deletions lib/hamster/trie.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Hamster

class Trie
end

end
5 changes: 5 additions & 0 deletions lib/hamster/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Hamster

VERSION = "0.1.0".freeze

end
5 changes: 5 additions & 0 deletions spec/hamster/trie_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Hamster::Trie do

end
3 changes: 3 additions & 0 deletions spec/spec.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--colour
--loadby random
--backtrace
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 6 additions & 0 deletions tasks/spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 95430eb

Please sign in to comment.