rjack-nekohtml 1.9.14.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/NOTICE.txt +8 -0
- data/README.rdoc +42 -0
- data/Rakefile +43 -0
- data/assembly.xml +14 -0
- data/lib/rjack-nekohtml/base.rb +28 -0
- data/lib/rjack-nekohtml/nekohtml-1.9.14.jar +0 -0
- data/lib/rjack-nekohtml.rb +28 -0
- data/pom.xml +40 -0
- data/test/test_nekohtml.rb +36 -0
- metadata +104 -0
data/History.rdoc
ADDED
data/Manifest.txt
ADDED
data/NOTICE.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
= rjack-nekohtml
|
2
|
+
|
3
|
+
* http://rjack.rubyforge.org
|
4
|
+
* http://rubyforge.org/projects/rjack
|
5
|
+
|
6
|
+
== Description
|
7
|
+
|
8
|
+
A gem packaging of the {CyberNeko HTML Parser}[http://nekohtml.sourceforge.net/]
|
9
|
+
|
10
|
+
== License
|
11
|
+
|
12
|
+
=== rjack-nekohtml gem
|
13
|
+
|
14
|
+
Copyright (c) 2010 David Kellum
|
15
|
+
|
16
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you
|
17
|
+
may not use this file except in compliance with the License. You
|
18
|
+
may obtain a copy of the License at:
|
19
|
+
|
20
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
21
|
+
|
22
|
+
Unless required by applicable law or agreed to in writing, software
|
23
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
24
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
25
|
+
implied. See the License for the specific language governing
|
26
|
+
permissions and limitations under the License.
|
27
|
+
|
28
|
+
=== CyberNeko HTML Parser (java)
|
29
|
+
|
30
|
+
Copyright (c) 2002-2009 Andy Clark, Marc Guillemot
|
31
|
+
|
32
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you
|
33
|
+
may not use this file except in compliance with the License. You
|
34
|
+
may obtain a copy of the License at:
|
35
|
+
|
36
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
37
|
+
|
38
|
+
Unless required by applicable law or agreed to in writing, software
|
39
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
40
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
41
|
+
See the License for the specific language governing permissions and
|
42
|
+
limitations under the License.
|
data/Rakefile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
$LOAD_PATH << './lib'
|
4
|
+
require 'rjack-nekohtml/base'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'rjack-tarpit', '~> 1.2.0'
|
8
|
+
require 'rjack-tarpit'
|
9
|
+
|
10
|
+
include RJack
|
11
|
+
|
12
|
+
t = TarPit.new( 'rjack-nekohtml', NekoHTML::VERSION, :java_platform )
|
13
|
+
|
14
|
+
t.specify do |h|
|
15
|
+
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
16
|
+
h.extra_deps << [ 'rjack-xerces', '~> 2.9.1' ]
|
17
|
+
h.rubyforge_name = "rjack"
|
18
|
+
h.remote_rdoc_dir = "nekohtml"
|
19
|
+
end
|
20
|
+
|
21
|
+
t.jars = [ "nekohtml-#{ NekoHTML::NEKOHTML_VERSION }.jar" ]
|
22
|
+
|
23
|
+
t.assembly_version = 1.0
|
24
|
+
|
25
|
+
file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]
|
26
|
+
|
27
|
+
task :check_pom_deps do
|
28
|
+
t.test_line_match( 'pom.xml',
|
29
|
+
%r[<version>#{ NekoHTML::NEKOHTML_VERSION }</version>] )
|
30
|
+
end
|
31
|
+
|
32
|
+
task :check_history_version do
|
33
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
34
|
+
end
|
35
|
+
task :check_history_date do
|
36
|
+
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
37
|
+
end
|
38
|
+
|
39
|
+
task :gem => [ :check_pom_deps, :check_history_version ]
|
40
|
+
task :tag => [ :check_pom_deps, :check_history_version, :check_history_date ]
|
41
|
+
task :push => [ :check_history_date ]
|
42
|
+
|
43
|
+
t.define_tasks
|
data/assembly.xml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<assembly>
|
2
|
+
<id>bin</id>
|
3
|
+
<formats>
|
4
|
+
<format>dir</format>
|
5
|
+
</formats>
|
6
|
+
<includeBaseDirectory>false</includeBaseDirectory>
|
7
|
+
<dependencySets>
|
8
|
+
<dependencySet>
|
9
|
+
<includes>
|
10
|
+
<include>net.sourceforge.nekohtml:nekohtml</include>
|
11
|
+
</includes>
|
12
|
+
</dependencySet>
|
13
|
+
</dependencySets>
|
14
|
+
</assembly>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2010 David Kellum
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
|
+
# may not use this file except in compliance with the License. You
|
6
|
+
# may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
13
|
+
# implied. See the License for the specific language governing
|
14
|
+
# permissions and limitations under the License.
|
15
|
+
#++
|
16
|
+
|
17
|
+
module RJack
|
18
|
+
module NekoHTML
|
19
|
+
|
20
|
+
# Upstream java version
|
21
|
+
NEKOHTML_VERSION = '1.9.14'
|
22
|
+
|
23
|
+
# rjack gem version
|
24
|
+
VERSION = NEKOHTML_VERSION + '.0'
|
25
|
+
|
26
|
+
NEKOHTML_DIR = File.dirname( __FILE__ ) # :nodoc:
|
27
|
+
end
|
28
|
+
end
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2010 David Kellum
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
|
+
# may not use this file except in compliance with the License. You
|
6
|
+
# may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
13
|
+
# implied. See the License for the specific language governing
|
14
|
+
# permissions and limitations under the License.
|
15
|
+
#++
|
16
|
+
|
17
|
+
require 'rjack-nekohtml/base'
|
18
|
+
|
19
|
+
require 'rjack-xerces'
|
20
|
+
|
21
|
+
# CyberNeko HTML Parser wrapper module
|
22
|
+
#
|
23
|
+
# http://nekohtml.sourceforge.net/
|
24
|
+
module RJack
|
25
|
+
module NekoHTML
|
26
|
+
require "#{NEKOHTML_DIR}/nekohtml-#{NEKOHTML_VERSION}.jar"
|
27
|
+
end
|
28
|
+
end
|
data/pom.xml
ADDED
@@ -0,0 +1,40 @@
|
|
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-nekohtml</artifactId>
|
6
|
+
<packaging>pom</packaging>
|
7
|
+
<version>1.0</version>
|
8
|
+
|
9
|
+
<dependencies>
|
10
|
+
<dependency>
|
11
|
+
<groupId>net.sourceforge.nekohtml</groupId>
|
12
|
+
<artifactId>nekohtml</artifactId>
|
13
|
+
<version>1.9.14</version>
|
14
|
+
</dependency>
|
15
|
+
</dependencies>
|
16
|
+
|
17
|
+
<build>
|
18
|
+
<plugins>
|
19
|
+
<plugin>
|
20
|
+
<artifactId>maven-assembly-plugin</artifactId>
|
21
|
+
<configuration>
|
22
|
+
<descriptors>
|
23
|
+
<descriptor>assembly.xml</descriptor>
|
24
|
+
</descriptors>
|
25
|
+
<tarLongFileMode>gnu</tarLongFileMode>
|
26
|
+
</configuration>
|
27
|
+
<executions>
|
28
|
+
<execution>
|
29
|
+
<id>assembly</id>
|
30
|
+
<phase>package</phase>
|
31
|
+
<goals>
|
32
|
+
<goal>attached</goal>
|
33
|
+
</goals>
|
34
|
+
</execution>
|
35
|
+
</executions>
|
36
|
+
</plugin>
|
37
|
+
</plugins>
|
38
|
+
</build>
|
39
|
+
|
40
|
+
</project>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#.hashdot.profile += jruby-shortlived
|
3
|
+
|
4
|
+
#--
|
5
|
+
# Copyright (c) 2010 David Kellum
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
8
|
+
# may not use this file except in compliance with the License. You may
|
9
|
+
# obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
16
|
+
# implied. See the License for the specific language governing
|
17
|
+
# permissions and limitations under the License.
|
18
|
+
#++
|
19
|
+
|
20
|
+
require 'java'
|
21
|
+
require 'rubygems'
|
22
|
+
require 'test/unit'
|
23
|
+
|
24
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
25
|
+
|
26
|
+
require 'rjack-nekohtml'
|
27
|
+
|
28
|
+
class TestNekoHTML < Test::Unit::TestCase
|
29
|
+
|
30
|
+
import 'org.cyberneko.html.parsers.SAXParser'
|
31
|
+
import 'org.cyberneko.html.parsers.DOMParser'
|
32
|
+
|
33
|
+
def test_load
|
34
|
+
assert( true )
|
35
|
+
end
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rjack-nekohtml
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 9
|
8
|
+
- 14
|
9
|
+
- 0
|
10
|
+
version: 1.9.14.0
|
11
|
+
platform: java
|
12
|
+
authors:
|
13
|
+
- David Kellum
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-08-31 00:00:00 -07:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rjack-xerces
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 9
|
31
|
+
- 1
|
32
|
+
version: 2.9.1
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rjack-tarpit
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 2
|
45
|
+
- 2
|
46
|
+
version: 1.2.2
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
49
|
+
description: A gem packaging of the {CyberNeko HTML Parser}[http://nekohtml.sourceforge.net/]
|
50
|
+
email:
|
51
|
+
- dek-oss@gravitext.com
|
52
|
+
executables: []
|
53
|
+
|
54
|
+
extensions: []
|
55
|
+
|
56
|
+
extra_rdoc_files:
|
57
|
+
- Manifest.txt
|
58
|
+
- NOTICE.txt
|
59
|
+
- History.rdoc
|
60
|
+
- README.rdoc
|
61
|
+
files:
|
62
|
+
- History.rdoc
|
63
|
+
- Manifest.txt
|
64
|
+
- NOTICE.txt
|
65
|
+
- README.rdoc
|
66
|
+
- Rakefile
|
67
|
+
- assembly.xml
|
68
|
+
- pom.xml
|
69
|
+
- lib/rjack-nekohtml/base.rb
|
70
|
+
- lib/rjack-nekohtml.rb
|
71
|
+
- lib/rjack-nekohtml/nekohtml-1.9.14.jar
|
72
|
+
has_rdoc: true
|
73
|
+
homepage: http://rjack.rubyforge.org
|
74
|
+
licenses: []
|
75
|
+
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options:
|
78
|
+
- --main
|
79
|
+
- README.rdoc
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
96
|
+
requirements: []
|
97
|
+
|
98
|
+
rubyforge_project: rjack
|
99
|
+
rubygems_version: 1.3.6
|
100
|
+
signing_key:
|
101
|
+
specification_version: 3
|
102
|
+
summary: A gem packaging of the {CyberNeko HTML Parser}[http://nekohtml.sourceforge.net/]
|
103
|
+
test_files:
|
104
|
+
- test/test_nekohtml.rb
|