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
rubygems-update-3.1.6 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.5 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.0.9 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-2.7.11 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.4 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.3 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.0.8 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.0.7 bundler/lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.4 lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.3 lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.2 bundler/lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.2 lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.1 lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.1 bundler/lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.0 lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.0.pre3 bundler/lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.0.pre.3 lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.0.pre2 bundler/lib/bundler/templates/newgem/Rakefile.tt
rubygems-update-3.1.0.pre1 bundler/lib/bundler/templates/newgem/Rakefile.tt
bundler-2.1.0.pre.2 lib/bundler/templates/newgem/Rakefile.tt