script/console
script/destroy
script/generate
-test/test_helper.rb
-test/test_shinagawaseaside.rb
+spec/shinagawaseaside_spec.rb
+spec/spec.opts
+spec/spec_helper.rb
+tasks/rspec.rake
+samples/Rakefile
+
= shinagawaseaside
-* http://github.com/#{github_username}/#{project_name}
+* http://github.com/shokai/shinagawaseaside
== DESCRIPTION:
-FIX (describe your package)
+add rake tasks they start/stop tokyo tyrant server
-== FEATURES/PROBLEMS:
+== SYNOPSIS:
-* FIX (list of features or problems)
+ require 'rubygems'
+ require 'shinagawaseaside'
-== SYNOPSIS:
+ ttdb = [ { :name => 'users', :port => 20010},
+ { :name => 'videos',:port => 20011},
+ { :name => 'comments', :port => 20012} ]
+
+ ShinagawaSeaside::set(ttdb, :basedir => File.dirname(__FILE__)+'/ttdb')
- FIX (code sample of usage)
== REQUIREMENTS:
-* FIX (list of requirements)
+* TokyoTyrant
== INSTALL:
-* FIX (sudo gem install, anything else)
+* sudo gem install ShinagawaSeaside
== LICENSE:
(The MIT License)
-Copyright (c) 2010 FIXME full name
+Copyright (c) 2010 Sho Hashimoto
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
# Generate all the Rake tasks\r
# Run 'rake -T' to see list of generated tasks (from gem root directory)\r
$hoe = Hoe.spec 'shinagawaseaside' do\r
- self.developer 'FIXME full name', 'FIXME email'\r
- self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required\r
+ self.developer 'Sho Hashimoto', 'hashimoto@shokai.org'\r
+ # self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required\r
self.rubyforge_name = self.name # TODO this is default value\r
# self.extra_deps = [['activesupport','>= 2.0.2']]\r
\r
+++ /dev/null
-
-module ShinagawaSeaside::Task
-desc 'shinagawa'
-task 'shinagawa' do
- puts 'start shinagawa'
-end
+++ /dev/null
-
-puts 'load task'
-
--- /dev/null
+require File.dirname(__FILE__) + '/spec_helper.rb'
+
+# Time to add your specs!
+# http://rspec.info/
+describe "Place your specs here" do
+
+ it "find this spec in spec directory" do
+ # violated "Be sure to write your specs"
+ end
+
+end
--- /dev/null
+--colour
\ No newline at end of file
--- /dev/null
+begin
+ require 'spec'
+rescue LoadError
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
+ gem 'rspec'
+ require 'spec'
+end
+
+$:.unshift(File.dirname(__FILE__) + '/../lib')
+require 'shinagawaseaside'
--- /dev/null
+begin
+ require 'spec'
+rescue LoadError
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
+ require 'spec'
+end
+begin
+ require 'spec/rake/spectask'
+rescue LoadError
+ puts <<-EOS
+To use rspec for testing you must install rspec gem:
+ gem install rspec
+EOS
+ exit(0)
+end
+
+desc "Run the specs under spec/models"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+end
+++ /dev/null
-require 'stringio'
-require 'test/unit'
-require File.dirname(__FILE__) + '/../lib/shinagawaseaside'
+++ /dev/null
-require File.dirname(__FILE__) + '/test_helper.rb'\r
-\r
-class TestShinagawaseaside < Test::Unit::TestCase\r
-\r
- def setup\r
- end\r
- \r
- def test_truth\r
- assert true\r
- end\r
-end\r