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:
parent
bef11700b5
commit
ac3f7cb60b
2 changed files with 12 additions and 11 deletions
11
Rakefile
11
Rakefile
|
@ -1,2 +1,11 @@
|
||||||
require 'bundler'
|
require "bundler"
|
||||||
Bundler::GemHelper.install_tasks
|
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
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,6 @@
|
||||||
require "rake"
|
require "rake"
|
||||||
require File.dirname(__FILE__) + "/lib/awesome_print/version"
|
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|
|
Gem::Specification.new do |s|
|
||||||
s.name = "awesome_print"
|
s.name = "awesome_print"
|
||||||
s.version = AwesomePrint.version
|
s.version = AwesomePrint.version
|
||||||
|
@ -27,8 +19,8 @@ Gem::Specification.new do |s|
|
||||||
|
|
||||||
s.rubyforge_project = "awesome_print"
|
s.rubyforge_project = "awesome_print"
|
||||||
|
|
||||||
s.files = Rake::FileList["[A-Z]*", "lib/**/*.rb", "spec/*", ".gitignore"]
|
s.files = Dir["[A-Z]*[^~]"] + Dir["lib/**/*.rb"] + Dir["spec/*"] + [".gitignore"]
|
||||||
s.test_files = Rake::FileList["spec/*"]
|
s.test_files = Dir["spec/*"]
|
||||||
s.executables = []
|
s.executables = []
|
||||||
s.require_paths = ["lib"]
|
s.require_paths = ["lib"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue