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,252 @@
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": 3,
14
+ "rowspan": 1,
15
+ "colwidth": null
16
+ },
17
+ "content": [
18
+ {
19
+ "type": "paragraph",
20
+ "content": [
21
+ {
22
+ "type": "text",
23
+ "marks": [
24
+ {
25
+ "type": "strong"
26
+ }
27
+ ],
28
+ "text": "Numerical order     ADD"
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "type": "table_row",
38
+ "content": [
39
+ {
40
+ "type": "table_cell",
41
+ "attrs": {
42
+ "colspan": 1,
43
+ "rowspan": 1,
44
+ "colwidth": null
45
+ },
46
+ "content": [
47
+ {
48
+ "type": "paragraph",
49
+ "content": [
50
+ {
51
+ "type": "text",
52
+ "marks": [
53
+ {
54
+ "type": "strong"
55
+ }
56
+ ],
57
+ "text": "P  11"
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ },
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
+ "text": "3-229"
77
+ }
78
+ ]
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "type": "table_cell",
84
+ "attrs": {
85
+ "colspan": 1,
86
+ "rowspan": 1,
87
+ "colwidth": null
88
+ },
89
+ "content": [
90
+ {
91
+ "type": "paragraph",
92
+ "content": [
93
+ {
94
+ "type": "text",
95
+ "text": "Sweden"
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "type": "paragraph",
107
+ "content": [
108
+ {
109
+ "type": "text",
110
+ "text": " "
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "type": "table",
116
+ "content": [
117
+ {
118
+ "type": "table_row",
119
+ "content": [
120
+ {
121
+ "type": "table_cell",
122
+ "attrs": {
123
+ "colspan": 3,
124
+ "rowspan": 1,
125
+ "colwidth": null
126
+ },
127
+ "content": [
128
+ {
129
+ "type": "paragraph",
130
+ "content": [
131
+ {
132
+ "type": "text",
133
+ "marks": [
134
+ {
135
+ "type": "strong"
136
+ }
137
+ ],
138
+ "text": "Alphabetical order    ADD"
139
+ }
140
+ ]
141
+ }
142
+ ]
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "type": "table_row",
148
+ "content": [
149
+ {
150
+ "type": "table_cell",
151
+ "attrs": {
152
+ "colspan": 1,
153
+ "rowspan": 1,
154
+ "colwidth": null
155
+ },
156
+ "content": [
157
+ {
158
+ "type": "paragraph",
159
+ "content": [
160
+ {
161
+ "type": "text",
162
+ "marks": [
163
+ {
164
+ "type": "strong"
165
+ }
166
+ ],
167
+ "text": "P  39"
168
+ }
169
+ ]
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "type": "table_cell",
175
+ "attrs": {
176
+ "colspan": 1,
177
+ "rowspan": 1,
178
+ "colwidth": null
179
+ },
180
+ "content": [
181
+ {
182
+ "type": "paragraph",
183
+ "content": [
184
+ {
185
+ "type": "text",
186
+ "text": "3-229"
187
+ }
188
+ ]
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "table_cell",
194
+ "attrs": {
195
+ "colspan": 1,
196
+ "rowspan": 1,
197
+ "colwidth": null
198
+ },
199
+ "content": [
200
+ {
201
+ "type": "paragraph",
202
+ "content": [
203
+ {
204
+ "type": "text",
205
+ "text": "Sweden"
206
+ }
207
+ ]
208
+ }
209
+ ]
210
+ }
211
+ ]
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "type": "paragraph",
217
+ "content": [
218
+ {
219
+ "type": "text",
220
+ "text": "____________"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "type": "paragraph",
226
+ "content": [
227
+ {
228
+ "type": "text",
229
+ "text": "SANC:    Signalling Area/Network Code."
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "type": "paragraph",
235
+ "content": [
236
+ {
237
+ "type": "text",
238
+ "text": "              Code de zone/réseau sémaphore (CZRS)."
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "type": "paragraph",
244
+ "content": [
245
+ {
246
+ "type": "text",
247
+ "text": "              Código de zona/red de señalización (CZRS)."
248
+ }
249
+ ]
250
+ }
251
+ ]
252
+ }
@@ -0,0 +1,123 @@
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: 3
11
+ rowspan: 1
12
+ colwidth:
13
+ content:
14
+ - type: paragraph
15
+ content:
16
+ - type: text
17
+ marks:
18
+ - type: strong
19
+ text: Numerical order     ADD
20
+ - type: table_row
21
+ content:
22
+ - type: table_cell
23
+ attrs:
24
+ colspan: 1
25
+ rowspan: 1
26
+ colwidth:
27
+ content:
28
+ - type: paragraph
29
+ content:
30
+ - type: text
31
+ marks:
32
+ - type: strong
33
+ text: P  11
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
+ text: 3-229
44
+ - type: table_cell
45
+ attrs:
46
+ colspan: 1
47
+ rowspan: 1
48
+ colwidth:
49
+ content:
50
+ - type: paragraph
51
+ content:
52
+ - type: text
53
+ text: Sweden
54
+ - type: paragraph
55
+ content:
56
+ - type: text
57
+ text: " "
58
+ - type: table
59
+ content:
60
+ - type: table_row
61
+ content:
62
+ - type: table_cell
63
+ attrs:
64
+ colspan: 3
65
+ rowspan: 1
66
+ colwidth:
67
+ content:
68
+ - type: paragraph
69
+ content:
70
+ - type: text
71
+ marks:
72
+ - type: strong
73
+ text: Alphabetical order    ADD
74
+ - type: table_row
75
+ content:
76
+ - type: table_cell
77
+ attrs:
78
+ colspan: 1
79
+ rowspan: 1
80
+ colwidth:
81
+ content:
82
+ - type: paragraph
83
+ content:
84
+ - type: text
85
+ marks:
86
+ - type: strong
87
+ text: P  39
88
+ - type: table_cell
89
+ attrs:
90
+ colspan: 1
91
+ rowspan: 1
92
+ colwidth:
93
+ content:
94
+ - type: paragraph
95
+ content:
96
+ - type: text
97
+ text: 3-229
98
+ - type: table_cell
99
+ attrs:
100
+ colspan: 1
101
+ rowspan: 1
102
+ colwidth:
103
+ content:
104
+ - type: paragraph
105
+ content:
106
+ - type: text
107
+ text: Sweden
108
+ - type: paragraph
109
+ content:
110
+ - type: text
111
+ text: ____________
112
+ - type: paragraph
113
+ content:
114
+ - type: text
115
+ text: SANC:    Signalling Area/Network Code.
116
+ - type: paragraph
117
+ content:
118
+ - type: text
119
+ text: "              Code de zone/réseau sémaphore (CZRS)."
120
+ - type: paragraph
121
+ content:
122
+ - type: text
123
+ text: "              Código de zona/red de señalización (CZRS)."