Skip to content

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamcat4 committed Apr 7, 2010
1 parent 78eb1fe commit 09b6e26
Show file tree
Hide file tree
Showing 12 changed files with 227 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .document
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
17 changes: 17 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -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.
79 changes: 79 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
Empty file.
17 changes: 17 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -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)

9 changes: 9 additions & 0 deletions features/test4u.feature
Original file line number Diff line number Diff line change
@@ -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
Empty file added lib/test4u.rb
Empty file.
10 changes: 10 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions test/test_test4u.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 09b6e26

Please sign in to comment.