Sha256: e6245690fa150817d45ef34be55abbb14093e907e0ad08c0a5fdc73b1816b2c4
Contents?: true
Size: 1.83 KB
Versions: 10
Compression:
Stored size: 1.83 KB
Contents
%w[rubygems rake rake/clean fileutils newgem].each { |f| require f } $:.unshift(File.join(File.dirname(__FILE__), 'lib')) require 'lib/version.rb' require 'rhodes-build' task :default => [:spec] # Generate all the Rake tasks # Run 'rake -T' to see list of generated tasks (from gem root directory) $hoe = Hoe.new('rhodes-framework', RhodesFramework::VERSION) do |p| p.developer('Rhomobile Dev', 'dev@rhomobile.com') p.changes = p.paragraphs_of("../History.txt", 0..1).join("\n\n") if File.exists? "../History.txt" #p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required p.rubyforge_name = p.name # TODO this is default value p.extra_deps = [ ['sqlite3-ruby','= 1.2.3'], ['rcov'], ['rspec'], ['diff-lcs'], ['extlib'], ['newgem'], ['activesupport'] ] p.clean_globs |= %w[**/.DS_Store tmp *.log] path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') p.rsync_args = '-av --delete --ignore-errors' p.test_globs = '' p.summary = "rhodes-framework #{RhodesFramework::VERSION}" end require 'newgem/tasks' # load /tasks/*.rake # remove test task TODO: why does this run anyway? Rake.application.remove_task(:test) Dir['tasks/**/*.rake'].each { |t| load t } desc "Run the specs under spec" Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "spec/spec.opts"] t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true t.rcov_opts = ['--include', '"lib/rhom/*,lib/rho/*"', '-x', 'spec,gems,sqlite3/*,lib/date.rb,lib/rational.rb,lib/time.rb,lib/find.rb,config.rb,lib/erb.rb,lib/singleton.rb,lib/pairparser.rb', '--text-report', '--html'] end
Version data entries
10 entries across 10 versions & 1 rubygems