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,381 @@
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  42"
15
+ },
16
+ {
17
+ "type": "text",
18
+ "text": "   "
19
+ },
20
+ {
21
+ "type": "text",
22
+ "marks": [
23
+ {
24
+ "type": "strong"
25
+ }
26
+ ],
27
+ "text": "Portugal"
28
+ },
29
+ {
30
+ "type": "text",
31
+ "text": "    "
32
+ },
33
+ {
34
+ "type": "text",
35
+ "marks": [
36
+ {
37
+ "type": "strong"
38
+ }
39
+ ],
40
+ "text": "ADD"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "paragraph",
46
+ "content": [
47
+ {
48
+ "type": "text",
49
+ "text": " "
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "type": "table",
55
+ "content": [
56
+ {
57
+ "type": "table_row",
58
+ "content": [
59
+ {
60
+ "type": "table_cell",
61
+ "attrs": {
62
+ "colspan": 1,
63
+ "rowspan": 1,
64
+ "colwidth": null
65
+ },
66
+ "content": [
67
+ {
68
+ "type": "paragraph",
69
+ "content": [
70
+ {
71
+ "type": "text",
72
+ "marks": [
73
+ {
74
+ "type": "em"
75
+ }
76
+ ],
77
+ "text": "Country/"
78
+ },
79
+ {
80
+ "type": "hard_break",
81
+ "marks": [
82
+ {
83
+ "type": "em"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "text",
89
+ "marks": [
90
+ {
91
+ "type": "em"
92
+ }
93
+ ],
94
+ "text": "geographical area"
95
+ }
96
+ ]
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "type": "table_cell",
102
+ "attrs": {
103
+ "colspan": 1,
104
+ "rowspan": 1,
105
+ "colwidth": null
106
+ },
107
+ "content": [
108
+ {
109
+ "type": "paragraph",
110
+ "content": [
111
+ {
112
+ "type": "text",
113
+ "marks": [
114
+ {
115
+ "type": "em"
116
+ }
117
+ ],
118
+ "text": "Company Name/Address"
119
+ }
120
+ ]
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "type": "table_cell",
126
+ "attrs": {
127
+ "colspan": 1,
128
+ "rowspan": 1,
129
+ "colwidth": null
130
+ },
131
+ "content": [
132
+ {
133
+ "type": "paragraph",
134
+ "content": [
135
+ {
136
+ "type": "text",
137
+ "marks": [
138
+ {
139
+ "type": "em"
140
+ }
141
+ ],
142
+ "text": "Issuer Identifier Number"
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ },
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
+ "marks": [
162
+ {
163
+ "type": "em"
164
+ }
165
+ ],
166
+ "text": "Contact"
167
+ }
168
+ ]
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ "type": "table_cell",
174
+ "attrs": {
175
+ "colspan": 1,
176
+ "rowspan": 1,
177
+ "colwidth": null
178
+ },
179
+ "content": [
180
+ {
181
+ "type": "paragraph",
182
+ "content": [
183
+ {
184
+ "type": "text",
185
+ "marks": [
186
+ {
187
+ "type": "em"
188
+ }
189
+ ],
190
+ "text": "Effective date of usage"
191
+ }
192
+ ]
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "type": "table_row",
200
+ "content": [
201
+ {
202
+ "type": "table_cell",
203
+ "attrs": {
204
+ "colspan": 1,
205
+ "rowspan": 1,
206
+ "colwidth": null
207
+ },
208
+ "content": [
209
+ {
210
+ "type": "paragraph",
211
+ "content": [
212
+ {
213
+ "type": "text",
214
+ "text": "Portugal"
215
+ }
216
+ ]
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "table_cell",
222
+ "attrs": {
223
+ "colspan": 1,
224
+ "rowspan": 1,
225
+ "colwidth": null
226
+ },
227
+ "content": [
228
+ {
229
+ "type": "paragraph",
230
+ "content": [
231
+ {
232
+ "type": "text",
233
+ "marks": [
234
+ {
235
+ "type": "strong"
236
+ }
237
+ ],
238
+ "text": "Telecomunicações Moveis Nacionais"
239
+ },
240
+ {
241
+ "type": "hard_break"
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Av.Alvaro País No 2"
246
+ },
247
+ {
248
+ "type": "hard_break"
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "1649-041 LISBOA"
253
+ },
254
+ {
255
+ "type": "hard_break"
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Portugal"
260
+ }
261
+ ]
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "type": "table_cell",
267
+ "attrs": {
268
+ "colspan": 1,
269
+ "rowspan": 1,
270
+ "colwidth": null
271
+ },
272
+ "content": [
273
+ {
274
+ "type": "paragraph",
275
+ "content": [
276
+ {
277
+ "type": "text",
278
+ "marks": [
279
+ {
280
+ "type": "strong"
281
+ }
282
+ ],
283
+ "text": "89 351 80"
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "type": "table_cell",
291
+ "attrs": {
292
+ "colspan": 1,
293
+ "rowspan": 1,
294
+ "colwidth": null
295
+ },
296
+ "content": [
297
+ {
298
+ "type": "paragraph",
299
+ "content": [
300
+ {
301
+ "type": "text",
302
+ "text": "Mr José Paulo Pires"
303
+ },
304
+ {
305
+ "type": "hard_break"
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Telecomunicações Moveis Nacionais"
310
+ },
311
+ {
312
+ "type": "hard_break"
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Av.Alvaro País No 2"
317
+ },
318
+ {
319
+ "type": "hard_break"
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "1649-041 LISBOA"
324
+ },
325
+ {
326
+ "type": "hard_break"
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "Portugal"
331
+ },
332
+ {
333
+ "type": "hard_break"
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "Tel:         +351 21 782 4248"
338
+ },
339
+ {
340
+ "type": "hard_break"
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Fax:        +351 21 791 4500"
345
+ },
346
+ {
347
+ "type": "hard_break"
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "E-mail:   jose-pires@telecom.pt"
352
+ }
353
+ ]
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "type": "table_cell",
359
+ "attrs": {
360
+ "colspan": 1,
361
+ "rowspan": 1,
362
+ "colwidth": null
363
+ },
364
+ "content": [
365
+ {
366
+ "type": "paragraph",
367
+ "content": [
368
+ {
369
+ "type": "text",
370
+ "text": "1.II.2012"
371
+ }
372
+ ]
373
+ }
374
+ ]
375
+ }
376
+ ]
377
+ }
378
+ ]
379
+ }
380
+ ]
381
+ }
@@ -0,0 +1,182 @@
1
+ ---
2
+ type: doc
3
+ content:
4
+ - type: paragraph
5
+ content:
6
+ - type: text
7
+ marks:
8
+ - type: strong
9
+ text: P  42
10
+ - type: text
11
+ text: "   "
12
+ - type: text
13
+ marks:
14
+ - type: strong
15
+ text: Portugal
16
+ - type: text
17
+ text: "    "
18
+ - type: text
19
+ marks:
20
+ - type: strong
21
+ text: ADD
22
+ - type: paragraph
23
+ content:
24
+ - type: text
25
+ text: " "
26
+ - type: table
27
+ content:
28
+ - type: table_row
29
+ content:
30
+ - type: table_cell
31
+ attrs:
32
+ colspan: 1
33
+ rowspan: 1
34
+ colwidth:
35
+ content:
36
+ - type: paragraph
37
+ content:
38
+ - type: text
39
+ marks:
40
+ - type: em
41
+ text: Country/
42
+ - type: hard_break
43
+ marks:
44
+ - type: em
45
+ - type: text
46
+ marks:
47
+ - type: em
48
+ text: geographical area
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
+ text: Company Name/Address
61
+ - type: table_cell
62
+ attrs:
63
+ colspan: 1
64
+ rowspan: 1
65
+ colwidth:
66
+ content:
67
+ - type: paragraph
68
+ content:
69
+ - type: text
70
+ marks:
71
+ - type: em
72
+ text: Issuer Identifier Number
73
+ - type: table_cell
74
+ attrs:
75
+ colspan: 1
76
+ rowspan: 1
77
+ colwidth:
78
+ content:
79
+ - type: paragraph
80
+ content:
81
+ - type: text
82
+ marks:
83
+ - type: em
84
+ text: Contact
85
+ - type: table_cell
86
+ attrs:
87
+ colspan: 1
88
+ rowspan: 1
89
+ colwidth:
90
+ content:
91
+ - type: paragraph
92
+ content:
93
+ - type: text
94
+ marks:
95
+ - type: em
96
+ text: Effective date of usage
97
+ - type: table_row
98
+ content:
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: Portugal
109
+ - type: table_cell
110
+ attrs:
111
+ colspan: 1
112
+ rowspan: 1
113
+ colwidth:
114
+ content:
115
+ - type: paragraph
116
+ content:
117
+ - type: text
118
+ marks:
119
+ - type: strong
120
+ text: Telecomunicações Moveis Nacionais
121
+ - type: hard_break
122
+ - type: text
123
+ text: Av.Alvaro País No 2
124
+ - type: hard_break
125
+ - type: text
126
+ text: 1649-041 LISBOA
127
+ - type: hard_break
128
+ - type: text
129
+ text: Portugal
130
+ - type: table_cell
131
+ attrs:
132
+ colspan: 1
133
+ rowspan: 1
134
+ colwidth:
135
+ content:
136
+ - type: paragraph
137
+ content:
138
+ - type: text
139
+ marks:
140
+ - type: strong
141
+ text: 89 351 80
142
+ - type: table_cell
143
+ attrs:
144
+ colspan: 1
145
+ rowspan: 1
146
+ colwidth:
147
+ content:
148
+ - type: paragraph
149
+ content:
150
+ - type: text
151
+ text: Mr José Paulo Pires
152
+ - type: hard_break
153
+ - type: text
154
+ text: Telecomunicações Moveis Nacionais
155
+ - type: hard_break
156
+ - type: text
157
+ text: Av.Alvaro País No 2
158
+ - type: hard_break
159
+ - type: text
160
+ text: 1649-041 LISBOA
161
+ - type: hard_break
162
+ - type: text
163
+ text: Portugal
164
+ - type: hard_break
165
+ - type: text
166
+ text: Tel:         +351 21 782 4248
167
+ - type: hard_break
168
+ - type: text
169
+ text: Fax:        +351 21 791 4500
170
+ - type: hard_break
171
+ - type: text
172
+ text: E-mail:   jose-pires@telecom.pt
173
+ - type: table_cell
174
+ attrs:
175
+ colspan: 1
176
+ rowspan: 1
177
+ colwidth:
178
+ content:
179
+ - type: paragraph
180
+ content:
181
+ - type: text
182
+ text: 1.II.2012