Skip to content
Browse files

first commit

  • Loading branch information...
0 parents commit bfd60716fb3ed0187f82240a52ff70037f519b86 @txus committed Sep 6, 2011
Showing with 82 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +5 −0 Gemfile
  3. +15 −0 Rakefile
  4. +3 −0 Readme.md
  5. +3 −0 lib/shitdb.rb
  6. +3 −0 lib/shitdb/version.rb
  7. +25 −0 shitdb.gemspec
  8. +5 −0 test/shitdb_test.rb
  9. +19 −0 test/test_helper.rb
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
5 Gemfile
@@ -0,0 +1,5 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in shitdb.gemspec
+gemspec
+gem 'rake'
15 Rakefile
@@ -0,0 +1,15 @@
+begin
+ require 'bundler'
+ Bundler::Gem.install_helper_tasks
+rescue
+end
+
+require 'rake/testtask'
+desc "Run ShitDB tests"
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList['test/**/*_test.rb']
+ t.verbose = true
+end
+
+task :default => :test
3 Readme.md
@@ -0,0 +1,3 @@
+# ShitDB
+
+It all started [as a gist](https://gist.github.com/1193383).
3 lib/shitdb.rb
@@ -0,0 +1,3 @@
+module ShitDB
+ # Your code goes here...
+end
3 lib/shitdb/version.rb
@@ -0,0 +1,3 @@
+module ShitDB
+ VERSION = "0.0.1"
+end
25 shitdb.gemspec
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "shitdb/version"
+
+Gem::Specification.new do |s|
+ s.name = "shitdb"
+ s.version = ShitDB::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Josep M. Bach"]
+ s.email = ["josep.m.bach@gmail.com"]
+ s.homepage = "http://github.com/txus/shitdb"
+ s.summary = %q{Document-oriented database written in pure Ruby with lame performance as a key feature}
+ s.description = %q{Document-oriented database written in pure Ruby with lame performance as a key feature}
+
+ s.rubyforge_project = "shitdb"
+
+ s.add_development_dependency 'minitest'
+ s.add_development_dependency 'mocha'
+ s.add_development_dependency 'purdytest'
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+end
5 test/shitdb_test.rb
@@ -0,0 +1,5 @@
+require 'test_helper'
+
+describe ShitDB do
+ # Pending
+end
19 test/test_helper.rb
@@ -0,0 +1,19 @@
+require 'rubygems'
+
+gem 'minitest'
+require 'mocha'
+require 'minitest/spec'
+require 'purdytest'
+require 'minitest/autorun'
+
+require 'shitdb'
+
+class MiniTest::Unit::TestCase
+ include Mocha::API
+ def setup
+ mocha_setup
+ end
+ def teardown
+ mocha_teardown
+ end
+end

0 comments on commit bfd6071

Please sign in to comment.
Something went wrong with that request. Please try again.