forked from activeldap/activeldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
51 lines (38 loc) · 974 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- ruby -*-
require "thread"
require "find"
require "pathname"
require "erb"
require "yaml"
require "bundler/gem_helper"
require "packnga"
task :default => :test
project_name = "ActiveLdap"
base_dir = File.dirname(__FILE__)
helper = Bundler::GemHelper.new(base_dir)
def helper.version_tag
version
end
helper.install
spec = helper.gemspec
version = spec.version.to_s
require "gettext/tools/task"
GetText::Tools::Task.define do |task|
task.spec = spec
task.files -= Dir.glob("test/**/*.rb")
# TODO: Re-support extracting messages from LDAP schema by
# ActiveLdap::GetText::Parser.
end
Packnga::DocumentTask.new(spec) do |task|
task.original_language = "en"
task.translate_languages = ["ja"]
end
ranguba_org_dir = Dir.glob("{..,../../www}/activeldap.github.io").first
Packnga::ReleaseTask.new(spec) do |task|
task.index_html_dir = ranguba_org_dir
end
desc "Run tests"
task :test do
ruby("-I", "lib", "test/run-test.rb")
end
# vim: syntax=ruby