Sha256: 8e1a2ec20f1067cd86bad3e9cf5220ed922e16d4362fc616b8d0db5cc98d5023

Contents?: true

Size: 1.88 KB

Versions: 36

Compression:

Stored size: 1.88 KB

Contents

# -*- ruby -*-
#
# Copyright (C) 2008-2013  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Encoding.default_internal = "UTF-8" if defined?(Encoding.default_internal)

require "erb"
require "yaml"
require "rubygems"
require "rake/clean"
require "yard"
require "bundler/gem_helper"
require "packnga"

task :default => :test

base_dir = File.dirname(__FILE__)
html_base_dir = File.join(base_dir, "doc", "html")

helper = Bundler::GemHelper.new(base_dir)
def helper.version_tag
  version
end

helper.install
spec = helper.gemspec

document_task = Packnga::DocumentTask.new(spec) do |task|
  task.original_language = "en"
  task.translate_languages = ["ja"]
end

Packnga::ReleaseTask.new(spec) do |task|
  test_unit_github_io_dir_candidates = [
    "../../www/test-unit.github.io",
  ]
  test_unit_github_io_dir = test_unit_github_io_dir_candidates.find do |dir|
    File.directory?(dir)
  end
  task.index_html_dir = test_unit_github_io_dir
end

def rake(*arguments)
  ruby($0, *arguments)
end

namespace :html do
  desc "Publish HTML to Web site."
  task :publish do
    # FIXME Do nothing for now
    #rsync_to_rubyforge(spec, "#{html_base_dir}/", "")
  end
end

task :test do
  ruby("test/run-test.rb")
end

Version data entries

36 entries across 34 versions & 7 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/test-unit-3.2.4/Rakefile
tdiary-5.0.5 vendor/bundle/gems/test-unit-3.2.3/Rakefile
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/test-unit-3.2.3/Rakefile
test-unit-3.2.4 Rakefile
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/test-unit-3.2.3/Rakefile
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/test-unit-3.2.3/Rakefile
tdiary-5.0.4 vendor/bundle/gems/test-unit-3.2.3/Rakefile
ruby-compiler-0.1.1 vendor/ruby/gems/test-unit-3.2.3/Rakefile
test-unit-3.2.3 Rakefile
test-unit-3.2.2 Rakefile
tdiary-5.0.2 vendor/bundle/gems/test-unit-3.2.1/Rakefile
test-unit-3.2.1 Rakefile
tdiary-5.0.1 vendor/bundle/gems/test-unit-3.2.0/Rakefile
windows-pr-1.2.5 vendor/bundle/ruby/2.2.0/gems/win32-api-1.6.0-universal-mingw32/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/Rakefile
test-unit-3.2.0 Rakefile
win32-api-1.6.0-universal-mingw32 vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/Rakefile
test-unit-3.1.9 Rakefile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/test-unit-3.1.8/Rakefile
test-unit-3.1.8 Rakefile
test-unit-3.1.7 Rakefile