Sha256: 1d2fb76a8622a45196722d7810dadd20d318b94c21554493229b63f75ba3f0a8

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

#!./script/nake
# encoding: utf-8

begin
  require_relative "gems/environment.rb"
rescue LoadError
  abort "You have to install bundler and run gem bundle first!"
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))

ENV["PATH"] = "script:#{ENV["PATH"]}"

require "pupu/version"
require "nake/tasks/gem"
require "nake/tasks/spec"
require "nake/tasks/release"

begin
  load "code-cleaner.nake"
  Nake::Task["hooks:whitespace:install"].tap do |task|
    task.config[:path] = "script"
    task.config[:encoding] = "utf-8"
    task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$'
  end
rescue LoadError
  warn "If you want to contribute to Pupu, please install code-cleaner and then run ./tasks.rb hooks:whitespace:install to get Git pre-commit hook for removing trailing whitespace."
end

# Setup encoding, so all the operations
# with strings from another files will work
Encoding.default_internal = "utf-8"
Encoding.default_external = "utf-8"

Task[:build].config[:gemspec] = "pupu.gemspec"
Task[:prerelease].config[:gemspec] = "pupu.pre.gemspec"
Task[:release].config[:name] = "pupu"
Task[:release].config[:version] = Pupu::VERSION

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pupu-0.0.4.pre tasks.rb