Browse files

Use Bundler gem conventions.

  • Loading branch information...
1 parent 928311d commit 0341449c788668f79ab60a228fd06a61996c63e1 @gabebw gabebw committed Nov 12, 2011
Showing with 16 additions and 38 deletions.
  1. +1 −13 Rakefile
  2. +0 −1 lib/shoulda/version.rb
  3. +15 −24 shoulda.gemspec
View
14 Rakefile
@@ -1,18 +1,7 @@
require 'rubygems'
-require 'bundler/setup'
-require 'rake'
-require 'rake/gempackagetask'
+require 'bundler/gem_tasks'
require 'cucumber/rake/task'
-$LOAD_PATH.unshift("lib")
-require 'shoulda/version'
-
-eval("$specification = begin; #{IO.read('shoulda.gemspec')}; end")
-Rake::GemPackageTask.new $specification do |pkg|
- pkg.need_tar = true
- pkg.need_zip = true
-end
-
desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_package]
@@ -23,4 +12,3 @@ end
desc 'Default: run cucumber features'
task :default => [:cucumber]
-
View
1 lib/shoulda/version.rb
@@ -1,4 +1,3 @@
module Shoulda
VERSION = "3.0.0.beta2"
end
-
View
39 shoulda.gemspec
@@ -2,36 +2,27 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
require 'shoulda/version'
Gem::Specification.new do |s|
- s.name = %q{shoulda}
- s.version = Shoulda::VERSION
+ s.name = 'shoulda'
+ s.version = Shoulda::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Tammer Saleh", "Joe Ferris", "Ryan McGeary", "Dan Croak",
+ "Matt Jankowski"]
+ s.email = %q{support@thoughtbot.com}
+ s.homepage = %q{https://github.com/thoughtbot/shoulda}
+ s.summary = %q{Making tests easy on the fingers and eyes}
+ s.description = %q{Making tests easy on the fingers and eyes}
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Tammer Saleh", "Joe Ferris", "Ryan McGeary", "Dan Croak",
- "Matt Jankowski"]
- s.date = Time.now.strftime("%Y-%m-%d")
- s.email = %q{support@thoughtbot.com}
- s.extra_rdoc_files = ["README.md", "CONTRIBUTION_GUIDELINES.rdoc"]
- s.files = Dir["[A-Z]*", "{lib}/**/*"]
- s.homepage = %q{https://github.com/thoughtbot/shoulda}
- s.rdoc_options = ["--line-numbers", "--main", "README.md"]
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.rubyforge_project = %q{shoulda}
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{Making tests easy on the fingers and eyes}
- s.description = %q{Making tests easy on the fingers and eyes}
+
+ s.add_dependency("shoulda-context", "~> 1.0.0.beta1")
+ s.add_dependency("shoulda-matchers", "~> 1.0.0.beta1")
s.add_development_dependency("rails", "3.0.3")
s.add_development_dependency("sqlite3-ruby", "~> 1.3.2")
s.add_development_dependency("rspec-rails", "~> 2.3.1")
- s.add_development_dependency("ruby-debug", "~> 0.10.4")
s.add_development_dependency("cucumber", "~> 0.10.0")
s.add_development_dependency("aruba", "~> 0.2.7")
-
- s.add_runtime_dependency("shoulda-context", "~> 1.0.0.beta1")
- s.add_runtime_dependency("shoulda-matchers", "~> 1.0.0.beta1")
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
- else
- end
end

0 comments on commit 0341449

Please sign in to comment.