Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

First version

  • Loading branch information...
commit 09b6e26cc2817c334d593be9455577112accfca9 1 parent 78eb1fe
@dreamcat4 authored
View
5 .document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
39 .gitignore
@@ -0,0 +1,39 @@
+# rcov generated
+coverage
+
+# rdoc generated
+rdoc
+
+# yard generated
+doc
+.yardoc
+
+# jeweler generated
+pkg
+
+# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
+#
+# * Create a file at ~/.gitignore
+# * Include files you want ignored
+# * Run: git config --global core.excludesfile ~/.gitignore
+#
+# After doing this, these files will be ignored in all your git projects,
+# saving you from having to 'pollute' every project you touch with them
+#
+# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
+#
+# For MacOS:
+#
+#.DS_Store
+#
+# For TextMate
+#*.tmproj
+#tmtags
+#
+# For emacs:
+#*~
+#\#*
+#.\#*
+#
+# For vim:
+#*.swp
View
24 Gemfile
@@ -0,0 +1,24 @@
+# Add dependencies required to use your gem here.
+group :runtime do
+ #gem 'bundler', '>= 0.9.5'
+end
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development do
+
+ gem "bundler", ">= 0.9.5"
+
+ gem "jeweler", ">= 1.4.0"
+
+ gem "rcov", ">= 0"
+
+ gem "shoulda", ">= 0"
+
+ gem "cucumber", ">= 0"
+
+ gem "yard", ">= 0"
+
+ gem "grancher", ">= 0"
+
+end
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Dreamcat4
+
+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.
View
17 README.rdoc
@@ -0,0 +1,17 @@
+= test4u
+
+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) 2010 Dreamcat4. See LICENSE for details.
View
79 Rakefile
@@ -0,0 +1,79 @@
+require 'rubygems'
+require 'rake'
+
+
+require 'bundler'
+begin
+ Bundler.setup(:runtime, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+
+
+
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ gem.name = "test4u"
+ gem.summary = %Q{TODO: one-line summary of your gem}
+ gem.description = %Q{TODO: longer description of your gem}
+ gem.email = "dreamcat4@gmail.com"
+ gem.homepage = "http://github.com/dreamcat4/test4u"
+ gem.authors = ["Dreamcat4"]
+
+ # Have dependencies? Add them to Gemfile
+
+
+
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+end
+
+
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = %Q{test/**/test_*.rb}
+ test.verbose = true
+end
+
+require 'rcov/rcovtask'
+Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+
+
+
+require 'cucumber/rake/task'
+Cucumber::Rake::Task.new(:features)
+
+
+
+
+require 'yard'
+YARD::Rake::YardocTask.new do |t|
+ t.after = lambda { `touch doc/.nojekyll` }
+end
+
+
+
+
+Jeweler::GhpagesTasks.new do |ghpages|
+ ghpages.push_on_release = true
+ ghpages.set_repo_homepage = true
+ ghpages.user_github_com = false
+ ghpages.doc_task = "yard"
+ ghpages.keep_files = []
+ ghpages.map_paths = {
+ "doc" => "",
+ }
+end
+
+
+
+
+task :default => :test
View
0  features/step_definitions/test4u_steps.rb
No changes.
View
17 features/support/env.rb
@@ -0,0 +1,17 @@
+require 'bundler'
+begin
+ Bundler.setup(:runtime, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+
+$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
+require 'test4u'
+
+require 'test/unit/assertions'
+
+
+World(Test::Unit::Assertions)
+
View
9 features/test4u.feature
@@ -0,0 +1,9 @@
+Feature: something something
+ In order to something something
+ A user something something
+ something something something
+
+ Scenario: something something
+ Given inspiration
+ When I create a sweet new gem
+ Then everyone should see how awesome I am
View
0  lib/test4u.rb
No changes.
View
10 test/helper.rb
@@ -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 'test4u'
+
+class Test::Unit::TestCase
+end
View
7 test/test_test4u.rb
@@ -0,0 +1,7 @@
+require 'helper'
+
+class TestTest4u < 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
Please sign in to comment.
Something went wrong with that request. Please try again.