Sha256: e9386828e0a24d7515931d117229d208b07f5a83070404bd6c029538181dd48e

Contents?: true

Size: 901 Bytes

Versions: 1

Compression:

Stored size: 901 Bytes

Contents

# encoding: utf-8

require_relative "lib/simple-templater/version"

# ENV setup for external commands
ENV["RUBYLIB"] = Dir["gems/gems/*/lib"].join(":")
$LOAD_PATH.clear.push(*Dir["gems/gems/*/lib"])

# encoding
Encoding.default_internal = "utf-8"
Encoding.default_external = "utf-8"

# http://support.runcoderun.com/faqs/builds/how-do-i-run-rake-with-trace-enabled
Rake.application.options.trace = true

task :bundle do
  # NOTE: the sense of the checkout is to avoid overwriting our changes in scripts
  exec "gem bundle --cached && git checkout script"
end

# default task for RunCodeRun.com
task :default => [:bundle, :spec]

# load tasks
Dir["tasks/*.rake"].each do |taskfile|
  begin
    load File.join(Dir.pwd, taskfile)
  rescue Exception => exception
    puts "Exception #{exception.class} occured during loading #{taskfile}:"
    puts exception.message
    puts exception.backtrace
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple-templater-0.1.pre Rakefile