tasks/setup.rb in acts_as_markup-1.2.1 vs tasks/setup.rb in acts_as_markup-1.3.0
- old
+ new
@@ -16,40 +16,24 @@
:changes => nil,
:authors => nil,
:email => nil,
:url => "\000",
:version => ENV['VERSION'] || '0.0.0',
- :exclude => %w(tmp$ bak$ ~$ CVS \.svn/ \.git ^pkg/),
+ :exclude => %w(tmp$ bak$ ~$ CVS \.svn/ \.git/ ^pkg/),
:release_name => ENV['RELEASE'],
# System Defaults
:ruby_opts => %w(-w),
:libs => [],
:history_file => 'CHANGELOG',
:manifest_file => 'Manifest.txt',
:readme_file => 'README.rdoc',
- # Announce
- :ann => OpenStruct.new(
- :file => 'announcement.txt',
- :text => nil,
- :paragraphs => [],
- :email => {
- :from => nil,
- :to => %w(ruby-talk@ruby-lang.org),
- :server => 'localhost',
- :port => 25,
- :domain => ENV['HOSTNAME'],
- :acct => nil,
- :passwd => nil,
- :authtype => :plain
- }
- ),
-
# Gem Packaging
:gem => OpenStruct.new(
:dependencies => [],
+ :development_dependencies => [],
:executables => nil,
:extensions => FileList['ext/**/extconf.rb'],
:files => nil,
:need_tar => true,
:need_zip => false,
@@ -64,13 +48,11 @@
),
# Rcov
:rcov => OpenStruct.new(
:dir => 'coverage',
- :opts => %w[--sort coverage -T],
- :threshold => 90.0,
- :threshold_exact => false
+ :opts => %w[--sort coverage -T --no-html]
),
# Rdoc
:rdoc => OpenStruct.new(
:opts => [],
@@ -84,35 +66,22 @@
# Rubyforge
:rubyforge => OpenStruct.new(
:name => "\000"
),
- # Rspec
- :spec => OpenStruct.new(
- :files => FileList['spec/**/*_spec.rb'],
- :opts => []
- ),
-
- # Subversion Repository
- :svn => OpenStruct.new(
- :root => nil,
- :path => '',
- :trunk => 'trunk',
- :tags => 'tags',
- :branches => 'branches'
- ),
-
# Test::Unit
:test => OpenStruct.new(
- :files => FileList['test/**/test_*.rb'],
+ :files => FileList['test/**/*_test.rb'],
:file => 'test/all.rb',
:opts => []
)
)
# Load the other rake files in the tasks folder
-rakefiles = Dir.glob('tasks/*.rake').sort
-rakefiles.unshift(rakefiles.delete('tasks/post_load.rake')).compact!
+tasks_dir = File.expand_path(File.dirname(__FILE__))
+post_load_fn = File.join(tasks_dir, 'post_load.rake')
+rakefiles = Dir.glob(File.join(tasks_dir, '*.rake')).sort
+rakefiles.unshift(rakefiles.delete(post_load_fn)).compact!
import(*rakefiles)
# Setup the project libraries
%w(lib ext).each {|dir| PROJ.libs << dir if test ?d, dir}