Rakefile in em-websocket-0.1.4 vs Rakefile in em-websocket-0.2.0

- old
+ new

@@ -1,31 +1,9 @@ -require 'rake' -require 'spec/rake/spectask' +require 'bundler' +Bundler::GemHelper.install_tasks -begin - require 'jeweler' - Jeweler::Tasks.new do |gemspec| - gemspec.name = "em-websocket" - gemspec.summary = "EventMachine based WebSocket server" - gemspec.description = gemspec.summary - gemspec.email = "ilya@igvita.com" - gemspec.homepage = "http://github.com/igrigorik/em-websocket" - gemspec.authors = ["Ilya Grigorik"] - gemspec.add_dependency("eventmachine", ">= 0.12.9") - gemspec.add_dependency("addressable", '>= 2.1.1') - gemspec.add_development_dependency('em-http-request', '>= 0.2.6') - gemspec.rubyforge_project = "em-websocket" - end +require 'rspec/core/rake_task' - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org" +RSpec::Core::RakeTask.new do |t| + t.rspec_opts = ["-c", "-f progress", "-r ./spec/helper.rb"] + t.pattern = 'spec/**/*_spec.rb' end - -task :default => :spec - -Spec::Rake::SpecTask.new do |t| - t.ruby_opts = ['-rtest/unit'] - t.spec_files = FileList['spec/**/*_spec.rb'] -end - -