Skip to content
Browse files

Moved rake-related code from .gemspec to Rakefile

  • Loading branch information...
1 parent bef1170 commit ac3f7cb60b22de10a5348635cfed462aae16c41f @michaeldv committed Sep 5, 2012
Showing with 12 additions and 11 deletions.
  1. +10 −1 Rakefile
  2. +2 −10 awesome_print.gemspec
View
11 Rakefile
@@ -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
12 awesome_print.gemspec
@@ -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"]

0 comments on commit ac3f7cb

Please sign in to comment.
Something went wrong with that request. Please try again.