1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Moved rake-related code from .gemspec to Rakefile

This commit is contained in:
Mike Dvorkin 2012-09-05 17:52:22 -07:00
parent bef11700b5
commit ac3f7cb60b
2 changed files with 12 additions and 11 deletions

View file

@ -1,2 +1,11 @@
require 'bundler'
require "bundler"
Bundler::GemHelper.install_tasks
task :default => :spec
desc "Run all awesome_print gem specs"
task :spec do
# Run plain rspec command without RSpec::Core::RakeTask overrides.
exec "rspec -c spec"
end

View file

@ -6,14 +6,6 @@
require "rake"
require File.dirname(__FILE__) + "/lib/awesome_print/version"
task :default => :spec
desc "Run all awesome_print gem specs"
task :spec do
# Run plain rspec command without RSpec::Core::RakeTask overrides.
exec "rspec -c spec"
end
Gem::Specification.new do |s|
s.name = "awesome_print"
s.version = AwesomePrint.version
@ -27,8 +19,8 @@ Gem::Specification.new do |s|
s.rubyforge_project = "awesome_print"
s.files = Rake::FileList["[A-Z]*", "lib/**/*.rb", "spec/*", ".gitignore"]
s.test_files = Rake::FileList["spec/*"]
s.files = Dir["[A-Z]*[^~]"] + Dir["lib/**/*.rb"] + Dir["spec/*"] + [".gitignore"]
s.test_files = Dir["spec/*"]
s.executables = []
s.require_paths = ["lib"]