Sha256: 306d2d3efa3738f78ac8ff8cc1b1ad38c8a47d1b57f0f945fd55d92322237ca5

Contents?: true

Size: 667 Bytes

Versions: 72

Compression:

Stored size: 667 Bytes

Contents

require "bundler/gem_tasks"
<% if config[:test] == "minitest" -%>
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

<% elsif config[:test] == "rspec" -%>
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

<% end -%>
<% if config[:ext] -%>
require "rake/extensiontask"

task :build => :compile

Rake::ExtensionTask.new("<%= config[:underscored_name] %>") do |ext|
  ext.lib_dir = "lib/<%= config[:namespaced_path] %>"
end

task :default => [:clobber, :compile, :<%= config[:test_task] %>]
<% else -%>
task :default => :<%= config[:test_task] %>
<% end -%>

Version data entries

72 entries across 72 versions & 3 rubygems

Version Path
bundler-1.16.0.pre.3 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.16.0.pre.2 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.16.0.pre.1 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.4 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.3 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.2 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.1 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.0 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.0.pre.4 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.0.pre.3 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.0.pre.2 lib/bundler/templates/newgem/Rakefile.tt
bundler-1.15.0.pre.1 lib/bundler/templates/newgem/Rakefile.tt