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,271 @@
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": "Notes common to Numerical and Alphabetical lists of ITU-T Recommendation E.164 assigned country codes"
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "type": "paragraph",
20
+ "content": [
21
+ {
22
+ "type": "text",
23
+ "text": "Associated with shared country code 882, the following two-digit identification code will be withdrawn on 23 March 2012 :"
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "type": "paragraph",
29
+ "content": [
30
+ {
31
+ "type": "text",
32
+ "marks": [
33
+ {
34
+ "type": "strong"
35
+ }
36
+ ],
37
+ "text": "P  17   Note o)   +882 24 "
38
+ },
39
+ {
40
+ "type": "text",
41
+ "text": "(TeliaSonera Sverige AB)"
42
+ },
43
+ {
44
+ "type": "text",
45
+ "marks": [
46
+ {
47
+ "type": "strong"
48
+ }
49
+ ],
50
+ "text": " SUP*"
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "type": "paragraph",
56
+ "content": [
57
+ {
58
+ "type": "text",
59
+ "text": " "
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "type": "table",
65
+ "content": [
66
+ {
67
+ "type": "table_row",
68
+ "content": [
69
+ {
70
+ "type": "table_cell",
71
+ "attrs": {
72
+ "colspan": 1,
73
+ "rowspan": 1,
74
+ "colwidth": null
75
+ },
76
+ "content": [
77
+ {
78
+ "type": "paragraph",
79
+ "content": [
80
+ {
81
+ "type": "text",
82
+ "text": "Applicant"
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "type": "table_cell",
90
+ "attrs": {
91
+ "colspan": 1,
92
+ "rowspan": 1,
93
+ "colwidth": null
94
+ },
95
+ "content": [
96
+ {
97
+ "type": "paragraph",
98
+ "content": [
99
+ {
100
+ "type": "text",
101
+ "text": "Network"
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "type": "table_cell",
109
+ "attrs": {
110
+ "colspan": 1,
111
+ "rowspan": 1,
112
+ "colwidth": null
113
+ },
114
+ "content": [
115
+ {
116
+ "type": "paragraph",
117
+ "content": [
118
+ {
119
+ "type": "text",
120
+ "text": "Country Code and "
121
+ },
122
+ {
123
+ "type": "hard_break"
124
+ },
125
+ {
126
+ "type": "text",
127
+ "text": "Identification Code"
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "type": "table_cell",
135
+ "attrs": {
136
+ "colspan": 1,
137
+ "rowspan": 1,
138
+ "colwidth": null
139
+ },
140
+ "content": [
141
+ {
142
+ "type": "paragraph",
143
+ "content": [
144
+ {
145
+ "type": "text",
146
+ "text": "Status"
147
+ }
148
+ ]
149
+ }
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "type": "table_row",
156
+ "content": [
157
+ {
158
+ "type": "table_cell",
159
+ "attrs": {
160
+ "colspan": 1,
161
+ "rowspan": 1,
162
+ "colwidth": null
163
+ },
164
+ "content": [
165
+ {
166
+ "type": "paragraph",
167
+ "content": [
168
+ {
169
+ "type": "text",
170
+ "text": "TeliaSonera Sverige AB"
171
+ }
172
+ ]
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "type": "table_cell",
178
+ "attrs": {
179
+ "colspan": 1,
180
+ "rowspan": 1,
181
+ "colwidth": null
182
+ },
183
+ "content": [
184
+ {
185
+ "type": "paragraph",
186
+ "content": [
187
+ {
188
+ "type": "text",
189
+ "text": "TeliaSonera Sverige AB"
190
+ }
191
+ ]
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "type": "table_cell",
197
+ "attrs": {
198
+ "colspan": 1,
199
+ "rowspan": 1,
200
+ "colwidth": null
201
+ },
202
+ "content": [
203
+ {
204
+ "type": "paragraph",
205
+ "content": [
206
+ {
207
+ "type": "text",
208
+ "text": "+882 24"
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "type": "table_cell",
216
+ "attrs": {
217
+ "colspan": 1,
218
+ "rowspan": 1,
219
+ "colwidth": null
220
+ },
221
+ "content": [
222
+ {
223
+ "type": "paragraph",
224
+ "content": [
225
+ {
226
+ "type": "text",
227
+ "text": "Withdrawn"
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "type": "table_row",
237
+ "content": [
238
+ {
239
+ "type": "table_cell",
240
+ "attrs": {
241
+ "colspan": 4,
242
+ "rowspan": 1,
243
+ "colwidth": null
244
+ },
245
+ "content": [
246
+ {
247
+ "type": "paragraph",
248
+ "content": [
249
+ {
250
+ "type": "text",
251
+ "marks": [
252
+ {
253
+ "type": "strong"
254
+ }
255
+ ],
256
+ "text": "*   "
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "23 March 2012"
261
+ }
262
+ ]
263
+ }
264
+ ]
265
+ }
266
+ ]
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ }
@@ -0,0 +1,136 @@
1
+ ---
2
+ type: doc
3
+ content:
4
+ - type: paragraph
5
+ content:
6
+ - type: text
7
+ marks:
8
+ - type: strong
9
+ text: Notes common to Numerical and Alphabetical lists of ITU-T Recommendation
10
+ E.164 assigned country codes
11
+ - type: paragraph
12
+ content:
13
+ - type: text
14
+ text: 'Associated with shared country code 882, the following two-digit identification
15
+ code will be withdrawn on 23 March 2012 :'
16
+ - type: paragraph
17
+ content:
18
+ - type: text
19
+ marks:
20
+ - type: strong
21
+ text: 'P  17   Note o)   +882 24 '
22
+ - type: text
23
+ text: "(TeliaSonera Sverige AB)"
24
+ - type: text
25
+ marks:
26
+ - type: strong
27
+ text: " SUP*"
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
+ text: Applicant
46
+ - type: table_cell
47
+ attrs:
48
+ colspan: 1
49
+ rowspan: 1
50
+ colwidth:
51
+ content:
52
+ - type: paragraph
53
+ content:
54
+ - type: text
55
+ text: Network
56
+ - type: table_cell
57
+ attrs:
58
+ colspan: 1
59
+ rowspan: 1
60
+ colwidth:
61
+ content:
62
+ - type: paragraph
63
+ content:
64
+ - type: text
65
+ text: 'Country Code and '
66
+ - type: hard_break
67
+ - type: text
68
+ text: Identification Code
69
+ - type: table_cell
70
+ attrs:
71
+ colspan: 1
72
+ rowspan: 1
73
+ colwidth:
74
+ content:
75
+ - type: paragraph
76
+ content:
77
+ - type: text
78
+ text: Status
79
+ - type: table_row
80
+ content:
81
+ - type: table_cell
82
+ attrs:
83
+ colspan: 1
84
+ rowspan: 1
85
+ colwidth:
86
+ content:
87
+ - type: paragraph
88
+ content:
89
+ - type: text
90
+ text: TeliaSonera Sverige AB
91
+ - type: table_cell
92
+ attrs:
93
+ colspan: 1
94
+ rowspan: 1
95
+ colwidth:
96
+ content:
97
+ - type: paragraph
98
+ content:
99
+ - type: text
100
+ text: TeliaSonera Sverige AB
101
+ - type: table_cell
102
+ attrs:
103
+ colspan: 1
104
+ rowspan: 1
105
+ colwidth:
106
+ content:
107
+ - type: paragraph
108
+ content:
109
+ - type: text
110
+ text: "+882 24"
111
+ - type: table_cell
112
+ attrs:
113
+ colspan: 1
114
+ rowspan: 1
115
+ colwidth:
116
+ content:
117
+ - type: paragraph
118
+ content:
119
+ - type: text
120
+ text: Withdrawn
121
+ - type: table_row
122
+ content:
123
+ - type: table_cell
124
+ attrs:
125
+ colspan: 4
126
+ rowspan: 1
127
+ colwidth:
128
+ content:
129
+ - type: paragraph
130
+ content:
131
+ - type: text
132
+ marks:
133
+ - type: strong
134
+ text: "*   "
135
+ - type: text
136
+ text: 23 March 2012
@@ -0,0 +1,199 @@
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  9   Denmark  ADD"
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": 1,
37
+ "rowspan": 1,
38
+ "colwidth": null
39
+ },
40
+ "content": [
41
+ {
42
+ "type": "paragraph",
43
+ "content": [
44
+ {
45
+ "type": "text",
46
+ "marks": [
47
+ {
48
+ "type": "em"
49
+ }
50
+ ],
51
+ "text": "Country/geographical area"
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ },
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
+ "marks": [
71
+ {
72
+ "type": "em"
73
+ }
74
+ ],
75
+ "text": "MCC + MNC*"
76
+ }
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "type": "table_cell",
83
+ "attrs": {
84
+ "colspan": 1,
85
+ "rowspan": 1,
86
+ "colwidth": null
87
+ },
88
+ "content": [
89
+ {
90
+ "type": "paragraph",
91
+ "content": [
92
+ {
93
+ "type": "text",
94
+ "marks": [
95
+ {
96
+ "type": "em"
97
+ }
98
+ ],
99
+ "text": "Name of Operator/Network"
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "type": "table_row",
109
+ "content": [
110
+ {
111
+ "type": "table_cell",
112
+ "attrs": {
113
+ "colspan": 1,
114
+ "rowspan": 1,
115
+ "colwidth": null
116
+ },
117
+ "content": [
118
+ {
119
+ "type": "paragraph",
120
+ "content": [
121
+ {
122
+ "type": "text",
123
+ "text": "Denmark"
124
+ }
125
+ ]
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "type": "table_cell",
131
+ "attrs": {
132
+ "colspan": 1,
133
+ "rowspan": 1,
134
+ "colwidth": null
135
+ },
136
+ "content": [
137
+ {
138
+ "type": "paragraph",
139
+ "content": [
140
+ {
141
+ "type": "text",
142
+ "text": "238 66"
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
+ "text": "Telia Danmark"
162
+ }
163
+ ]
164
+ }
165
+ ]
166
+ }
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "type": "paragraph",
173
+ "content": [
174
+ {
175
+ "type": "text",
176
+ "text": "______________"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "type": "paragraph",
182
+ "content": [
183
+ {
184
+ "type": "text",
185
+ "text": "*         MCC : Mobile Country Code / Indicatif de pays du mobile / Indicativo de país para el servicio móvil"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "type": "paragraph",
191
+ "content": [
192
+ {
193
+ "type": "text",
194
+ "text": "           MNC : Mobile Network Code / Code de réseau mobile / Indicativo de red para el servicio móvil"
195
+ }
196
+ ]
197
+ }
198
+ ]
199
+ }
@@ -0,0 +1,99 @@
1
+ ---
2
+ type: doc
3
+ content:
4
+ - type: paragraph
5
+ content:
6
+ - type: text
7
+ marks:
8
+ - type: strong
9
+ text: P  9   Denmark  ADD
10
+ - type: paragraph
11
+ content:
12
+ - type: text
13
+ text: " "
14
+ - type: table
15
+ content:
16
+ - type: table_row
17
+ content:
18
+ - type: table_cell
19
+ attrs:
20
+ colspan: 1
21
+ rowspan: 1
22
+ colwidth:
23
+ content:
24
+ - type: paragraph
25
+ content:
26
+ - type: text
27
+ marks:
28
+ - type: em
29
+ text: Country/geographical area
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: MCC + MNC*
42
+ - type: table_cell
43
+ attrs:
44
+ colspan: 1
45
+ rowspan: 1
46
+ colwidth:
47
+ content:
48
+ - type: paragraph
49
+ content:
50
+ - type: text
51
+ marks:
52
+ - type: em
53
+ text: Name of Operator/Network
54
+ - type: table_row
55
+ content:
56
+ - type: table_cell
57
+ attrs:
58
+ colspan: 1
59
+ rowspan: 1
60
+ colwidth:
61
+ content:
62
+ - type: paragraph
63
+ content:
64
+ - type: text
65
+ text: Denmark
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
+ text: 238 66
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
+ text: Telia Danmark
86
+ - type: paragraph
87
+ content:
88
+ - type: text
89
+ text: ______________
90
+ - type: paragraph
91
+ content:
92
+ - type: text
93
+ text: "*         MCC : Mobile Country Code / Indicatif de pays du mobile / Indicativo
94
+ de país para el servicio móvil"
95
+ - type: paragraph
96
+ content:
97
+ - type: text
98
+ text: "           MNC : Mobile Network Code / Code de réseau mobile / Indicativo
99
+ de red para el servicio móvil"