prosereflect 0.1.0
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.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +15 -0
- data/.github/workflows/release.yml +25 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +228 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/Gemfile +10 -0
- data/README.adoc +268 -0
- data/Rakefile +12 -0
- data/debug_loading.rb +34 -0
- data/lib/prosereflect/document.rb +63 -0
- data/lib/prosereflect/hard_break.rb +22 -0
- data/lib/prosereflect/node.rb +77 -0
- data/lib/prosereflect/paragraph.rb +50 -0
- data/lib/prosereflect/parser.rb +56 -0
- data/lib/prosereflect/table.rb +64 -0
- data/lib/prosereflect/table_cell.rb +37 -0
- data/lib/prosereflect/table_row.rb +32 -0
- data/lib/prosereflect/text.rb +37 -0
- data/lib/prosereflect/version.rb +5 -0
- data/lib/prosereflect.rb +17 -0
- data/prosereflect.gemspec +33 -0
- data/sig/prosemirror.rbs +4 -0
- data/spec/fixtures/ituob-1000/ituob-1000-DP.json +366 -0
- data/spec/fixtures/ituob-1000/ituob-1000-DP.yaml +182 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E118_IIN.json +381 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E118_IIN.yaml +182 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E164_ACN.json +203 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E164_ACN.yaml +98 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E212_MNC.json +202 -0
- data/spec/fixtures/ituob-1000/ituob-1000-E212_MNC.yaml +101 -0
- data/spec/fixtures/ituob-1000/ituob-1000-F32_TDI.json +6948 -0
- data/spec/fixtures/ituob-1000/ituob-1000-F32_TDI.yaml +3519 -0
- data/spec/fixtures/ituob-1000/ituob-1000-M1400_ICC.json +529 -0
- data/spec/fixtures/ituob-1000/ituob-1000-M1400_ICC.yaml +263 -0
- data/spec/fixtures/ituob-1000/ituob-1000-NNP.json +288 -0
- data/spec/fixtures/ituob-1000/ituob-1000-NNP.yaml +152 -0
- data/spec/fixtures/ituob-1000/ituob-1000-Q708_ISPC.json +1534 -0
- data/spec/fixtures/ituob-1000/ituob-1000-Q708_ISPC.yaml +789 -0
- data/spec/fixtures/ituob-1000/ituob-1000-Q708_SANC.json +252 -0
- data/spec/fixtures/ituob-1000/ituob-1000-Q708_SANC.yaml +123 -0
- data/spec/fixtures/ituob-1000/ituob-1000-R_SP_LM.V.json +428 -0
- data/spec/fixtures/ituob-1000/ituob-1000-R_SP_LM.V.yaml +208 -0
- data/spec/fixtures/ituob-1000/ituob-1000-T35_NA.json +621 -0
- data/spec/fixtures/ituob-1000/ituob-1000-T35_NA.yaml +317 -0
- data/spec/fixtures/ituob-1001/ituob-1001-DP.json +532 -0
- data/spec/fixtures/ituob-1001/ituob-1001-DP.yaml +266 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E118_IIN.json +1093 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E118_IIN.yaml +519 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E164_ACN.json +449 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E164_ACN.yaml +214 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E164_CC.json +271 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E164_CC.yaml +136 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E212_MNC.json +199 -0
- data/spec/fixtures/ituob-1001/ituob-1001-E212_MNC.yaml +99 -0
- data/spec/fixtures/ituob-1001/ituob-1001-NNP.json +288 -0
- data/spec/fixtures/ituob-1001/ituob-1001-NNP.yaml +152 -0
- data/spec/fixtures/ituob-1001/ituob-1001-Q708_ISPC.json +960 -0
- data/spec/fixtures/ituob-1001/ituob-1001-Q708_ISPC.yaml +487 -0
- data/spec/prosereflect/document_spec.rb +149 -0
- data/spec/prosereflect/hard_break_spec.rb +51 -0
- data/spec/prosereflect/node_spec.rb +256 -0
- data/spec/prosereflect/paragraph_spec.rb +152 -0
- data/spec/prosereflect/parser_spec.rb +129 -0
- data/spec/prosereflect/table_cell_spec.rb +114 -0
- data/spec/prosereflect/table_row_spec.rb +77 -0
- data/spec/prosereflect/table_spec.rb +144 -0
- data/spec/prosereflect/text_spec.rb +116 -0
- data/spec/prosereflect/version_spec.rb +11 -0
- data/spec/prosereflect_spec.rb +57 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/matchers.rb +131 -0
- data/spec/support/shared_examples.rb +220 -0
- metadata +133 -0
@@ -0,0 +1,288 @@
|
|
1
|
+
{
|
2
|
+
"type": "doc",
|
3
|
+
"content": [
|
4
|
+
{
|
5
|
+
"type": "paragraph",
|
6
|
+
"content": [
|
7
|
+
{
|
8
|
+
"type": "text",
|
9
|
+
"text": "Administrations are requested to notify ITU about their national numbering plan changes, or to give an explanation on their webpage concerning the national numbering plan as well as their contact points, so that the information, which will be made available freely to all administrations/ROAs and service providers, can be posted on the ITU-T website."
|
10
|
+
}
|
11
|
+
]
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"type": "paragraph",
|
15
|
+
"content": [
|
16
|
+
{
|
17
|
+
"type": "text",
|
18
|
+
"text": "For their numbering website, or when sending their information to ITU/TSB (e-mail: "
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"type": "text",
|
22
|
+
"marks": [
|
23
|
+
{
|
24
|
+
"type": "link",
|
25
|
+
"attrs": {
|
26
|
+
"href": "mailto:tsbtson@itu/.int",
|
27
|
+
"title": null
|
28
|
+
}
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"text": "tsbtson@itu.int"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"type": "text",
|
35
|
+
"text": "), administrations are kindly requested to use the format as explained in Recommendation ITU-T E.129. They are reminded that they will be responsible for the timely update of this information."
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"type": "paragraph",
|
41
|
+
"content": [
|
42
|
+
{
|
43
|
+
"type": "text",
|
44
|
+
"text": "From 1.III.2012 the following countries have updated their national numbering plan on our site:"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"type": "paragraph",
|
50
|
+
"content": [
|
51
|
+
{
|
52
|
+
"type": "text",
|
53
|
+
"text": " "
|
54
|
+
}
|
55
|
+
]
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"type": "table",
|
59
|
+
"content": [
|
60
|
+
{
|
61
|
+
"type": "table_row",
|
62
|
+
"content": [
|
63
|
+
{
|
64
|
+
"type": "table_cell",
|
65
|
+
"attrs": {
|
66
|
+
"colspan": 1,
|
67
|
+
"rowspan": 1,
|
68
|
+
"colwidth": null
|
69
|
+
},
|
70
|
+
"content": [
|
71
|
+
{
|
72
|
+
"type": "paragraph",
|
73
|
+
"content": [
|
74
|
+
{
|
75
|
+
"type": "text",
|
76
|
+
"marks": [
|
77
|
+
{
|
78
|
+
"type": "em"
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"text": "Country"
|
82
|
+
}
|
83
|
+
]
|
84
|
+
}
|
85
|
+
]
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"type": "table_cell",
|
89
|
+
"attrs": {
|
90
|
+
"colspan": 1,
|
91
|
+
"rowspan": 1,
|
92
|
+
"colwidth": null
|
93
|
+
},
|
94
|
+
"content": [
|
95
|
+
{
|
96
|
+
"type": "paragraph",
|
97
|
+
"content": [
|
98
|
+
{
|
99
|
+
"type": "text",
|
100
|
+
"marks": [
|
101
|
+
{
|
102
|
+
"type": "em"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"text": "Country Code (CC)"
|
106
|
+
}
|
107
|
+
]
|
108
|
+
}
|
109
|
+
]
|
110
|
+
}
|
111
|
+
]
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"type": "table_row",
|
115
|
+
"content": [
|
116
|
+
{
|
117
|
+
"type": "table_cell",
|
118
|
+
"attrs": {
|
119
|
+
"colspan": 1,
|
120
|
+
"rowspan": 1,
|
121
|
+
"colwidth": null
|
122
|
+
},
|
123
|
+
"content": [
|
124
|
+
{
|
125
|
+
"type": "paragraph",
|
126
|
+
"content": [
|
127
|
+
{
|
128
|
+
"type": "text",
|
129
|
+
"text": "Azerbaijan"
|
130
|
+
}
|
131
|
+
]
|
132
|
+
}
|
133
|
+
]
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"type": "table_cell",
|
137
|
+
"attrs": {
|
138
|
+
"colspan": 1,
|
139
|
+
"rowspan": 1,
|
140
|
+
"colwidth": null
|
141
|
+
},
|
142
|
+
"content": [
|
143
|
+
{
|
144
|
+
"type": "paragraph",
|
145
|
+
"content": [
|
146
|
+
{
|
147
|
+
"type": "text",
|
148
|
+
"text": "+994"
|
149
|
+
}
|
150
|
+
]
|
151
|
+
}
|
152
|
+
]
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"type": "table_row",
|
158
|
+
"content": [
|
159
|
+
{
|
160
|
+
"type": "table_cell",
|
161
|
+
"attrs": {
|
162
|
+
"colspan": 1,
|
163
|
+
"rowspan": 1,
|
164
|
+
"colwidth": null
|
165
|
+
},
|
166
|
+
"content": [
|
167
|
+
{
|
168
|
+
"type": "paragraph",
|
169
|
+
"content": [
|
170
|
+
{
|
171
|
+
"type": "text",
|
172
|
+
"text": "Brazil"
|
173
|
+
}
|
174
|
+
]
|
175
|
+
}
|
176
|
+
]
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"type": "table_cell",
|
180
|
+
"attrs": {
|
181
|
+
"colspan": 1,
|
182
|
+
"rowspan": 1,
|
183
|
+
"colwidth": null
|
184
|
+
},
|
185
|
+
"content": [
|
186
|
+
{
|
187
|
+
"type": "paragraph",
|
188
|
+
"content": [
|
189
|
+
{
|
190
|
+
"type": "text",
|
191
|
+
"text": "+55"
|
192
|
+
}
|
193
|
+
]
|
194
|
+
}
|
195
|
+
]
|
196
|
+
}
|
197
|
+
]
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"type": "table_row",
|
201
|
+
"content": [
|
202
|
+
{
|
203
|
+
"type": "table_cell",
|
204
|
+
"attrs": {
|
205
|
+
"colspan": 1,
|
206
|
+
"rowspan": 1,
|
207
|
+
"colwidth": null
|
208
|
+
},
|
209
|
+
"content": [
|
210
|
+
{
|
211
|
+
"type": "paragraph",
|
212
|
+
"content": [
|
213
|
+
{
|
214
|
+
"type": "text",
|
215
|
+
"text": "Burkina Faso"
|
216
|
+
}
|
217
|
+
]
|
218
|
+
}
|
219
|
+
]
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"type": "table_cell",
|
223
|
+
"attrs": {
|
224
|
+
"colspan": 1,
|
225
|
+
"rowspan": 1,
|
226
|
+
"colwidth": null
|
227
|
+
},
|
228
|
+
"content": [
|
229
|
+
{
|
230
|
+
"type": "paragraph",
|
231
|
+
"content": [
|
232
|
+
{
|
233
|
+
"type": "text",
|
234
|
+
"text": "+226"
|
235
|
+
}
|
236
|
+
]
|
237
|
+
}
|
238
|
+
]
|
239
|
+
}
|
240
|
+
]
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"type": "table_row",
|
244
|
+
"content": [
|
245
|
+
{
|
246
|
+
"type": "table_cell",
|
247
|
+
"attrs": {
|
248
|
+
"colspan": 1,
|
249
|
+
"rowspan": 1,
|
250
|
+
"colwidth": null
|
251
|
+
},
|
252
|
+
"content": [
|
253
|
+
{
|
254
|
+
"type": "paragraph",
|
255
|
+
"content": [
|
256
|
+
{
|
257
|
+
"type": "text",
|
258
|
+
"text": "Lebanon"
|
259
|
+
}
|
260
|
+
]
|
261
|
+
}
|
262
|
+
]
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"type": "table_cell",
|
266
|
+
"attrs": {
|
267
|
+
"colspan": 1,
|
268
|
+
"rowspan": 1,
|
269
|
+
"colwidth": null
|
270
|
+
},
|
271
|
+
"content": [
|
272
|
+
{
|
273
|
+
"type": "paragraph",
|
274
|
+
"content": [
|
275
|
+
{
|
276
|
+
"type": "text",
|
277
|
+
"text": "+961"
|
278
|
+
}
|
279
|
+
]
|
280
|
+
}
|
281
|
+
]
|
282
|
+
}
|
283
|
+
]
|
284
|
+
}
|
285
|
+
]
|
286
|
+
}
|
287
|
+
]
|
288
|
+
}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
---
|
2
|
+
type: doc
|
3
|
+
content:
|
4
|
+
- type: paragraph
|
5
|
+
content:
|
6
|
+
- type: text
|
7
|
+
text: Administrations are requested to notify ITU about their national numbering
|
8
|
+
plan changes, or to give an explanation on their webpage concerning the national
|
9
|
+
numbering plan as well as their contact points, so that the information, which
|
10
|
+
will be made available freely to all administrations/ROAs and service providers,
|
11
|
+
can be posted on the ITU-T website.
|
12
|
+
- type: paragraph
|
13
|
+
content:
|
14
|
+
- type: text
|
15
|
+
text: 'For their numbering website, or when sending their information to ITU/TSB
|
16
|
+
(e-mail: '
|
17
|
+
- type: text
|
18
|
+
marks:
|
19
|
+
- type: link
|
20
|
+
attrs:
|
21
|
+
href: mailto:tsbtson@itu/.int
|
22
|
+
title:
|
23
|
+
text: tsbtson@itu.int
|
24
|
+
- type: text
|
25
|
+
text: "), administrations are kindly requested to use the format as explained
|
26
|
+
in Recommendation ITU-T E.129. They are reminded that they will be responsible
|
27
|
+
for the timely update of this information."
|
28
|
+
- type: paragraph
|
29
|
+
content:
|
30
|
+
- type: text
|
31
|
+
text: 'From 1.III.2012 the following countries have updated their national numbering
|
32
|
+
plan on our site:'
|
33
|
+
- type: paragraph
|
34
|
+
content:
|
35
|
+
- type: text
|
36
|
+
text: " "
|
37
|
+
- type: table
|
38
|
+
content:
|
39
|
+
- type: table_row
|
40
|
+
content:
|
41
|
+
- type: table_cell
|
42
|
+
attrs:
|
43
|
+
colspan: 1
|
44
|
+
rowspan: 1
|
45
|
+
colwidth:
|
46
|
+
content:
|
47
|
+
- type: paragraph
|
48
|
+
content:
|
49
|
+
- type: text
|
50
|
+
marks:
|
51
|
+
- type: em
|
52
|
+
text: Country
|
53
|
+
- type: table_cell
|
54
|
+
attrs:
|
55
|
+
colspan: 1
|
56
|
+
rowspan: 1
|
57
|
+
colwidth:
|
58
|
+
content:
|
59
|
+
- type: paragraph
|
60
|
+
content:
|
61
|
+
- type: text
|
62
|
+
marks:
|
63
|
+
- type: em
|
64
|
+
text: Country Code (CC)
|
65
|
+
- type: table_row
|
66
|
+
content:
|
67
|
+
- type: table_cell
|
68
|
+
attrs:
|
69
|
+
colspan: 1
|
70
|
+
rowspan: 1
|
71
|
+
colwidth:
|
72
|
+
content:
|
73
|
+
- type: paragraph
|
74
|
+
content:
|
75
|
+
- type: text
|
76
|
+
text: Azerbaijan
|
77
|
+
- type: table_cell
|
78
|
+
attrs:
|
79
|
+
colspan: 1
|
80
|
+
rowspan: 1
|
81
|
+
colwidth:
|
82
|
+
content:
|
83
|
+
- type: paragraph
|
84
|
+
content:
|
85
|
+
- type: text
|
86
|
+
text: "+994"
|
87
|
+
- type: table_row
|
88
|
+
content:
|
89
|
+
- type: table_cell
|
90
|
+
attrs:
|
91
|
+
colspan: 1
|
92
|
+
rowspan: 1
|
93
|
+
colwidth:
|
94
|
+
content:
|
95
|
+
- type: paragraph
|
96
|
+
content:
|
97
|
+
- type: text
|
98
|
+
text: Brazil
|
99
|
+
- type: table_cell
|
100
|
+
attrs:
|
101
|
+
colspan: 1
|
102
|
+
rowspan: 1
|
103
|
+
colwidth:
|
104
|
+
content:
|
105
|
+
- type: paragraph
|
106
|
+
content:
|
107
|
+
- type: text
|
108
|
+
text: "+55"
|
109
|
+
- type: table_row
|
110
|
+
content:
|
111
|
+
- type: table_cell
|
112
|
+
attrs:
|
113
|
+
colspan: 1
|
114
|
+
rowspan: 1
|
115
|
+
colwidth:
|
116
|
+
content:
|
117
|
+
- type: paragraph
|
118
|
+
content:
|
119
|
+
- type: text
|
120
|
+
text: Burkina Faso
|
121
|
+
- type: table_cell
|
122
|
+
attrs:
|
123
|
+
colspan: 1
|
124
|
+
rowspan: 1
|
125
|
+
colwidth:
|
126
|
+
content:
|
127
|
+
- type: paragraph
|
128
|
+
content:
|
129
|
+
- type: text
|
130
|
+
text: "+226"
|
131
|
+
- type: table_row
|
132
|
+
content:
|
133
|
+
- type: table_cell
|
134
|
+
attrs:
|
135
|
+
colspan: 1
|
136
|
+
rowspan: 1
|
137
|
+
colwidth:
|
138
|
+
content:
|
139
|
+
- type: paragraph
|
140
|
+
content:
|
141
|
+
- type: text
|
142
|
+
text: Lebanon
|
143
|
+
- type: table_cell
|
144
|
+
attrs:
|
145
|
+
colspan: 1
|
146
|
+
rowspan: 1
|
147
|
+
colwidth:
|
148
|
+
content:
|
149
|
+
- type: paragraph
|
150
|
+
content:
|
151
|
+
- type: text
|
152
|
+
text: "+961"
|