html_number_decoder 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html_number_decoder/mapping.rb +217 -213
- data/lib/html_number_decoder/version.rb +1 -1
- data/lib/html_number_decoder.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d96d17029879920631bfb8e2adbaf939f23e34
|
4
|
+
data.tar.gz: d93555b091073f253ef37bdd7d82fd23e2d643ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32485a756d8fb98509bfc2e26e2c8d7e73125ebc01101808feb6d8c5e5ba02b3e3931802ca62eafd3e8fc753bfa910e268ce064efed0c4ece4288078fe18045e
|
7
|
+
data.tar.gz: 6c6aad38a4806ace2541a3e17fbe9ed572f82137477008f5abea48a4f08bb1920ef98fd5f7ace78ad8f25bf3b2d9898d88418483061387356f89e06605cac92b
|
@@ -1,213 +1,217 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module HtmlNumberDecoder
|
4
|
+
MAPPING = {
|
5
|
+
"32" => " ",
|
6
|
+
"33" => "!",
|
7
|
+
"34" => "\"",
|
8
|
+
"35" => "#",
|
9
|
+
"36" => "$",
|
10
|
+
"37" => "%",
|
11
|
+
"38" => "&",
|
12
|
+
"39" => "'",
|
13
|
+
"40" => "(",
|
14
|
+
"41" => ")",
|
15
|
+
"42" => "*",
|
16
|
+
"43" => "+",
|
17
|
+
"44" => ",",
|
18
|
+
"45" => "-",
|
19
|
+
"46" => ".",
|
20
|
+
"47" => "/",
|
21
|
+
"48" => "0",
|
22
|
+
"49" => "1",
|
23
|
+
"50" => "2",
|
24
|
+
"51" => "3",
|
25
|
+
"52" => "4",
|
26
|
+
"53" => "5",
|
27
|
+
"54" => "6",
|
28
|
+
"55" => "7",
|
29
|
+
"56" => "8",
|
30
|
+
"57" => "9",
|
31
|
+
"58" => ":",
|
32
|
+
"59" => ";",
|
33
|
+
"60" => "<",
|
34
|
+
"61" => "=",
|
35
|
+
"62" => ">",
|
36
|
+
"63" => "?",
|
37
|
+
"64" => "@",
|
38
|
+
"65" => "A",
|
39
|
+
"66" => "B",
|
40
|
+
"67" => "C",
|
41
|
+
"68" => "D",
|
42
|
+
"69" => "E",
|
43
|
+
"70" => "F",
|
44
|
+
"71" => "G",
|
45
|
+
"72" => "H",
|
46
|
+
"73" => "I",
|
47
|
+
"74" => "J",
|
48
|
+
"75" => "K",
|
49
|
+
"76" => "L",
|
50
|
+
"77" => "M",
|
51
|
+
"78" => "N",
|
52
|
+
"79" => "O",
|
53
|
+
"80" => "P",
|
54
|
+
"81" => "Q",
|
55
|
+
"82" => "R",
|
56
|
+
"83" => "S",
|
57
|
+
"84" => "T",
|
58
|
+
"85" => "U",
|
59
|
+
"86" => "V",
|
60
|
+
"87" => "W",
|
61
|
+
"88" => "X",
|
62
|
+
"89" => "Y",
|
63
|
+
"90" => "Z",
|
64
|
+
"91" => "[",
|
65
|
+
"92" => "\\",
|
66
|
+
"93" => "]",
|
67
|
+
"94" => "^",
|
68
|
+
"95" => "_",
|
69
|
+
"96" => "`",
|
70
|
+
"97" => "a",
|
71
|
+
"98" => "b",
|
72
|
+
"99" => "c",
|
73
|
+
"100" => "d",
|
74
|
+
"101" => "e",
|
75
|
+
"102" => "f",
|
76
|
+
"103" => "g",
|
77
|
+
"104" => "h",
|
78
|
+
"105" => "i",
|
79
|
+
"106" => "j",
|
80
|
+
"107" => "k",
|
81
|
+
"108" => "l",
|
82
|
+
"109" => "m",
|
83
|
+
"110" => "n",
|
84
|
+
"111" => "o",
|
85
|
+
"112" => "p",
|
86
|
+
"113" => "q",
|
87
|
+
"114" => "r",
|
88
|
+
"115" => "s",
|
89
|
+
"116" => "t",
|
90
|
+
"117" => "u",
|
91
|
+
"118" => "v",
|
92
|
+
"119" => "w",
|
93
|
+
"120" => "x",
|
94
|
+
"121" => "y",
|
95
|
+
"122" => "z",
|
96
|
+
"123" => "{",
|
97
|
+
"124" => "|",
|
98
|
+
"125" => "}",
|
99
|
+
"126" => "~",
|
100
|
+
"160" => " ",
|
101
|
+
"161" => "¡",
|
102
|
+
"162" => "¢",
|
103
|
+
"163" => "£",
|
104
|
+
"164" => "¤",
|
105
|
+
"165" => "¥",
|
106
|
+
"166" => "¦",
|
107
|
+
"167" => "§",
|
108
|
+
"168" => "¨",
|
109
|
+
"169" => "©",
|
110
|
+
"170" => "ª",
|
111
|
+
"171" => "«",
|
112
|
+
"172" => "¬",
|
113
|
+
"174" => "®",
|
114
|
+
"175" => "¯",
|
115
|
+
"176" => "°",
|
116
|
+
"177" => "±",
|
117
|
+
"178" => "²",
|
118
|
+
"179" => "³",
|
119
|
+
"180" => "´",
|
120
|
+
"181" => "µ",
|
121
|
+
"182" => "¶",
|
122
|
+
"183" => "·",
|
123
|
+
"184" => "¸",
|
124
|
+
"185" => "¹",
|
125
|
+
"186" => "º",
|
126
|
+
"187" => "»",
|
127
|
+
"188" => "¼",
|
128
|
+
"189" => "½",
|
129
|
+
"190" => "¾",
|
130
|
+
"191" => "¿",
|
131
|
+
"192" => "À",
|
132
|
+
"193" => "Á",
|
133
|
+
"194" => "Â",
|
134
|
+
"195" => "Ã",
|
135
|
+
"196" => "Ä",
|
136
|
+
"197" => "Å",
|
137
|
+
"198" => "Æ",
|
138
|
+
"199" => "Ç",
|
139
|
+
"200" => "È",
|
140
|
+
"201" => "É",
|
141
|
+
"202" => "Ê",
|
142
|
+
"203" => "Ë",
|
143
|
+
"204" => "Ì",
|
144
|
+
"205" => "Í",
|
145
|
+
"206" => "Î",
|
146
|
+
"207" => "Ï",
|
147
|
+
"208" => "Ð",
|
148
|
+
"209" => "Ñ",
|
149
|
+
"210" => "Ò",
|
150
|
+
"211" => "Ó",
|
151
|
+
"212" => "Ô",
|
152
|
+
"213" => "Õ",
|
153
|
+
"214" => "Ö",
|
154
|
+
"215" => "×",
|
155
|
+
"216" => "Ø",
|
156
|
+
"217" => "Ù",
|
157
|
+
"218" => "Ú",
|
158
|
+
"219" => "Û",
|
159
|
+
"220" => "Ü",
|
160
|
+
"221" => "Ý",
|
161
|
+
"222" => "Þ",
|
162
|
+
"223" => "ß",
|
163
|
+
"224" => "à",
|
164
|
+
"225" => "á",
|
165
|
+
"226" => "â",
|
166
|
+
"227" => "ã",
|
167
|
+
"228" => "ä",
|
168
|
+
"229" => "å",
|
169
|
+
"230" => "æ",
|
170
|
+
"231" => "ç",
|
171
|
+
"232" => "è",
|
172
|
+
"233" => "é",
|
173
|
+
"234" => "ê",
|
174
|
+
"235" => "ë",
|
175
|
+
"236" => "ì",
|
176
|
+
"237" => "í",
|
177
|
+
"238" => "î",
|
178
|
+
"239" => "ï",
|
179
|
+
"240" => "ð",
|
180
|
+
"241" => "ñ",
|
181
|
+
"242" => "ò",
|
182
|
+
"243" => "ó",
|
183
|
+
"244" => "ô",
|
184
|
+
"245" => "õ",
|
185
|
+
"246" => "ö",
|
186
|
+
"247" => "÷",
|
187
|
+
"248" => "ø",
|
188
|
+
"249" => "ù",
|
189
|
+
"250" => "ú",
|
190
|
+
"251" => "û",
|
191
|
+
"252" => "ü",
|
192
|
+
"253" => "ý",
|
193
|
+
"254" => "þ",
|
194
|
+
"255" => "ÿ",
|
195
|
+
"338" => "Œ",
|
196
|
+
"339" => "œ",
|
197
|
+
"352" => "Š",
|
198
|
+
"353" => "š",
|
199
|
+
"376" => "Ÿ",
|
200
|
+
"402" => "ƒ",
|
201
|
+
"8211" => "–",
|
202
|
+
"8212" => "—",
|
203
|
+
"8216" => "‘",
|
204
|
+
"8217" => "’",
|
205
|
+
"8218" => "‚",
|
206
|
+
"8220" => "“",
|
207
|
+
"8221" => "”",
|
208
|
+
"8222" => "„",
|
209
|
+
"8224" => "†",
|
210
|
+
"8225" => "‡",
|
211
|
+
"8226" => "•",
|
212
|
+
"8230" => "…",
|
213
|
+
"8240" => "‰",
|
214
|
+
"8364" => "€",
|
215
|
+
"8482" => "™"
|
216
|
+
}
|
217
|
+
end
|
data/lib/html_number_decoder.rb
CHANGED