Rakefile in parameters-0.1.9 vs Rakefile in parameters-0.2.0
- old
+ new
@@ -1,23 +1,41 @@
-# -*- ruby -*-
-
require 'rubygems'
-require 'hoe'
-require 'hoe/signing'
+require 'rake'
+require './lib/parameters/version.rb'
-Hoe.plugin :yard
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = 'parameters'
+ gem.version = Parameters::VERSION
+ gem.summary = %Q{Allows you to add annotated variables to your classes}
+ gem.description = %Q{Parameters allows you to add annotated variables to your classes which may have configurable default values.}
+ gem.email = 'postmodern.mod3@gmail.com'
+ gem.homepage = 'http://github.com/postmodern/parameters'
+ gem.authors = ['Postmodern']
+ gem.add_development_dependency 'rspec', '>= 1.3.0'
+ gem.add_development_dependency 'yard', '>= 0.5.3'
+ gem.has_rdoc = 'yard'
+ end
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
-Hoe.spec('parameters') do
- self.developer('Postmodern','postmodern.mod3@gmail.com')
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs += ['lib', 'spec']
+ spec.spec_files = FileList['spec/**/*_spec.rb']
+ spec.spec_opts = ['--options', '.specopts']
+end
- self.rspec_options += ['--colour', '--format', 'specdoc']
+task :spec => :check_dependencies
+task :default => :spec
- self.yard_options += ['--protected']
- self.remote_yard_dir = '/'
+begin
+ require 'yard'
- self.extra_dev_deps += [
- ['rspec', '>=1.3.0'],
- ['yard', '>=0.5.3']
- ]
+ YARD::Rake::YardocTask.new
+rescue LoadError
+ task :yard do
+ abort "YARD is not available. In order to run yard, you must: gem install yard"
+ end
end
-
-# vim: syntax=Ruby