iudex-char-detector 1.2.1-java → 1.3.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/Manifest.txt +1 -1
- data/bin/iudex-char-detect +1 -1
- data/lib/iudex-char-detector/base.rb +1 -1
- data/lib/iudex-char-detector/iudex-char-detector-1.3.0.jar +0 -0
- data/pom.xml +3 -3
- data/test/test_char_detector.rb +1 -1
- metadata +139 -118
- data/lib/iudex-char-detector/iudex-char-detector-1.2.1.jar +0 -0
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
data/bin/iudex-char-detect
CHANGED
@@ -92,7 +92,7 @@ class ChartDetectUtil
|
|
92
92
|
map = UniMap.new
|
93
93
|
bytes = ByteBuffer::wrap( fin.read.to_java_bytes )
|
94
94
|
map.source = ContentSource.new( bytes )
|
95
|
-
map.source.set_default_encoding( Charset::
|
95
|
+
map.source.set_default_encoding( Charset::for_name( @default_encode ) )
|
96
96
|
|
97
97
|
df = CharDetectFilter.new
|
98
98
|
#FIXME: Option? df.max_detect_length =
|
Binary file
|
data/pom.xml
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
<groupId>iudex</groupId>
|
4
4
|
<artifactId>iudex-char-detector</artifactId>
|
5
5
|
<packaging>jar</packaging>
|
6
|
-
<version>1.
|
6
|
+
<version>1.3.0</version>
|
7
7
|
<name>Iudex charset detection support</name>
|
8
8
|
|
9
9
|
<parent>
|
10
10
|
<groupId>iudex</groupId>
|
11
11
|
<artifactId>iudex-parent</artifactId>
|
12
|
-
<version>1.
|
12
|
+
<version>1.3.0</version>
|
13
13
|
<relativePath>..</relativePath>
|
14
14
|
</parent>
|
15
15
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<dependency>
|
19
19
|
<groupId>iudex</groupId>
|
20
20
|
<artifactId>iudex-core</artifactId>
|
21
|
-
<version>[1.
|
21
|
+
<version>[1.3.0,1.3.999)</version>
|
22
22
|
</dependency>
|
23
23
|
|
24
24
|
<dependency>
|
data/test/test_char_detector.rb
CHANGED
@@ -144,7 +144,7 @@ HTML
|
|
144
144
|
def content( bytes, charset = "UTF-8" )
|
145
145
|
map = UniMap.new
|
146
146
|
map.source = ContentSource.new( wrap( bytes ) )
|
147
|
-
map.source.set_default_encoding( Charset::
|
147
|
+
map.source.set_default_encoding( Charset::for_name( charset ) )
|
148
148
|
map
|
149
149
|
end
|
150
150
|
|
metadata
CHANGED
@@ -1,132 +1,153 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: iudex-char-detector
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.3.0
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- David Kellum
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
12
|
+
date: 2012-11-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: iudex-core
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.3.0
|
21
|
+
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.3.0
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :runtime
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rjack-icu
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ~>
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 4.8.0
|
37
|
+
none: false
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 4.8.0
|
43
|
+
none: false
|
44
|
+
prerelease: false
|
45
|
+
type: :runtime
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: minitest
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.3'
|
53
|
+
none: false
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '2.3'
|
59
|
+
none: false
|
60
|
+
prerelease: false
|
61
|
+
type: :development
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rjack-logback
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.5'
|
69
|
+
none: false
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.5'
|
75
|
+
none: false
|
76
|
+
prerelease: false
|
77
|
+
type: :development
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rjack-tarpit
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '2.0'
|
85
|
+
none: false
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '2.0'
|
91
|
+
none: false
|
92
|
+
prerelease: false
|
93
|
+
type: :development
|
70
94
|
description: Iudex is a general purpose web crawler and feed processor in ruby/java. The iudex-char-detector gem provides charset detection support.
|
71
|
-
email:
|
72
|
-
|
73
|
-
executables:
|
74
|
-
|
95
|
+
email:
|
96
|
+
- dek-oss@gravitext.com
|
97
|
+
executables:
|
98
|
+
- iudex-char-detect
|
75
99
|
extensions: []
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
- lib/iudex-char-detector/iudex-char-detector-1.2.1.jar
|
100
|
+
extra_rdoc_files:
|
101
|
+
- History.rdoc
|
102
|
+
- README.rdoc
|
103
|
+
files:
|
104
|
+
- History.rdoc
|
105
|
+
- Manifest.txt
|
106
|
+
- README.rdoc
|
107
|
+
- Rakefile
|
108
|
+
- pom.xml
|
109
|
+
- bin/iudex-char-detect
|
110
|
+
- lib/iudex-char-detector/base.rb
|
111
|
+
- lib/iudex-char-detector.rb
|
112
|
+
- test/sample.html.ascii
|
113
|
+
- test/sample.html.iso
|
114
|
+
- test/sample.html.utf16
|
115
|
+
- test/sample.html.utf16le
|
116
|
+
- test/sample.html.utf8
|
117
|
+
- test/setup.rb
|
118
|
+
- test/test_char_detector.rb
|
119
|
+
- lib/iudex-char-detector/iudex-char-detector-1.3.0.jar
|
97
120
|
homepage: http://iudex.gravitext.com
|
98
121
|
licenses: []
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options:
|
124
|
+
- --main
|
125
|
+
- README.rdoc
|
126
|
+
require_paths:
|
127
|
+
- lib
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
hash: 2
|
107
136
|
none: false
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
hash: 2
|
116
145
|
none: false
|
117
|
-
requirements:
|
118
|
-
- - ">="
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
hash: 2
|
121
|
-
segments:
|
122
|
-
- 0
|
123
|
-
version: "0"
|
124
146
|
requirements: []
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
signing_key:
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 1.8.24
|
149
|
+
signing_key:
|
129
150
|
specification_version: 3
|
130
151
|
summary: Iudex is a general purpose web crawler and feed processor in ruby/java.
|
131
152
|
test_files: []
|
132
|
-
|
153
|
+
...
|
Binary file
|