├── lib └── fakegem.rb ├── features ├── steps │ └── fakegem_steps.rb ├── support │ └── env.rb └── fakegem.feature ├── .gitignore ├── VERSION.yml ├── README ├── test ├── test_helper.rb └── fakegem_test.rb ├── fakegem.gemspec ├── LICENSE └── Rakefile /lib/fakegem.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /features/steps/fakegem_steps.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.sw? 2 | .DS_Store 3 | coverage -------------------------------------------------------------------------------- /VERSION.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :patch: 1 3 | :major: 0 4 | :minor: 1 5 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | fakegem======= 2 | Description goes here. 3 | 4 | COPYRIGHT 5 | ========= 6 | 7 | Copyright (c) 2008 Tom Preston-Werner. See LICENSE for details. -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'test/unit' 3 | require 'shoulda' 4 | require 'mocha' 5 | 6 | $LOAD_PATH.unshift(File.dirname(__FILE__)) 7 | require 'fakegem' 8 | 9 | class Test::Unit::TestCase 10 | end 11 | -------------------------------------------------------------------------------- /test/fakegem_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/test_helper' 2 | 3 | class FakegemTest < Test::Unit::TestCase 4 | should "probably rename this file and start testing for real" do 5 | flunk "hey buddy, you should probably rename this file and start testing for real" 6 | end 7 | end -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- 1 | $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib') 2 | require 'fakegem' 3 | 4 | require 'test/unit/assertions' 5 | 6 | require 'test/unit/assertions' 7 | 8 | World do |world| 9 | 10 | world.extend(Test::Unit::Assertions) 11 | 12 | world 13 | end 14 | -------------------------------------------------------------------------------- /features/fakegem.feature: -------------------------------------------------------------------------------- 1 | Feature: something something 2 | In order to something something 3 | A user something something 4 | something something something 5 | 6 | Scenario: something something 7 | Given inspiration 8 | When I create a sweet new gem 9 | Then everyone should see how awesome I am 10 | -------------------------------------------------------------------------------- /fakegem.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | 3 | Gem::Specification.new do |s| 4 | s.name = %q{fakegem} 5 | s.version = "0.1.1" 6 | 7 | s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= 8 | s.authors = ["Tom Preston-Werner"] 9 | s.date = %q{2009-02-13} 10 | s.description = %q{TODO} 11 | s.email = %q{tom@mojombo.com} 12 | s.files = ["VERSION.yml", "lib/fakegem.rb", "test/fakegem_test.rb", "test/test_helper.rb"] 13 | s.has_rdoc = true 14 | s.homepage = %q{http://github.com/mojombo/fakegem} 15 | s.rdoc_options = ["--inline-source", "--charset=UTF-8"] 16 | s.require_paths = ["lib"] 17 | s.rubygems_version = %q{1.3.0} 18 | s.summary = %q{TODO} 19 | 20 | if s.respond_to? :specification_version then 21 | current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION 22 | s.specification_version = 2 23 | 24 | if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then 25 | else 26 | end 27 | else 28 | end 29 | end 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 Tom Preston-Werner 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | 3 | begin 4 | require 'jeweler' 5 | Jeweler::Tasks.new do |s| 6 | s.name = "fakegem" 7 | s.summary = %Q{TODO} 8 | s.email = "tom@mojombo.com" 9 | s.homepage = "http://github.com/mojombo/fakegem" 10 | s.description = "TODO" 11 | s.authors = ["Tom Preston-Werner"] 12 | end 13 | rescue LoadError 14 | puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" 15 | end 16 | 17 | require 'rake/rdoctask' 18 | Rake::RDocTask.new do |rdoc| 19 | rdoc.rdoc_dir = 'rdoc' 20 | rdoc.title = 'fakegem' 21 | rdoc.options << '--line-numbers' << '--inline-source' 22 | rdoc.rdoc_files.include('README*') 23 | rdoc.rdoc_files.include('lib/**/*.rb') 24 | end 25 | 26 | require 'rake/testtask' 27 | Rake::TestTask.new(:test) do |t| 28 | t.libs << 'lib' << 'test' 29 | t.pattern = 'test/**/*_test.rb' 30 | t.verbose = false 31 | end 32 | 33 | begin 34 | require 'rcov/rcovtask' 35 | Rcov::RcovTask.new do |t| 36 | t.libs << 'test' 37 | t.test_files = FileList['test/**/*_test.rb'] 38 | t.verbose = true 39 | end 40 | rescue LoadError 41 | puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" 42 | end 43 | 44 | begin 45 | require 'cucumber/rake/task' 46 | Cucumber::Rake::Task.new(:features) 47 | rescue LoadError 48 | puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" 49 | end 50 | 51 | task :default => :test 52 | --------------------------------------------------------------------------------