Permalink
Browse files

Initial commit to fakegem.

  • Loading branch information...
0 parents commit 180e0acb8447dfa6b3cef8f581d9d145502a21f2 @mojombo committed Feb 14, 2009
Showing with 120 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +20 −0 LICENSE
  3. +7 −0 README
  4. +51 −0 Rakefile
  5. +9 −0 features/fakegem.feature
  6. 0 features/steps/fakegem_steps.rb
  7. +13 −0 features/support/env.rb
  8. 0 lib/fakegem.rb
  9. +7 −0 test/fakegem_test.rb
  10. +10 −0 test/test_helper.rb
@@ -0,0 +1,3 @@
+*.sw?
+.DS_Store
+coverage
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2008 Tom Preston-Werner
+
+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.
7 README
@@ -0,0 +1,7 @@
+fakegem=======
+Description goes here.
+
+COPYRIGHT
+=========
+
+Copyright (c) 2008 Tom Preston-Werner. See LICENSE for details.
@@ -0,0 +1,51 @@
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "fakegem"
+ s.summary = %Q{TODO}
+ s.email = "tom@mojombo.com"
+ s.homepage = "http://github.com/mojombo/fakegem"
+ s.description = "TODO"
+ s.authors = ["Tom Preston-Werner"]
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'fakegem'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib' << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = false
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |t|
+ t.libs << 'test'
+ t.test_files = FileList['test/**/*_test.rb']
+ t.verbose = true
+ end
+rescue LoadError
+ puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+end
+
+begin
+ require 'cucumber/rake/task'
+ Cucumber::Rake::Task.new(:features)
+rescue LoadError
+ puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
+end
+
+task :default => :test
@@ -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
No changes.
@@ -0,0 +1,13 @@
+$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
+require 'fakegem'
+
+require 'test/unit/assertions'
+
+require 'test/unit/assertions'
+
+World do |world|
+
+ world.extend(Test::Unit::Assertions)
+
+ world
+end
No changes.
@@ -0,0 +1,7 @@
+require File.dirname(__FILE__) + '/test_helper'
+
+class FakegemTest < 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,0 +1,10 @@
+require 'rubygems'
+require 'test/unit'
+require 'shoulda'
+require 'mocha'
+
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'fakegem'
+
+class Test::Unit::TestCase
+end

0 comments on commit 180e0ac

Please sign in to comment.