Permalink
Browse files

Fixing Ruby 1.9.1 compatibility issues

  • Loading branch information...
1 parent e25b442 commit b3df3a29c60bf205e88eb5bf32663e9278c02d75 @spicycode spicycode committed Aug 21, 2009
Showing with 17 additions and 11 deletions.
  1. +14 −10 Rakefile
  2. +3 −1 lib/rspec/core/configuration.rb
View
@@ -1,22 +1,27 @@
require 'rubygems'
require 'rake'
+require 'yaml'
+
+$:.unshift 'lib'
+
+require 'rake/rdoctask'
+require 'rspec/core/rake_task'
begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rspec-core"
- gem.summary = "RSpec Core"
- gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
- gem.homepage = "http://github.com/rspec/core"
- gem.authors = ["David Chelimsky", "Chad Humphries"]
+ # require 'jeweler'
+ # Jeweler::Tasks.new do |gem|
+ # gem.name = "rspec-core"
+ # gem.summary = "RSpec Core"
+ # gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
+ # gem.homepage = "http://github.com/rspec/core"
+ # gem.authors = ["David Chelimsky", "Chad Humphries"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
+ # end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'lib/rspec/core/rake_task'
Rspec::Core::RakeTask.new :spec do |t|
t.pattern = "spec/**/*_spec.rb"
end
@@ -30,7 +35,6 @@ end
task :default => :spec
-require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
@@ -130,7 +130,9 @@ def files_to_run
options[:files_to_run]
end
- def files_to_run=(files)
+ def files_to_run=(*files)
+ files.flatten!
+
result = []
files.each do |file|
if File.directory?(file)

0 comments on commit b3df3a2

Please sign in to comment.