Skip to content
This repository
Browse code

remove unnecessaries from Rakefile

  • Loading branch information...
commit 022f9076a8599f5825e3af6e64f96cf249b7f7f8 1 parent 2d6feed
David Chelimsky authored January 25, 2010
17  Rakefile
@@ -24,7 +24,6 @@ begin
24 24
     gem.add_development_dependency "rspec-expectations", ">= #{Rspec::Core::Version::STRING}"
25 25
     gem.add_development_dependency "rspec-mocks", ">= #{Rspec::Core::Version::STRING}"
26 26
     gem.add_development_dependency('cucumber', '>= 0.5.3')
27  
-    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
28 27
   end
29 28
   Jeweler::GemcutterTasks.new
30 29
 rescue LoadError
@@ -32,16 +31,13 @@ rescue LoadError
32 31
 end
33 32
 
34 33
 begin
35  
-  Rspec::Core::RakeTask.new :spec do |t|
36  
-    t.pattern = "spec/**/*_spec.rb"
37  
-  end
  34
+  Rspec::Core::RakeTask.new :spec
38 35
 
39 36
   desc "Run all examples using rcov"
40 37
   Rspec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
41 38
     t.rcov = true
42 39
     t.rcov_opts =  %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"]
43 40
     t.rcov_opts << %[--no-html --aggregate coverage.data]
44  
-    t.pattern = "spec/**/*_spec.rb"
45 41
   end
46 42
 rescue LoadError
47 43
   puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-meta"
@@ -57,7 +53,7 @@ task :clobber do
57 53
   rm_rf 'coverage'
58 54
 end
59 55
 
60  
-if RUBY_VERSION == '1.9.1'
  56
+if RUBY_VERSION.to_f >= 1.9
61 57
   Cucumber::Rake::Task.new :features do |t|
62 58
     t.cucumber_opts = %w{--format progress}
63 59
   end
@@ -76,15 +72,8 @@ end
76 72
 
77 73
 
78 74
 Rake::RDocTask.new do |rdoc|
79  
-  if File.exist?('VERSION.yml')
80  
-    config = YAML.load(File.read('VERSION.yml'))
81  
-    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
82  
-  else
83  
-    version = ""
84  
-  end
85  
-
86 75
   rdoc.rdoc_dir = 'rdoc'
87  
-  rdoc.title = "rspec-core #{version}"
  76
+  rdoc.title = "rspec-core #{Rspec::Core::Version::STRING}"
88 77
   rdoc.rdoc_files.include('README*')
89 78
   rdoc.rdoc_files.include('lib/**/*.rb')
90 79
 end
5  rspec-core.gemspec
@@ -9,8 +9,9 @@ Gem::Specification.new do |s|
9 9
 
10 10
   s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11 11
   s.authors = ["David Chelimsky", "Chad Humphries"]
12  
-  s.date = %q{2010-01-24}
  12
+  s.date = %q{2010-01-25}
13 13
   s.default_executable = %q{rspec}
  14
+  s.description = %q{Rspec runner and example group classes}
14 15
   s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
15 16
   s.executables = ["rspec"]
16 17
   s.extra_rdoc_files = [
@@ -173,7 +174,7 @@ Gem::Specification.new do |s|
173 174
   s.require_paths = ["lib"]
174 175
   s.rubyforge_project = %q{rspec}
175 176
   s.rubygems_version = %q{1.3.5}
176  
-  s.summary = %q{Rspec runner and example group classes}
  177
+  s.summary = %q{rspec-core 2.0.0.a2}
177 178
   s.test_files = [
178 179
     "spec/resources/example_classes.rb",
179 180
      "spec/rspec/core/command_line_options_spec.rb",

0 notes on commit 022f907

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