]> git.r.bdr.sh - rbdr/cologne/commitdiff
Initial commit to cobalt.
authorkazuyoshi tlacaelel <redacted>
Fri, 2 Mar 2012 20:51:42 +0000 (14:51 -0600)
committerkazuyoshi tlacaelel <redacted>
Fri, 2 Mar 2012 20:51:42 +0000 (14:51 -0600)
.document [new file with mode: 0644]
.gitignore [new file with mode: 0644]
README.rdoc [new file with mode: 0644]
Rakefile [new file with mode: 0644]
lib/cobalt.rb [new file with mode: 0644]
test/helper.rb [new file with mode: 0644]
test/test_cobalt.rb [new file with mode: 0644]

diff --git a/.document b/.document
new file mode 100644 (file)
index 0000000..ecf3673
--- /dev/null
+++ b/.document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c1e0daf
--- /dev/null
@@ -0,0 +1,21 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
diff --git a/README.rdoc b/README.rdoc
new file mode 100644 (file)
index 0000000..60bf9ed
--- /dev/null
@@ -0,0 +1,17 @@
+= cobalt
+
+Description goes here.
+
+== Note on Patches/Pull Requests
+* Fork the project.
+* Make your feature addition or bug fix.
+* Add tests for it. This is important so I don't break it in a
+  future version unintentionally.
+* Commit, do not mess with rakefile, version, or history.
+  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
+* Send me a pull request. Bonus points for topic branches.
+
+== Copyright
+
+Copyright (c) 2012 kazuyoshi tlacaelel. See LICENSE for details.
diff --git a/Rakefile b/Rakefile
new file mode 100644 (file)
index 0000000..fc46068
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,53 @@
+require 'rubygems'
+require 'rake'
+
+begin
+  require 'jeweler'
+  Jeweler::Tasks.new do |gem|
+    gem.name = "cobalt"
+    gem.summary = %Q{TODO: one-line summary of your gem}
+    gem.description = %Q{TODO: longer description of your gem}
+    gem.email = "kazu.dev@gmail.com"
+    gem.homepage = "http://github.com/ktlacaelel/cobalt"
+    gem.authors = ["kazuyoshi tlacaelel"]
+    gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+  end
+  Jeweler::GemcutterTasks.new
+rescue LoadError
+  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+  test.libs << 'lib' << 'test'
+  test.pattern = 'test/**/test_*.rb'
+  test.verbose = true
+end
+
+begin
+  require 'rcov/rcovtask'
+  Rcov::RcovTask.new do |test|
+    test.libs << 'test'
+    test.pattern = 'test/**/test_*.rb'
+    test.verbose = true
+  end
+rescue LoadError
+  task :rcov do
+    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+  end
+end
+
+task :test => :check_dependencies
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+  version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+  rdoc.rdoc_dir = 'rdoc'
+  rdoc.title = "cobalt #{version}"
+  rdoc.rdoc_files.include('README*')
+  rdoc.rdoc_files.include('lib/**/*.rb')
+end
diff --git a/lib/cobalt.rb b/lib/cobalt.rb
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/helper.rb b/test/helper.rb
new file mode 100644 (file)
index 0000000..c6912c3
--- /dev/null
@@ -0,0 +1,10 @@
+require 'rubygems'
+require 'test/unit'
+require 'shoulda'
+
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'cobalt'
+
+class Test::Unit::TestCase
+end
diff --git a/test/test_cobalt.rb b/test/test_cobalt.rb
new file mode 100644 (file)
index 0000000..63ac8c6
--- /dev/null
@@ -0,0 +1,7 @@
+require 'helper'
+
+class TestCobalt < Test::Unit::TestCase
+  should "probably rename this file and start testing for real" do
+    flunk "hey buddy, you should probably rename this file and start testing for real"
+  end
+end