Skip to content

Commit

Permalink
Killed that bothersome 'bones' dependency thank you.
Browse files Browse the repository at this point in the history
  • Loading branch information
elight authored and jm committed Nov 24, 2009
1 parent a4933e8 commit fde47e6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 33 deletions.
48 changes: 28 additions & 20 deletions Rakefile
@@ -1,26 +1,34 @@
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'

# Test::Unit::UI::VERBOSE
test_files_pattern = 'test/**/*_test.rb'
src_files_pattern = 'src/**/*.rb'

Rake::TestTask.new do |t|
src_files = Dir[src_files_pattern]
src_files.each { |f| puts f; require f[0...-3] }
t.pattern = test_files_pattern
t.verbose = false
end

begin
require 'bones'
Bones.setup
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "pending"
s.version = "0.1.1"
s.authors = ["Jeremy McAnally"]
s.email = "jeremymcanally@gmail.com"
s.summary = %q{pending lets you define a block of test code that is currently "pending" functionality, similar to RSpec's pending method}
s.homepage = %q{http://jeremymcanally.com}
s.description = %q{pending lets you define a block of test code that is currently "pending" functionality, similar to RSpec's pending method.}
end
rescue LoadError
load 'tasks/setup.rb'
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

ensure_in_path 'lib'
require 'pending'

task :default => 'spec:run'

PROJ.name = 'pending'
PROJ.authors = 'FIXME (who is writing this software)'
PROJ.email = 'FIXME (your e-mail)'
PROJ.url = 'FIXME (project homepage)'
PROJ.version = '0.1'
PROJ.rubyforge.name = 'pending'

PROJ.spec.opts << '--color'

# EOF
desc 'Default: run tests.'
task :default => 'test'
39 changes: 26 additions & 13 deletions pending.gemspec
@@ -1,33 +1,46 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{pending}
s.version = "0.1"
s.version = "0.1.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jeremy McAnally"]
s.date = %q{2008-12-30}
s.date = %q{2009-11-23}
s.description = %q{pending lets you define a block of test code that is currently "pending" functionality, similar to RSpec's pending method.}
s.email = %q{jeremymcanally@gmail.com}
s.extra_rdoc_files = ["History.txt", "README.txt"]
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/pending.rb", "tasks/ann.rake", "tasks/bones.rake", "tasks/gem.rake", "tasks/git.rake", "tasks/manifest.rake", "tasks/notes.rake", "tasks/post_load.rake", "tasks/rdoc.rake", "tasks/rubyforge.rake", "tasks/setup.rb", "tasks/spec.rake", "tasks/svn.rake", "tasks/test.rake", "test/test_pending.rb"]
s.has_rdoc = true
s.extra_rdoc_files = [
"README.txt"
]
s.files = [
"History.txt",
"Manifest.txt",
"README.txt",
"Rakefile",
"lib/pending.rb",
"pending.gemspec",
"test/test_pending.rb"
]
s.homepage = %q{http://jeremymcanally.com}
s.rdoc_options = ["--main", "README.txt"]
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{pending}
s.rubygems_version = %q{1.3.1}
s.rubygems_version = %q{1.3.5}
s.summary = %q{pending lets you define a block of test code that is currently "pending" functionality, similar to RSpec's pending method}
s.test_files = ["test/test_pending.rb"]
s.test_files = [
"test/test_pending.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<bones>, [">= 2.1.1"])
else
s.add_dependency(%q<bones>, [">= 2.1.1"])
end
else
s.add_dependency(%q<bones>, [">= 2.1.1"])
end
end

0 comments on commit fde47e6

Please sign in to comment.