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,621 @@
1
+ {
2
+ "type": "doc",
3
+ "content": [
4
+ {
5
+ "type": "paragraph",
6
+ "content": [
7
+ {
8
+ "type": "text",
9
+ "marks": [
10
+ {
11
+ "type": "strong"
12
+ }
13
+ ],
14
+ "text": "P  7   ADD Norway"
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "type": "paragraph",
20
+ "content": [
21
+ {
22
+ "type": "text",
23
+ "text": " "
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "type": "table",
29
+ "content": [
30
+ {
31
+ "type": "table_row",
32
+ "content": [
33
+ {
34
+ "type": "table_cell",
35
+ "attrs": {
36
+ "colspan": 2,
37
+ "rowspan": 1,
38
+ "colwidth": null
39
+ },
40
+ "content": [
41
+ {
42
+ "type": "paragraph",
43
+ "content": [
44
+ {
45
+ "type": "text",
46
+ "text": "Norway"
47
+ }
48
+ ]
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "type": "table_row",
56
+ "content": [
57
+ {
58
+ "type": "table_cell",
59
+ "attrs": {
60
+ "colspan": 1,
61
+ "rowspan": 1,
62
+ "colwidth": null
63
+ },
64
+ "content": [
65
+ {
66
+ "type": "paragraph",
67
+ "content": [
68
+ {
69
+ "type": "text",
70
+ "text": "Name of Administration:"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "type": "table_cell",
78
+ "attrs": {
79
+ "colspan": 1,
80
+ "rowspan": 1,
81
+ "colwidth": null
82
+ },
83
+ "content": [
84
+ {
85
+ "type": "paragraph",
86
+ "content": [
87
+ {
88
+ "type": "text",
89
+ "text": "Norwegian Post and Telecommunications Authority"
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "type": "table_row",
99
+ "content": [
100
+ {
101
+ "type": "table_cell",
102
+ "attrs": {
103
+ "colspan": 2,
104
+ "rowspan": 1,
105
+ "colwidth": null
106
+ },
107
+ "content": [
108
+ {
109
+ "type": "paragraph",
110
+ "content": [
111
+ {
112
+ "type": "text",
113
+ "text": "National manufacturers of H-, T- or V-Series compliant equipment? YES"
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "type": "table_row",
123
+ "content": [
124
+ {
125
+ "type": "table_cell",
126
+ "attrs": {
127
+ "colspan": 2,
128
+ "rowspan": 1,
129
+ "colwidth": null
130
+ },
131
+ "content": [
132
+ {
133
+ "type": "paragraph",
134
+ "content": [
135
+ {
136
+ "type": "text",
137
+ "text": "Assignment authority:"
138
+ }
139
+ ]
140
+ }
141
+ ]
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "type": "table_row",
147
+ "content": [
148
+ {
149
+ "type": "table_cell",
150
+ "attrs": {
151
+ "colspan": 1,
152
+ "rowspan": 1,
153
+ "colwidth": null
154
+ },
155
+ "content": [
156
+ {
157
+ "type": "paragraph",
158
+ "content": [
159
+ {
160
+ "type": "text",
161
+ "text": "Terminal Type:"
162
+ }
163
+ ]
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "table_cell",
169
+ "attrs": {
170
+ "colspan": 1,
171
+ "rowspan": 1,
172
+ "colwidth": null
173
+ },
174
+ "content": [
175
+ {
176
+ "type": "paragraph",
177
+ "content": [
178
+ {
179
+ "type": "text",
180
+ "text": "H-Series"
181
+ }
182
+ ]
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "type": "table_row",
190
+ "content": [
191
+ {
192
+ "type": "table_cell",
193
+ "attrs": {
194
+ "colspan": 1,
195
+ "rowspan": 1,
196
+ "colwidth": null
197
+ },
198
+ "content": [
199
+ {
200
+ "type": "paragraph",
201
+ "content": [
202
+ {
203
+ "type": "text",
204
+ "text": "Contact name:"
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "type": "table_cell",
212
+ "attrs": {
213
+ "colspan": 1,
214
+ "rowspan": 1,
215
+ "colwidth": null
216
+ },
217
+ "content": [
218
+ {
219
+ "type": "paragraph",
220
+ "content": [
221
+ {
222
+ "type": "text",
223
+ "text": "Anne Thomassen, Hege Johnson, Johannes M Vallesverd"
224
+ }
225
+ ]
226
+ }
227
+ ]
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "type": "table_row",
233
+ "content": [
234
+ {
235
+ "type": "table_cell",
236
+ "attrs": {
237
+ "colspan": 1,
238
+ "rowspan": 1,
239
+ "colwidth": null
240
+ },
241
+ "content": [
242
+ {
243
+ "type": "paragraph",
244
+ "content": [
245
+ {
246
+ "type": "text",
247
+ "text": "Organization:"
248
+ }
249
+ ]
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "type": "table_cell",
255
+ "attrs": {
256
+ "colspan": 1,
257
+ "rowspan": 1,
258
+ "colwidth": null
259
+ },
260
+ "content": [
261
+ {
262
+ "type": "paragraph",
263
+ "content": [
264
+ {
265
+ "type": "text",
266
+ "text": "Norwegian Post and Telecommunications Authority"
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "type": "table_row",
276
+ "content": [
277
+ {
278
+ "type": "table_cell",
279
+ "attrs": {
280
+ "colspan": 1,
281
+ "rowspan": 1,
282
+ "colwidth": null
283
+ },
284
+ "content": [
285
+ {
286
+ "type": "paragraph",
287
+ "content": [
288
+ {
289
+ "type": "text",
290
+ "text": "Department:"
291
+ }
292
+ ]
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "table_cell",
298
+ "attrs": {
299
+ "colspan": 1,
300
+ "rowspan": 1,
301
+ "colwidth": null
302
+ },
303
+ "content": [
304
+ {
305
+ "type": "paragraph",
306
+ "content": [
307
+ {
308
+ "type": "text",
309
+ "text": "Section for telephony and number management"
310
+ }
311
+ ]
312
+ }
313
+ ]
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "type": "table_row",
319
+ "content": [
320
+ {
321
+ "type": "table_cell",
322
+ "attrs": {
323
+ "colspan": 1,
324
+ "rowspan": 1,
325
+ "colwidth": null
326
+ },
327
+ "content": [
328
+ {
329
+ "type": "paragraph",
330
+ "content": [
331
+ {
332
+ "type": "text",
333
+ "text": "Address:"
334
+ }
335
+ ]
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "type": "table_cell",
341
+ "attrs": {
342
+ "colspan": 1,
343
+ "rowspan": 1,
344
+ "colwidth": null
345
+ },
346
+ "content": [
347
+ {
348
+ "type": "paragraph",
349
+ "content": [
350
+ {
351
+ "type": "text",
352
+ "text": "Postbox 93, 4791 Lillesand, Norway"
353
+ }
354
+ ]
355
+ }
356
+ ]
357
+ }
358
+ ]
359
+ },
360
+ {
361
+ "type": "table_row",
362
+ "content": [
363
+ {
364
+ "type": "table_cell",
365
+ "attrs": {
366
+ "colspan": 1,
367
+ "rowspan": 1,
368
+ "colwidth": null
369
+ },
370
+ "content": [
371
+ {
372
+ "type": "paragraph",
373
+ "content": [
374
+ {
375
+ "type": "text",
376
+ "text": "Telephone:"
377
+ }
378
+ ]
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "type": "table_cell",
384
+ "attrs": {
385
+ "colspan": 1,
386
+ "rowspan": 1,
387
+ "colwidth": null
388
+ },
389
+ "content": [
390
+ {
391
+ "type": "paragraph",
392
+ "content": [
393
+ {
394
+ "type": "text",
395
+ "text": "+ 47 22 82 46 00"
396
+ }
397
+ ]
398
+ }
399
+ ]
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "type": "table_row",
405
+ "content": [
406
+ {
407
+ "type": "table_cell",
408
+ "attrs": {
409
+ "colspan": 1,
410
+ "rowspan": 1,
411
+ "colwidth": null
412
+ },
413
+ "content": [
414
+ {
415
+ "type": "paragraph",
416
+ "content": [
417
+ {
418
+ "type": "text",
419
+ "text": "Fax:"
420
+ }
421
+ ]
422
+ }
423
+ ]
424
+ },
425
+ {
426
+ "type": "table_cell",
427
+ "attrs": {
428
+ "colspan": 1,
429
+ "rowspan": 1,
430
+ "colwidth": null
431
+ },
432
+ "content": [
433
+ {
434
+ "type": "paragraph",
435
+ "content": [
436
+ {
437
+ "type": "text",
438
+ "text": "+ 47 22 82 46 40"
439
+ }
440
+ ]
441
+ }
442
+ ]
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "type": "table_row",
448
+ "content": [
449
+ {
450
+ "type": "table_cell",
451
+ "attrs": {
452
+ "colspan": 1,
453
+ "rowspan": 1,
454
+ "colwidth": null
455
+ },
456
+ "content": [
457
+ {
458
+ "type": "paragraph",
459
+ "content": [
460
+ {
461
+ "type": "text",
462
+ "text": "E-mail:"
463
+ }
464
+ ]
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "type": "table_cell",
470
+ "attrs": {
471
+ "colspan": 1,
472
+ "rowspan": 1,
473
+ "colwidth": null
474
+ },
475
+ "content": [
476
+ {
477
+ "type": "paragraph",
478
+ "content": [
479
+ {
480
+ "type": "text",
481
+ "marks": [
482
+ {
483
+ "type": "link",
484
+ "attrs": {
485
+ "href": "mailto:firmapost@npt.no",
486
+ "title": null
487
+ }
488
+ }
489
+ ],
490
+ "text": "firmapost@npt.no"
491
+ }
492
+ ]
493
+ }
494
+ ]
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "type": "table_row",
500
+ "content": [
501
+ {
502
+ "type": "table_cell",
503
+ "attrs": {
504
+ "colspan": 1,
505
+ "rowspan": 1,
506
+ "colwidth": null
507
+ },
508
+ "content": [
509
+ {
510
+ "type": "paragraph",
511
+ "content": [
512
+ {
513
+ "type": "text",
514
+ "text": "Related links:"
515
+ }
516
+ ]
517
+ }
518
+ ]
519
+ },
520
+ {
521
+ "type": "table_cell",
522
+ "attrs": {
523
+ "colspan": 1,
524
+ "rowspan": 1,
525
+ "colwidth": null
526
+ },
527
+ "content": [
528
+ {
529
+ "type": "paragraph",
530
+ "content": [
531
+ {
532
+ "type": "text",
533
+ "marks": [
534
+ {
535
+ "type": "link",
536
+ "attrs": {
537
+ "href": "http://www.npt.no/portal/page/portal/PG_NPT_NO_NO/PAG_NPT_NO_HOME/PAG_RESSURSER_TEKST?p_d_i=-121&p_d_c=&p_d_v=48006&menuid=11697",
538
+ "title": null
539
+ }
540
+ }
541
+ ],
542
+ "text": "http://www.npt.no/portal/page/portal/PG_NPT_NO_NO/PAG_"
543
+ },
544
+ {
545
+ "type": "hard_break",
546
+ "marks": [
547
+ {
548
+ "type": "link",
549
+ "attrs": {
550
+ "href": "http://www.npt.no/portal/page/portal/PG_NPT_NO_NO/PAG_NPT_NO_HOME/PAG_RESSURSER_TEKST?p_d_i=-121&p_d_c=&p_d_v=48006&menuid=11697",
551
+ "title": null
552
+ }
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "type": "text",
558
+ "marks": [
559
+ {
560
+ "type": "link",
561
+ "attrs": {
562
+ "href": "http://www.npt.no/portal/page/portal/PG_NPT_NO_NO/PAG_NPT_NO_HOME/PAG_RESSURSER_TEKST?p_d_i=-121&p_d_c=&p_d_v=48006&menuid=11697",
563
+ "title": null
564
+ }
565
+ }
566
+ ],
567
+ "text": "NPT_NO_HOME/PAG_RESSURSER_TEKST?p_d_i=-121&p_d_c=&p_d_v=48006&menuid=11697"
568
+ }
569
+ ]
570
+ }
571
+ ]
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "type": "table_row",
577
+ "content": [
578
+ {
579
+ "type": "table_cell",
580
+ "attrs": {
581
+ "colspan": 1,
582
+ "rowspan": 1,
583
+ "colwidth": null
584
+ },
585
+ "content": [
586
+ {
587
+ "type": "paragraph",
588
+ "content": [
589
+ {
590
+ "type": "text",
591
+ "text": "Information updated:"
592
+ }
593
+ ]
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "type": "table_cell",
599
+ "attrs": {
600
+ "colspan": 1,
601
+ "rowspan": 1,
602
+ "colwidth": null
603
+ },
604
+ "content": [
605
+ {
606
+ "type": "paragraph",
607
+ "content": [
608
+ {
609
+ "type": "text",
610
+ "text": "28.II.2012"
611
+ }
612
+ ]
613
+ }
614
+ ]
615
+ }
616
+ ]
617
+ }
618
+ ]
619
+ }
620
+ ]
621
+ }