cmess 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/lib/cmess/decode_entities.rb +4 -2
- data/lib/cmess/version.rb +1 -1
- metadata +4 -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: 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 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -100,13 +100,13 @@ licenses: []
|
|
100
100
|
|
101
101
|
post_install_message:
|
102
102
|
rdoc_options:
|
103
|
-
- --all
|
104
103
|
- --main
|
105
104
|
- README
|
106
105
|
- --line-numbers
|
107
106
|
- --inline-source
|
108
107
|
- --title
|
109
108
|
- cmess Application documentation
|
109
|
+
- --all
|
110
110
|
- --charset
|
111
111
|
- UTF-8
|
112
112
|
require_paths:
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements: []
|
127
127
|
|
128
128
|
rubyforge_project: prometheus
|
129
|
-
rubygems_version: 1.3.
|
129
|
+
rubygems_version: 1.3.5
|
130
130
|
signing_key:
|
131
131
|
specification_version: 3
|
132
132
|
summary: "Assist with handling messed up encodings (Currently includes the following tools: bconv, cinderella, decode_entities, guess_encoding)"
|