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,529 @@
1
+ {
2
+ "type": "doc",
3
+ "content": [
4
+ {
5
+ "type": "table",
6
+ "content": [
7
+ {
8
+ "type": "table_row",
9
+ "content": [
10
+ {
11
+ "type": "table_cell",
12
+ "attrs": {
13
+ "colspan": 1,
14
+ "rowspan": 1,
15
+ "colwidth": null
16
+ },
17
+ "content": [
18
+ {
19
+ "type": "paragraph",
20
+ "content": [
21
+ {
22
+ "type": "text",
23
+ "marks": [
24
+ {
25
+ "type": "em"
26
+ },
27
+ {
28
+ "type": "strong"
29
+ }
30
+ ],
31
+ "text": "Country or area/ISO code             "
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "type": "table_cell",
39
+ "attrs": {
40
+ "colspan": 1,
41
+ "rowspan": 1,
42
+ "colwidth": null
43
+ },
44
+ "content": [
45
+ {
46
+ "type": "paragraph",
47
+ "content": [
48
+ {
49
+ "type": "text",
50
+ "marks": [
51
+ {
52
+ "type": "em"
53
+ },
54
+ {
55
+ "type": "strong"
56
+ }
57
+ ],
58
+ "text": "Company Code"
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "type": "table_cell",
66
+ "attrs": {
67
+ "colspan": 1,
68
+ "rowspan": 1,
69
+ "colwidth": null
70
+ },
71
+ "content": [
72
+ {
73
+ "type": "paragraph",
74
+ "content": [
75
+ {
76
+ "type": "text",
77
+ "marks": [
78
+ {
79
+ "type": "em"
80
+ },
81
+ {
82
+ "type": "strong"
83
+ }
84
+ ],
85
+ "text": "Contact"
86
+ }
87
+ ]
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "type": "table_row",
95
+ "content": [
96
+ {
97
+ "type": "table_cell",
98
+ "attrs": {
99
+ "colspan": 1,
100
+ "rowspan": 1,
101
+ "colwidth": null
102
+ },
103
+ "content": [
104
+ {
105
+ "type": "paragraph",
106
+ "content": [
107
+ {
108
+ "type": "text",
109
+ "marks": [
110
+ {
111
+ "type": "em"
112
+ },
113
+ {
114
+ "type": "strong"
115
+ }
116
+ ],
117
+ "text": "Company Name/Address             "
118
+ }
119
+ ]
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "type": "table_cell",
125
+ "attrs": {
126
+ "colspan": 1,
127
+ "rowspan": 1,
128
+ "colwidth": null
129
+ },
130
+ "content": [
131
+ {
132
+ "type": "paragraph",
133
+ "content": [
134
+ {
135
+ "type": "text",
136
+ "marks": [
137
+ {
138
+ "type": "em"
139
+ },
140
+ {
141
+ "type": "strong"
142
+ }
143
+ ],
144
+ "text": "(carrier code)"
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "type": "table_cell",
152
+ "attrs": {
153
+ "colspan": 1,
154
+ "rowspan": 1,
155
+ "colwidth": null
156
+ },
157
+ "content": [
158
+ {
159
+ "type": "paragraph",
160
+ "content": [
161
+ {
162
+ "type": "text",
163
+ "marks": [
164
+ {
165
+ "type": "em"
166
+ },
167
+ {
168
+ "type": "strong"
169
+ }
170
+ ],
171
+ "text": " "
172
+ }
173
+ ]
174
+ }
175
+ ]
176
+ }
177
+ ]
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "type": "paragraph",
183
+ "content": [
184
+ {
185
+ "type": "text",
186
+ "text": " "
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "type": "paragraph",
192
+ "content": [
193
+ {
194
+ "type": "text",
195
+ "marks": [
196
+ {
197
+ "type": "strong"
198
+ }
199
+ ],
200
+ "text": "P  19   Djibouti (Republic of) / DJI"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "type": "paragraph",
206
+ "content": [
207
+ {
208
+ "type": "text",
209
+ "text": " "
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "type": "table",
215
+ "content": [
216
+ {
217
+ "type": "table_row",
218
+ "content": [
219
+ {
220
+ "type": "table_cell",
221
+ "attrs": {
222
+ "colspan": 1,
223
+ "rowspan": 1,
224
+ "colwidth": null
225
+ },
226
+ "content": [
227
+ {
228
+ "type": "paragraph",
229
+ "content": [
230
+ {
231
+ "type": "text",
232
+ "text": "Djibouti (République de) / DJI"
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "type": "table_cell",
240
+ "attrs": {
241
+ "colspan": 1,
242
+ "rowspan": 1,
243
+ "colwidth": null
244
+ },
245
+ "content": [
246
+ {
247
+ "type": "paragraph",
248
+ "content": [
249
+ {
250
+ "type": "text",
251
+ "text": " "
252
+ }
253
+ ]
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "type": "table_cell",
259
+ "attrs": {
260
+ "colspan": 1,
261
+ "rowspan": 1,
262
+ "colwidth": null
263
+ },
264
+ "content": [
265
+ {
266
+ "type": "paragraph",
267
+ "content": [
268
+ {
269
+ "type": "text",
270
+ "text": " "
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "type": "table_row",
280
+ "content": [
281
+ {
282
+ "type": "table_cell",
283
+ "attrs": {
284
+ "colspan": 1,
285
+ "rowspan": 1,
286
+ "colwidth": null
287
+ },
288
+ "content": [
289
+ {
290
+ "type": "paragraph",
291
+ "content": [
292
+ {
293
+ "type": "text",
294
+ "text": "Djibouti Telecom"
295
+ }
296
+ ]
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "type": "table_cell",
302
+ "attrs": {
303
+ "colspan": 1,
304
+ "rowspan": 1,
305
+ "colwidth": null
306
+ },
307
+ "content": [
308
+ {
309
+ "type": "paragraph",
310
+ "content": [
311
+ {
312
+ "type": "text",
313
+ "text": "STID"
314
+ }
315
+ ]
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "type": "table_cell",
321
+ "attrs": {
322
+ "colspan": 1,
323
+ "rowspan": 1,
324
+ "colwidth": null
325
+ },
326
+ "content": [
327
+ {
328
+ "type": "paragraph",
329
+ "content": [
330
+ {
331
+ "type": "text",
332
+ "text": "Pierre Bourgon"
333
+ }
334
+ ]
335
+ }
336
+ ]
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "type": "table_row",
342
+ "content": [
343
+ {
344
+ "type": "table_cell",
345
+ "attrs": {
346
+ "colspan": 1,
347
+ "rowspan": 1,
348
+ "colwidth": null
349
+ },
350
+ "content": [
351
+ {
352
+ "type": "paragraph",
353
+ "content": [
354
+ {
355
+ "type": "text",
356
+ "text": "BP  2031"
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "type": "table_cell",
364
+ "attrs": {
365
+ "colspan": 1,
366
+ "rowspan": 1,
367
+ "colwidth": null
368
+ },
369
+ "content": [
370
+ {
371
+ "type": "paragraph",
372
+ "content": [
373
+ {
374
+ "type": "text",
375
+ "text": " "
376
+ }
377
+ ]
378
+ }
379
+ ]
380
+ },
381
+ {
382
+ "type": "table_cell",
383
+ "attrs": {
384
+ "colspan": 1,
385
+ "rowspan": 1,
386
+ "colwidth": null
387
+ },
388
+ "content": [
389
+ {
390
+ "type": "paragraph",
391
+ "content": [
392
+ {
393
+ "type": "text",
394
+ "text": "Tel +253  21 353 338"
395
+ }
396
+ ]
397
+ }
398
+ ]
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "type": "table_row",
404
+ "content": [
405
+ {
406
+ "type": "table_cell",
407
+ "attrs": {
408
+ "colspan": 1,
409
+ "rowspan": 1,
410
+ "colwidth": null
411
+ },
412
+ "content": [
413
+ {
414
+ "type": "paragraph",
415
+ "content": [
416
+ {
417
+ "type": "text",
418
+ "text": "DJIBOUTI"
419
+ }
420
+ ]
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "type": "table_cell",
426
+ "attrs": {
427
+ "colspan": 1,
428
+ "rowspan": 1,
429
+ "colwidth": null
430
+ },
431
+ "content": [
432
+ {
433
+ "type": "paragraph",
434
+ "content": [
435
+ {
436
+ "type": "text",
437
+ "text": " "
438
+ }
439
+ ]
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "type": "table_cell",
445
+ "attrs": {
446
+ "colspan": 1,
447
+ "rowspan": 1,
448
+ "colwidth": null
449
+ },
450
+ "content": [
451
+ {
452
+ "type": "paragraph",
453
+ "content": [
454
+ {
455
+ "type": "text",
456
+ "text": "Fax +253  21350 109"
457
+ }
458
+ ]
459
+ }
460
+ ]
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "type": "table_row",
466
+ "content": [
467
+ {
468
+ "type": "table_cell",
469
+ "attrs": {
470
+ "colspan": 1,
471
+ "rowspan": 1,
472
+ "colwidth": null
473
+ },
474
+ "content": [
475
+ {
476
+ "type": "paragraph",
477
+ "content": [
478
+ {
479
+ "type": "text",
480
+ "text": " "
481
+ }
482
+ ]
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ "type": "table_cell",
488
+ "attrs": {
489
+ "colspan": 1,
490
+ "rowspan": 1,
491
+ "colwidth": null
492
+ },
493
+ "content": [
494
+ {
495
+ "type": "paragraph",
496
+ "content": [
497
+ {
498
+ "type": "text",
499
+ "text": " "
500
+ }
501
+ ]
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "type": "table_cell",
507
+ "attrs": {
508
+ "colspan": 1,
509
+ "rowspan": 1,
510
+ "colwidth": null
511
+ },
512
+ "content": [
513
+ {
514
+ "type": "paragraph",
515
+ "content": [
516
+ {
517
+ "type": "text",
518
+ "text": "E-mail"
519
+ }
520
+ ]
521
+ }
522
+ ]
523
+ }
524
+ ]
525
+ }
526
+ ]
527
+ }
528
+ ]
529
+ }