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