Rakefile in loquacious-1.3.1 vs Rakefile in loquacious-1.4.0
- old
+ new
@@ -1,44 +1,37 @@
-# Look in the tasks/setup.rb file for the various options that can be
-# configured in this Rakefile. The .rake files in the tasks directory
-# are where the options are used.
begin
require 'bones'
- Bones.setup
rescue LoadError
- begin
- load 'tasks/setup.rb'
- rescue LoadError
- raise RuntimeError, '### please install the "bones" gem ###'
- end
+ abort '### please install the "bones" gem ###'
end
ensure_in_path 'lib'
require 'loquacious'
task :default => 'spec:specdoc'
+task 'gem:release' => 'spec:run'
-PROJ.name = 'loquacious'
-PROJ.authors = 'Tim Pease'
-PROJ.email = 'tim.pease@gmail.com'
-PROJ.url = 'http://codeforpeople.rubyforge.org/loquacious'
-PROJ.version = Loquacious::VERSION
-PROJ.readme_file = 'README.rdoc'
-PROJ.ignore_file = '.gitignore'
-PROJ.rubyforge.name = 'codeforpeople'
-PROJ.rdoc.remote_dir = 'loquacious'
+Bones {
+ name 'loquacious'
+ authors 'Tim Pease'
+ email 'tim.pease@gmail.com'
+ url 'http://gemcutter.org/gems/loquacious'
+ version Loquacious::VERSION
+ readme_file 'README.rdoc'
+ ignore_file '.gitignore'
+ ruby_opts %w[-W0]
+ spec.opts << '--color'
-PROJ.spec.opts << '--color'
-PROJ.ruby_opts = %w[-W0]
+ depend_on 'rspec', :development => true
+ depend_on 'bones-git', :development => true
+ depend_on 'bones-extras', :development => true
-PROJ.ann.email[:server] = 'smtp.gmail.com'
-PROJ.ann.email[:port] = 587
-PROJ.ann.email[:from] = 'Tim Pease'
+ use_gmail
+ enable_sudo
+}
+
task 'ann:prereqs' do
- PROJ.name = 'Loquacious'
+ Bones.config.name = 'Loquacious'
end
-depend_on 'rspec'
-
-# EOF