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.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/rake.yml +15 -0
  3. data/.github/workflows/release.yml +25 -0
  4. data/.gitignore +12 -0
  5. data/.rubocop.yml +1 -0
  6. data/.rubocop_todo.yml +228 -0
  7. data/CODE_OF_CONDUCT.md +132 -0
  8. data/Gemfile +10 -0
  9. data/README.adoc +268 -0
  10. data/Rakefile +12 -0
  11. data/debug_loading.rb +34 -0
  12. data/lib/prosereflect/document.rb +63 -0
  13. data/lib/prosereflect/hard_break.rb +22 -0
  14. data/lib/prosereflect/node.rb +77 -0
  15. data/lib/prosereflect/paragraph.rb +50 -0
  16. data/lib/prosereflect/parser.rb +56 -0
  17. data/lib/prosereflect/table.rb +64 -0
  18. data/lib/prosereflect/table_cell.rb +37 -0
  19. data/lib/prosereflect/table_row.rb +32 -0
  20. data/lib/prosereflect/text.rb +37 -0
  21. data/lib/prosereflect/version.rb +5 -0
  22. data/lib/prosereflect.rb +17 -0
  23. data/prosereflect.gemspec +33 -0
  24. data/sig/prosemirror.rbs +4 -0
  25. data/spec/fixtures/ituob-1000/ituob-1000-DP.json +366 -0
  26. data/spec/fixtures/ituob-1000/ituob-1000-DP.yaml +182 -0
  27. data/spec/fixtures/ituob-1000/ituob-1000-E118_IIN.json +381 -0
  28. data/spec/fixtures/ituob-1000/ituob-1000-E118_IIN.yaml +182 -0
  29. data/spec/fixtures/ituob-1000/ituob-1000-E164_ACN.json +203 -0
  30. data/spec/fixtures/ituob-1000/ituob-1000-E164_ACN.yaml +98 -0
  31. data/spec/fixtures/ituob-1000/ituob-1000-E212_MNC.json +202 -0
  32. data/spec/fixtures/ituob-1000/ituob-1000-E212_MNC.yaml +101 -0
  33. data/spec/fixtures/ituob-1000/ituob-1000-F32_TDI.json +6948 -0
  34. data/spec/fixtures/ituob-1000/ituob-1000-F32_TDI.yaml +3519 -0
  35. data/spec/fixtures/ituob-1000/ituob-1000-M1400_ICC.json +529 -0
  36. data/spec/fixtures/ituob-1000/ituob-1000-M1400_ICC.yaml +263 -0
  37. data/spec/fixtures/ituob-1000/ituob-1000-NNP.json +288 -0
  38. data/spec/fixtures/ituob-1000/ituob-1000-NNP.yaml +152 -0
  39. data/spec/fixtures/ituob-1000/ituob-1000-Q708_ISPC.json +1534 -0
  40. data/spec/fixtures/ituob-1000/ituob-1000-Q708_ISPC.yaml +789 -0
  41. data/spec/fixtures/ituob-1000/ituob-1000-Q708_SANC.json +252 -0
  42. data/spec/fixtures/ituob-1000/ituob-1000-Q708_SANC.yaml +123 -0
  43. data/spec/fixtures/ituob-1000/ituob-1000-R_SP_LM.V.json +428 -0
  44. data/spec/fixtures/ituob-1000/ituob-1000-R_SP_LM.V.yaml +208 -0
  45. data/spec/fixtures/ituob-1000/ituob-1000-T35_NA.json +621 -0
  46. data/spec/fixtures/ituob-1000/ituob-1000-T35_NA.yaml +317 -0
  47. data/spec/fixtures/ituob-1001/ituob-1001-DP.json +532 -0
  48. data/spec/fixtures/ituob-1001/ituob-1001-DP.yaml +266 -0
  49. data/spec/fixtures/ituob-1001/ituob-1001-E118_IIN.json +1093 -0
  50. data/spec/fixtures/ituob-1001/ituob-1001-E118_IIN.yaml +519 -0
  51. data/spec/fixtures/ituob-1001/ituob-1001-E164_ACN.json +449 -0
  52. data/spec/fixtures/ituob-1001/ituob-1001-E164_ACN.yaml +214 -0
  53. data/spec/fixtures/ituob-1001/ituob-1001-E164_CC.json +271 -0
  54. data/spec/fixtures/ituob-1001/ituob-1001-E164_CC.yaml +136 -0
  55. data/spec/fixtures/ituob-1001/ituob-1001-E212_MNC.json +199 -0
  56. data/spec/fixtures/ituob-1001/ituob-1001-E212_MNC.yaml +99 -0
  57. data/spec/fixtures/ituob-1001/ituob-1001-NNP.json +288 -0
  58. data/spec/fixtures/ituob-1001/ituob-1001-NNP.yaml +152 -0
  59. data/spec/fixtures/ituob-1001/ituob-1001-Q708_ISPC.json +960 -0
  60. data/spec/fixtures/ituob-1001/ituob-1001-Q708_ISPC.yaml +487 -0
  61. data/spec/prosereflect/document_spec.rb +149 -0
  62. data/spec/prosereflect/hard_break_spec.rb +51 -0
  63. data/spec/prosereflect/node_spec.rb +256 -0
  64. data/spec/prosereflect/paragraph_spec.rb +152 -0
  65. data/spec/prosereflect/parser_spec.rb +129 -0
  66. data/spec/prosereflect/table_cell_spec.rb +114 -0
  67. data/spec/prosereflect/table_row_spec.rb +77 -0
  68. data/spec/prosereflect/table_spec.rb +144 -0
  69. data/spec/prosereflect/text_spec.rb +116 -0
  70. data/spec/prosereflect/version_spec.rb +11 -0
  71. data/spec/prosereflect_spec.rb +57 -0
  72. data/spec/spec_helper.rb +21 -0
  73. data/spec/support/matchers.rb +131 -0
  74. data/spec/support/shared_examples.rb +220 -0
  75. metadata +133 -0
