-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
40 lines (31 loc) · 1.19 KB
/
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
# -*- ruby -*-
$LOAD_PATH << './lib'
require 'iudex-char-detector/base'
require 'rubygems'
gem 'rjack-tarpit', '~> 1.4'
require 'rjack-tarpit'
t = RJack::TarPit.new( 'iudex-char-detector',
Iudex::CharDetector::VERSION,
:no_assembly, :java_platform )
t.specify do |h|
h.developer( "David Kellum", "dek-oss@gravitext.com" )
h.extra_deps += [ [ 'iudex-core', '~> 1.1.0' ],
[ 'rjack-icu', '~> 4.8.0' ] ]
h.testlib = :minitest
h.extra_dev_deps += [ [ 'minitest', '~> 2.3' ],
[ 'rjack-logback', '~> 1.0' ] ]
end
file 'Manifest.txt' => [ 'pom.xml' ]
task :check_pom_version do
t.test_line_match( 'pom.xml', /<version>/, /#{t.version}/ )
end
task :check_history_version do
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
end
task :check_history_date do
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
end
task :gem => [ :check_pom_version, :check_history_version ]
task :tag => [ :check_pom_version, :check_history_version, :check_history_date ]
task :push => [ :check_history_date ]
t.define_tasks