blackwinter-cmess 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +2 -2
- data/lib/cmess/decode_entities.rb +4 -2
- data/lib/cmess/version.rb +1 -1
- metadata +5 -4
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to cmess version 0.2.
|
5
|
+
This documentation refers to cmess version 0.2.1
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -47,7 +47,7 @@ Rubyforge project:: <http://rubyforge.org/projects/prometheus>
|
|
47
47
|
|
48
48
|
== LICENSE AND COPYRIGHT
|
49
49
|
|
50
|
-
Copyright (C) 2007-
|
50
|
+
Copyright (C) 2007-2009 University of Cologne,
|
51
51
|
Albertus-Magnus-Platz, 50932 Cologne, Germany
|
52
52
|
|
53
53
|
cmess is free software: you can redistribute it and/or modify it under the
|
@@ -30,7 +30,7 @@ require 'iconv'
|
|
30
30
|
require 'cmess'
|
31
31
|
|
32
32
|
require 'rubygems'
|
33
|
-
require 'htmlentities
|
33
|
+
require 'htmlentities'
|
34
34
|
|
35
35
|
module CMess::DecodeEntities
|
36
36
|
|
@@ -61,8 +61,10 @@ module CMess::DecodeEntities
|
|
61
61
|
iconv_out = target_encoding != INTERMEDIATE_ENCODING ?
|
62
62
|
Iconv.new(target_encoding, INTERMEDIATE_ENCODING) : ICONV_DUMMY
|
63
63
|
|
64
|
+
html_entities = HTMLEntities.new
|
65
|
+
|
64
66
|
input.each { |line|
|
65
|
-
output.puts iconv_out.iconv(iconv_in.iconv(line)
|
67
|
+
output.puts iconv_out.iconv(html_entities.decode(iconv_in.iconv(line)))
|
66
68
|
}
|
67
69
|
end
|
68
70
|
|
data/lib/cmess/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blackwinter-cmess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-24 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -100,15 +100,16 @@ files:
|
|
100
100
|
- data/test_chars.yaml
|
101
101
|
has_rdoc: false
|
102
102
|
homepage: http://prometheus.rubyforge.org/cmess
|
103
|
+
licenses:
|
103
104
|
post_install_message:
|
104
105
|
rdoc_options:
|
105
|
-
- --all
|
106
106
|
- --main
|
107
107
|
- README
|
108
108
|
- --line-numbers
|
109
109
|
- --inline-source
|
110
110
|
- --title
|
111
111
|
- cmess Application documentation
|
112
|
+
- --all
|
112
113
|
- --charset
|
113
114
|
- UTF-8
|
114
115
|
require_paths:
|
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
129
|
requirements: []
|
129
130
|
|
130
131
|
rubyforge_project: prometheus
|
131
|
-
rubygems_version: 1.
|
132
|
+
rubygems_version: 1.3.5
|
132
133
|
signing_key:
|
133
134
|
specification_version: 3
|
134
135
|
summary: "Assist with handling messed up encodings (Currently includes the following tools: bconv, cinderella, decode_entities, guess_encoding)"
|