@@ -0,0 +1,263 @@
1
+ ---
2
+ type: doc
3
+ content:
4
+ - type: table
5
+ content:
6
+ - type: table_row
7
+ content:
8
+ - type: table_cell
9
+ attrs:
10
+ colspan: 1
11
+ rowspan: 1
12
+ colwidth:
13
+ content:
14
+ - type: paragraph
15
+ content:
16
+ - type: text
17
+ marks:
18
+ - type: em
19
+ - type: strong
20
+ text: Country or area/ISO code             
21
+ - type: table_cell
22
+ attrs:
23
+ colspan: 1
24
+ rowspan: 1
25
+ colwidth:
26
+ content:
27
+ - type: paragraph
28
+ content:
29
+ - type: text
30
+ marks:
31
+ - type: em
32
+ - type: strong
33
+ text: Company Code
34
+ - type: table_cell
35
+ attrs:
36
+ colspan: 1
37
+ rowspan: 1
38
+ colwidth:
39
+ content:
40
+ - type: paragraph
41
+ content:
42
+ - type: text
43
+ marks:
44
+ - type: em
45
+ - type: strong
46
+ text: Contact
47
+ - type: table_row
48
+ content:
49
+ - type: table_cell
50
+ attrs:
51
+ colspan: 1
52
+ rowspan: 1
53
+ colwidth:
54
+ content:
55
+ - type: paragraph
56
+ content:
57
+ - type: text
58
+ marks:
59
+ - type: em
60
+ - type: strong
61
+ text: Company Name/Address             
62
+ - type: table_cell
63
+ attrs:
64
+ colspan: 1
65
+ rowspan: 1
66
+ colwidth:
67
+ content:
68
+ - type: paragraph
69
+ content:
70
+ - type: text
71
+ marks:
72
+ - type: em
73
+ - type: strong
74
+ text: "(carrier code)"
75
+ - type: table_cell
76
+ attrs:
77
+ colspan: 1
78
+ rowspan: 1
79
+ colwidth:
80
+ content:
81
+ - type: paragraph
82
+ content:
83
+ - type: text
84
+ marks:
85
+ - type: em
86
+ - type: strong
87
+ text: " "
88
+ - type: paragraph
89
+ content:
90
+ - type: text
91
+ text: " "
92
+ - type: paragraph
93
+ content:
94
+ - type: text
95
+ marks:
96
+ - type: strong
97
+ text: P  19   Djibouti (Republic of) / DJI
98
+ - type: paragraph
99
+ content:
100
+ - type: text
101
+ text: " "
102
+ - type: table
103
+ content:
104
+ - type: table_row
105
+ content:
106
+ - type: table_cell
107
+ attrs:
108
+ colspan: 1
109
+ rowspan: 1
110
+ colwidth:
111
+ content:
112
+ - type: paragraph
113
+ content:
114
+ - type: text
115
+ text: Djibouti (République de) / DJI
116
+ - type: table_cell
117
+ attrs:
118
+ colspan: 1
119
+ rowspan: 1
120
+ colwidth:
121
+ content:
122
+ - type: paragraph
123
+ content:
124
+ - type: text
125
+ text: " "
126
+ - type: table_cell
127
+ attrs:
128
+ colspan: 1
129
+ rowspan: 1
130
+ colwidth:
131
+ content:
132
+ - type: paragraph
133
+ content:
134
+ - type: text
135
+ text: " "
136
+ - type: table_row
137
+ content:
138
+ - type: table_cell
139
+ attrs:
140
+ colspan: 1
141
+ rowspan: 1
142
+ colwidth:
143
+ content:
144
+ - type: paragraph
145
+ content:
146
+ - type: text
147
+ text: Djibouti Telecom
148
+ - type: table_cell
149
+ attrs:
150
+ colspan: 1
151
+ rowspan: 1
152
+ colwidth:
153
+ content:
154
+ - type: paragraph
155
+ content:
156
+ - type: text
157
+ text: STID
158
+ - type: table_cell
159
+ attrs:
160
+ colspan: 1
161
+ rowspan: 1
162
+ colwidth:
163
+ content:
164
+ - type: paragraph
165
+ content:
166
+ - type: text
167
+ text: Pierre Bourgon
168
+ - type: table_row
169
+ content:
170
+ - type: table_cell
171
+ attrs:
172
+ colspan: 1
173
+ rowspan: 1
174
+ colwidth:
175
+ content:
176
+ - type: paragraph
177
+ content:
178
+ - type: text
179
+ text: BP  2031
180
+ - type: table_cell
181
+ attrs:
182
+ colspan: 1
183
+ rowspan: 1
184
+ colwidth:
185
+ content:
186
+ - type: paragraph
187
+ content:
188
+ - type: text
189
+ text: " "
190
+ - type: table_cell
191
+ attrs:
192
+ colspan: 1
193
+ rowspan: 1
194
+ colwidth:
195
+ content:
196
+ - type: paragraph
197
+ content:
198
+ - type: text
199
+ text: Tel +253  21 353 338
200
+ - type: table_row
201
+ content:
202
+ - type: table_cell
203
+ attrs:
204
+ colspan: 1
205
+ rowspan: 1
206
+ colwidth:
207
+ content:
208
+ - type: paragraph
209
+ content:
210
+ - type: text
211
+ text: DJIBOUTI
212
+ - type: table_cell
213
+ attrs:
214
+ colspan: 1
215
+ rowspan: 1
216
+ colwidth:
217
+ content:
218
+ - type: paragraph
219
+ content:
220
+ - type: text
221
+ text: " "
222
+ - type: table_cell
223
+ attrs:
224
+ colspan: 1
225
+ rowspan: 1
226
+ colwidth:
227
+ content:
228
+ - type: paragraph
229
+ content:
230
+ - type: text
231
+ text: Fax +253  21350 109
232
+ - type: table_row
233
+ content:
234
+ - type: table_cell
235
+ attrs:
236
+ colspan: 1
237
+ rowspan: 1
238
+ colwidth:
239
+ content:
240
+ - type: paragraph
241
+ content:
242
+ - type: text
243
+ text: " "
244
+ - type: table_cell
245
+ attrs:
246
+ colspan: 1
247
+ rowspan: 1
248
+ colwidth:
249
+ content:
250
+ - type: paragraph
251
+ content:
252
+ - type: text
253
+ text: " "
254
+ - type: table_cell
255
+ attrs:
256
+ colspan: 1
257
+ rowspan: 1
258
+ colwidth:
259
+ content:
260
+ - type: paragraph
261
+ content:
262
+ - type: text
263
+ text: E-mail
@@ -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 15.II.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": "Costa Rica"
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": "+506"
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": "Cuba"
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": "+53"
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": "Djibouti"
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": "+253"
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": "Uganda"
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": "+256"
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 15.II.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: Costa Rica
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: "+506"
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: Cuba
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: "+53"
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: Djibouti
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: "+253"
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: Uganda
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: "+256"