Rakefile in socky-client-0.4.3 vs Rakefile in socky-client-0.5.0.beta1
- old
+ new
@@ -1,27 +1,11 @@
-require 'rake'
-require 'rake/clean'
-CLEAN.include %w(**/*.{log,rbc})
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
-task :default => :spec
-
-RSpec::Core::RakeTask.new(:spec) do |t|
+RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = ["-c", "-f progress"]
+ t.pattern = 'spec/**/*_spec.rb'
end
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "socky-client"
- gemspec.summary = "Socky is a WebSocket server and client for Ruby"
- gemspec.description = "Socky is a WebSocket server and client for Ruby"
- gemspec.email = "bernard.potocki@imanel.org"
- gemspec.homepage = "http://imanel.org/projects/socky"
- gemspec.authors = ["Bernard Potocki"]
- gemspec.add_dependency 'json'
- gemspec.add_development_dependency 'rspec', '~> 2.0'
- gemspec.files.exclude ".gitignore"
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
+task :default => :spec