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,203 @@
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": 1,
14
+ "rowspan": 1,
15
+ "colwidth": null
16
+ },
17
+ "content": [
18
+ {
19
+ "type": "paragraph",
20
+ "content": [
21
+ {
22
+ "type": "text",
23
+ "marks": [
24
+ {
25
+ "type": "em"
26
+ }
27
+ ],
28
+ "text": "Country/geographical area"
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ "type": "table_cell",
36
+ "attrs": {
37
+ "colspan": 1,
38
+ "rowspan": 1,
39
+ "colwidth": null
40
+ },
41
+ "content": [
42
+ {
43
+ "type": "paragraph",
44
+ "content": [
45
+ {
46
+ "type": "text",
47
+ "marks": [
48
+ {
49
+ "type": "em"
50
+ }
51
+ ],
52
+ "text": "E.164 Country Code"
53
+ }
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "type": "table_cell",
60
+ "attrs": {
61
+ "colspan": 1,
62
+ "rowspan": 1,
63
+ "colwidth": null
64
+ },
65
+ "content": [
66
+ {
67
+ "type": "paragraph",
68
+ "content": [
69
+ {
70
+ "type": "text",
71
+ "marks": [
72
+ {
73
+ "type": "em"
74
+ }
75
+ ],
76
+ "text": "Mobile telephone numbers, first digits after"
77
+ },
78
+ {
79
+ "type": "hard_break",
80
+ "marks": [
81
+ {
82
+ "type": "em"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "type": "text",
88
+ "marks": [
89
+ {
90
+ "type": "em"
91
+ }
92
+ ],
93
+ "text": "country code"
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "type": "paragraph",
105
+ "content": [
106
+ {
107
+ "type": "text",
108
+ "text": " "
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "type": "paragraph",
114
+ "content": [
115
+ {
116
+ "type": "text",
117
+ "marks": [
118
+ {
119
+ "type": "strong"
120
+ }
121
+ ],
122
+ "text": "P  4   Djibouti  LIR"
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "type": "paragraph",
128
+ "content": [
129
+ {
130
+ "type": "text",
131
+ "text": " "
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "type": "table",
137
+ "content": [
138
+ {
139
+ "type": "table_row",
140
+ "content": [
141
+ {
142
+ "type": "table_cell",
143
+ "attrs": {
144
+ "colspan": 1,
145
+ "rowspan": 1,
146
+ "colwidth": null
147
+ },
148
+ "content": [
149
+ {
150
+ "type": "paragraph",
151
+ "content": [
152
+ {
153
+ "type": "text",
154
+ "text": "Djibouti"
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "type": "table_cell",
162
+ "attrs": {
163
+ "colspan": 1,
164
+ "rowspan": 1,
165
+ "colwidth": null
166
+ },
167
+ "content": [
168
+ {
169
+ "type": "paragraph",
170
+ "content": [
171
+ {
172
+ "type": "text",
173
+ "text": "253"
174
+ }
175
+ ]
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "type": "table_cell",
181
+ "attrs": {
182
+ "colspan": 1,
183
+ "rowspan": 1,
184
+ "colwidth": null
185
+ },
186
+ "content": [
187
+ {
188
+ "type": "paragraph",
189
+ "content": [
190
+ {
191
+ "type": "text",
192
+ "text": "77"
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ }
198
+ ]
199
+ }
200
+ ]
201
+ }
202
+ ]
203
+ }
@@ -0,0 +1,98 @@
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: 1
11
+ rowspan: 1
12
+ colwidth:
13
+ content:
14
+ - type: paragraph
15
+ content:
16
+ - type: text
17
+ marks:
18
+ - type: em
19
+ text: Country/geographical area
20
+ - type: table_cell
21
+ attrs:
22
+ colspan: 1
23
+ rowspan: 1
24
+ colwidth:
25
+ content:
26
+ - type: paragraph
27
+ content:
28
+ - type: text
29
+ marks:
30
+ - type: em
31
+ text: E.164 Country Code
32
+ - type: table_cell
33
+ attrs:
34
+ colspan: 1
35
+ rowspan: 1
36
+ colwidth:
37
+ content:
38
+ - type: paragraph
39
+ content:
40
+ - type: text
41
+ marks:
42
+ - type: em
43
+ text: Mobile telephone numbers, first digits after
44
+ - type: hard_break
45
+ marks:
46
+ - type: em
47
+ - type: text
48
+ marks:
49
+ - type: em
50
+ text: country code
51
+ - type: paragraph
52
+ content:
53
+ - type: text
54
+ text: " "
55
+ - type: paragraph
56
+ content:
57
+ - type: text
58
+ marks:
59
+ - type: strong
60
+ text: P  4   Djibouti  LIR
61
+ - type: paragraph
62
+ content:
63
+ - type: text
64
+ text: " "
65
+ - type: table
66
+ content:
67
+ - type: table_row
68
+ content:
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: Djibouti
79
+ - type: table_cell
80
+ attrs:
81
+ colspan: 1
82
+ rowspan: 1
83
+ colwidth:
84
+ content:
85
+ - type: paragraph
86
+ content:
87
+ - type: text
88
+ text: '253'
89
+ - type: table_cell
90
+ attrs:
91
+ colspan: 1
92
+ rowspan: 1
93
+ colwidth:
94
+ content:
95
+ - type: paragraph
96
+ content:
97
+ - type: text
98
+ text: '77'
@@ -0,0 +1,202 @@
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  25   New Zealand  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": "heading",
67
+ "attrs": {
68
+ "level": 4
69
+ },
70
+ "content": [
71
+ {
72
+ "type": "text",
73
+ "marks": [
74
+ {
75
+ "type": "em"
76
+ }
77
+ ],
78
+ "text": "MCC + MNC*"
79
+ }
80
+ ]
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "type": "table_cell",
86
+ "attrs": {
87
+ "colspan": 1,
88
+ "rowspan": 1,
89
+ "colwidth": null
90
+ },
91
+ "content": [
92
+ {
93
+ "type": "paragraph",
94
+ "content": [
95
+ {
96
+ "type": "text",
97
+ "marks": [
98
+ {
99
+ "type": "em"
100
+ }
101
+ ],
102
+ "text": "Name of Operator/Network"
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "type": "table_row",
112
+ "content": [
113
+ {
114
+ "type": "table_cell",
115
+ "attrs": {
116
+ "colspan": 1,
117
+ "rowspan": 1,
118
+ "colwidth": null
119
+ },
120
+ "content": [
121
+ {
122
+ "type": "paragraph",
123
+ "content": [
124
+ {
125
+ "type": "text",
126
+ "text": "New Zealand"
127
+ }
128
+ ]
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "type": "table_cell",
134
+ "attrs": {
135
+ "colspan": 1,
136
+ "rowspan": 1,
137
+ "colwidth": null
138
+ },
139
+ "content": [
140
+ {
141
+ "type": "paragraph",
142
+ "content": [
143
+ {
144
+ "type": "text",
145
+ "text": "530 07"
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "table_cell",
153
+ "attrs": {
154
+ "colspan": 1,
155
+ "rowspan": 1,
156
+ "colwidth": null
157
+ },
158
+ "content": [
159
+ {
160
+ "type": "paragraph",
161
+ "content": [
162
+ {
163
+ "type": "text",
164
+ "text": "Bluereach Limited"
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ }
170
+ ]
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "type": "paragraph",
176
+ "content": [
177
+ {
178
+ "type": "text",
179
+ "text": "______________"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "type": "paragraph",
185
+ "content": [
186
+ {
187
+ "type": "text",
188
+ "text": "*         MCC : Mobile Country Code / Indicatif de pays du mobile / Indicativo de país para el servicio móvil"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "type": "paragraph",
194
+ "content": [
195
+ {
196
+ "type": "text",
197
+ "text": "           MNC : Mobile Network Code / Code de réseau mobile / Indicativo de red para el servicio móvil"
198
+ }
199
+ ]
200
+ }
201
+ ]
202
+ }
@@ -0,0 +1,101 @@
1
+ ---
2
+ type: doc
3
+ content:
4
+ - type: paragraph
5
+ content:
6
+ - type: text
7
+ marks:
8
+ - type: strong
9
+ text: P  25   New Zealand  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: heading
37
+ attrs:
38
+ level: 4
39
+ content:
40
+ - type: text
41
+ marks:
42
+ - type: em
43
+ text: MCC + MNC*
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
+ marks:
54
+ - type: em
55
+ text: Name of Operator/Network
56
+ - type: table_row
57
+ content:
58
+ - type: table_cell
59
+ attrs:
60
+ colspan: 1
61
+ rowspan: 1
62
+ colwidth:
63
+ content:
64
+ - type: paragraph
65
+ content:
66
+ - type: text
67
+ text: New Zealand
68
+ - type: table_cell
69
+ attrs:
70
+ colspan: 1
71
+ rowspan: 1
72
+ colwidth:
73
+ content:
74
+ - type: paragraph
75
+ content:
76
+ - type: text
77
+ text: 530 07
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
+ text: Bluereach Limited
88
+ - type: paragraph
89
+ content:
90
+ - type: text
91
+ text: ______________
92
+ - type: paragraph
93
+ content:
94
+ - type: text
95
+ text: "*         MCC : Mobile Country Code / Indicatif de pays du mobile / Indicativo
96
+ de país para el servicio móvil"
97
+ - type: paragraph
98
+ content:
99
+ - type: text
100
+ text: "           MNC : Mobile Network Code / Code de réseau mobile / Indicativo
101
+ de red para el servicio móvil"