rjack-icu 4.8.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +2 -0
- data/Manifest.txt +10 -0
- data/README.rdoc +65 -0
- data/Rakefile +41 -0
- data/assembly.xml +15 -0
- data/lib/rjack-icu.rb +35 -0
- data/lib/rjack-icu/base.rb +36 -0
- data/lib/rjack-icu/icu4j-4.8.jar +0 -0
- data/pom.xml +47 -0
- data/test/test_icu.rb +40 -0
- metadata +79 -0
data/History.rdoc
ADDED
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
= rjack-icu
|
2
|
+
|
3
|
+
* http://rjack.rubyforge.org/icu
|
4
|
+
* http://rjack.rubyforge.org
|
5
|
+
* https://github.com/dekellum/rjack
|
6
|
+
|
7
|
+
== Description
|
8
|
+
|
9
|
+
A gem packaging of {ICU4J}[http://site.icu-project.org/].
|
10
|
+
|
11
|
+
== License
|
12
|
+
|
13
|
+
=== rjack-icu gem
|
14
|
+
|
15
|
+
Copyright (c) 2011 David Kellum
|
16
|
+
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
18
|
+
a copy of this software and associated documentation files (the
|
19
|
+
"Software"), to deal in the Software without restriction, including
|
20
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
21
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
22
|
+
permit persons to whom the Software is furnished to do so, subject to
|
23
|
+
the following conditions:
|
24
|
+
|
25
|
+
The above copyright notice and this permission notice shall be included in
|
26
|
+
all copies or substantial portions of the Software.
|
27
|
+
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
29
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
30
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
31
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
32
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
33
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
34
|
+
THE SOFTWARE.
|
35
|
+
|
36
|
+
=== ICU4J (java)
|
37
|
+
|
38
|
+
Copyright (c) 1995-2011 International Business Machines Corporation and others
|
39
|
+
|
40
|
+
All rights reserved.
|
41
|
+
|
42
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
43
|
+
a copy of this software and associated documentation files (the
|
44
|
+
"Software"), to deal in the Software without restriction, including
|
45
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
46
|
+
distribute, and/or sell copies of the Software, and to permit persons
|
47
|
+
to whom the Software is furnished to do so, provided that the above
|
48
|
+
copyright notice(s) and this permission notice appear in all copies of
|
49
|
+
the Software and that both the above copyright notice(s) and this
|
50
|
+
permission notice appear in supporting documentation.
|
51
|
+
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
53
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
54
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
55
|
+
OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
56
|
+
HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
|
57
|
+
SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
|
58
|
+
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
|
59
|
+
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
60
|
+
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
61
|
+
|
62
|
+
Except as contained in this notice, the name of a copyright holder
|
63
|
+
shall not be used in advertising or otherwise to promote the sale, use
|
64
|
+
or other dealings in this Software without prior written authorization
|
65
|
+
of the copyright holder.
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
$LOAD_PATH << './lib'
|
4
|
+
require 'rjack-icu/base'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'rjack-tarpit', '~> 1.3.2'
|
8
|
+
require 'rjack-tarpit'
|
9
|
+
|
10
|
+
include RJack
|
11
|
+
|
12
|
+
t = TarPit.new( 'rjack-icu', ICU::VERSION, :java_platform )
|
13
|
+
|
14
|
+
t.specify do |h|
|
15
|
+
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
16
|
+
h.rdoc_locations << "dekellum@rubyforge.org:/var/www/gforge-projects/rjack/icu"
|
17
|
+
end
|
18
|
+
|
19
|
+
t.jars = [ "icu4j-#{ ICU::J_VERSION }.jar" ]
|
20
|
+
|
21
|
+
t.assembly_version = 1.0
|
22
|
+
|
23
|
+
file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]
|
24
|
+
|
25
|
+
task :check_pom_deps do
|
26
|
+
t.test_line_match( 'pom.xml',
|
27
|
+
%r[<version>#{ ICU::J_VERSION }</version>] )
|
28
|
+
end
|
29
|
+
|
30
|
+
task :check_history_version do
|
31
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
32
|
+
end
|
33
|
+
task :check_history_date do
|
34
|
+
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
35
|
+
end
|
36
|
+
|
37
|
+
task :gem => [ :check_pom_deps, :check_history_version ]
|
38
|
+
task :tag => [ :check_pom_deps, :check_history_version, :check_history_date ]
|
39
|
+
task :push => [ :check_history_date ]
|
40
|
+
|
41
|
+
t.define_tasks
|
data/assembly.xml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
<assembly>
|
2
|
+
<id>bin</id>
|
3
|
+
<formats>
|
4
|
+
<format>dir</format>
|
5
|
+
</formats>
|
6
|
+
<includeBaseDirectory>false</includeBaseDirectory>
|
7
|
+
<dependencySets>
|
8
|
+
<dependencySet>
|
9
|
+
<useProjectArtifact>false</useProjectArtifact>
|
10
|
+
<includes>
|
11
|
+
<include>com.ibm.icu:icu4j</include>
|
12
|
+
</includes>
|
13
|
+
</dependencySet>
|
14
|
+
</dependencySets>
|
15
|
+
</assembly>
|
data/lib/rjack-icu.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2011 David Kellum
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
25
|
+
require 'rjack-icu/base'
|
26
|
+
|
27
|
+
require 'java'
|
28
|
+
|
29
|
+
# ICU module
|
30
|
+
#
|
31
|
+
module RJack
|
32
|
+
module ICU
|
33
|
+
require "#{LIB_DIR}/icu4j-#{J_VERSION}.jar"
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2011 David Kellum
|
3
|
+
# All rights reserved.
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
25
|
+
module RJack
|
26
|
+
module ICU
|
27
|
+
|
28
|
+
# icu4j (java) version
|
29
|
+
J_VERSION = '4.8'
|
30
|
+
|
31
|
+
# rjack gem version
|
32
|
+
VERSION = J_VERSION + '.0'
|
33
|
+
|
34
|
+
LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
|
35
|
+
end
|
36
|
+
end
|
Binary file
|
data/pom.xml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2
|
+
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<groupId>rjack</groupId>
|
5
|
+
<artifactId>rjack-icu</artifactId>
|
6
|
+
<packaging>pom</packaging>
|
7
|
+
<version>1.0</version>
|
8
|
+
<name>icu4j for gem</name>
|
9
|
+
|
10
|
+
<properties>
|
11
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
12
|
+
</properties>
|
13
|
+
|
14
|
+
<dependencies>
|
15
|
+
<dependency>
|
16
|
+
<groupId>com.ibm.icu</groupId>
|
17
|
+
<artifactId>icu4j</artifactId>
|
18
|
+
<version>4.8</version>
|
19
|
+
</dependency>
|
20
|
+
</dependencies>
|
21
|
+
|
22
|
+
<build>
|
23
|
+
<plugins>
|
24
|
+
<plugin>
|
25
|
+
<artifactId>maven-assembly-plugin</artifactId>
|
26
|
+
<version>2.2.1</version>
|
27
|
+
<configuration>
|
28
|
+
<attach>false</attach>
|
29
|
+
<ignoreDirFormatExtensions>false</ignoreDirFormatExtensions>
|
30
|
+
<descriptors>
|
31
|
+
<descriptor>assembly.xml</descriptor>
|
32
|
+
</descriptors>
|
33
|
+
</configuration>
|
34
|
+
<executions>
|
35
|
+
<execution>
|
36
|
+
<id>assembly</id>
|
37
|
+
<phase>package</phase>
|
38
|
+
<goals>
|
39
|
+
<goal>single</goal>
|
40
|
+
</goals>
|
41
|
+
</execution>
|
42
|
+
</executions>
|
43
|
+
</plugin>
|
44
|
+
</plugins>
|
45
|
+
</build>
|
46
|
+
|
47
|
+
</project>
|
data/test/test_icu.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#.hashdot.profile += jruby-shortlived
|
3
|
+
|
4
|
+
#--
|
5
|
+
# Copyright (c) 2011 David Kellum
|
6
|
+
# All rights reserved.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
# a copy of this software and associated documentation files (the
|
10
|
+
# "Software"), to deal in the Software without restriction, including
|
11
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
# the following conditions:
|
15
|
+
#
|
16
|
+
# The above copyright notice and this permission notice shall be
|
17
|
+
# included in all copies or substantial portions of the Software.
|
18
|
+
#
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
23
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
24
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
25
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
26
|
+
#++
|
27
|
+
|
28
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
29
|
+
|
30
|
+
require 'rjack-icu'
|
31
|
+
|
32
|
+
require 'test/unit'
|
33
|
+
|
34
|
+
class TestICU < Test::Unit::TestCase
|
35
|
+
import 'com.ibm.icu.text.CharsetDetector'
|
36
|
+
|
37
|
+
def test_load
|
38
|
+
assert( true )
|
39
|
+
end
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rjack-icu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 4.8.0
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- David Kellum
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-06-26 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rjack-tarpit
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.3.3
|
25
|
+
type: :development
|
26
|
+
version_requirements: *id001
|
27
|
+
description: A gem packaging of {ICU4J}[http://site.icu-project.org/].
|
28
|
+
email:
|
29
|
+
- dek-oss@gravitext.com
|
30
|
+
executables: []
|
31
|
+
|
32
|
+
extensions: []
|
33
|
+
|
34
|
+
extra_rdoc_files:
|
35
|
+
- Manifest.txt
|
36
|
+
- History.rdoc
|
37
|
+
- README.rdoc
|
38
|
+
files:
|
39
|
+
- History.rdoc
|
40
|
+
- Manifest.txt
|
41
|
+
- README.rdoc
|
42
|
+
- Rakefile
|
43
|
+
- assembly.xml
|
44
|
+
- pom.xml
|
45
|
+
- lib/rjack-icu/base.rb
|
46
|
+
- lib/rjack-icu.rb
|
47
|
+
- test/test_icu.rb
|
48
|
+
- lib/rjack-icu/icu4j-4.8.jar
|
49
|
+
has_rdoc: true
|
50
|
+
homepage: http://rjack.rubyforge.org/icu
|
51
|
+
licenses: []
|
52
|
+
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options:
|
55
|
+
- --main
|
56
|
+
- README.rdoc
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: "0"
|
71
|
+
requirements: []
|
72
|
+
|
73
|
+
rubyforge_project: rjack-icu
|
74
|
+
rubygems_version: 1.5.1
|
75
|
+
signing_key:
|
76
|
+
specification_version: 3
|
77
|
+
summary: A gem packaging of {ICU4J}[http://site.icu-project.org/].
|
78
|
+
test_files:
|
79
|
+
- test/test_icu.rb
|