Sha256: 88bac00757900202c97e3202d45e1e93adb346cbbfe221150120046d9259ff22

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

#!/usr/bin/env nake
# encoding: utf-8

begin
  require File.expand_path("../.bundle/environment", __FILE__)
rescue LoadError
  require "bundler"
  Bundler.setup
end

$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))

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

require_relative "lib/formidable/version"

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 Form, 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] = "form.gemspec"
Task[:prerelease].config[:gemspec] = "form.pre.gemspec"
Task[:release].config[:name] = "form"
Task[:release].config[:version] = Formidable::VERSION

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formidable-0.1.2 tasks.rb
formidable-0.1.1 tasks.rb
formidable-0.1 tasks.rb
formidable-0.0.1 tasks.rb