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,266 @@
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/
20
+ - type: hard_break
21
+ marks:
22
+ - type: em
23
+ - type: text
24
+ marks:
25
+ - type: em
26
+ text: geographical area
27
+ - type: table_cell
28
+ attrs:
29
+ colspan: 1
30
+ rowspan: 1
31
+ colwidth:
32
+ content:
33
+ - type: paragraph
34
+ content:
35
+ - type: text
36
+ marks:
37
+ - type: em
38
+ text: Country code
39
+ - type: table_cell
40
+ attrs:
41
+ colspan: 1
42
+ rowspan: 1
43
+ colwidth:
44
+ content:
45
+ - type: paragraph
46
+ content:
47
+ - type: text
48
+ marks:
49
+ - type: em
50
+ text: International prefix
51
+ - type: table_cell
52
+ attrs:
53
+ colspan: 1
54
+ rowspan: 1
55
+ colwidth:
56
+ content:
57
+ - type: paragraph
58
+ content:
59
+ - type: text
60
+ marks:
61
+ - type: em
62
+ text: National prefix
63
+ - type: table_cell
64
+ attrs:
65
+ colspan: 1
66
+ rowspan: 1
67
+ colwidth:
68
+ content:
69
+ - type: paragraph
70
+ content:
71
+ - type: text
72
+ marks:
73
+ - type: em
74
+ text: National (significant) number
75
+ - type: table_cell
76
+ attrs:
77
+ colspan: 1
78
+ rowspan: 1
79
+ colwidth:
80
+ content:
81
+ - type: paragraph
82
+ content:
83
+ - type: text
84
+ marks:
85
+ - type: em
86
+ text: UTC/DST
87
+ - type: table_cell
88
+ attrs:
89
+ colspan: 1
90
+ rowspan: 1
91
+ colwidth:
92
+ content:
93
+ - type: paragraph
94
+ content:
95
+ - type: text
96
+ marks:
97
+ - type: em
98
+ text: Note
99
+ - type: paragraph
100
+ content:
101
+ - type: text
102
+ text: " "
103
+ - type: paragraph
104
+ content:
105
+ - type: text
106
+ marks:
107
+ - type: strong
108
+ text: P  3   Azerbaijan LIR
109
+ - type: table
110
+ content:
111
+ - type: table_row
112
+ content:
113
+ - type: table_cell
114
+ attrs:
115
+ colspan: 1
116
+ rowspan: 1
117
+ colwidth:
118
+ content:
119
+ - type: paragraph
120
+ content:
121
+ - type: text
122
+ text: Azerbaijan
123
+ - type: table_cell
124
+ attrs:
125
+ colspan: 1
126
+ rowspan: 1
127
+ colwidth:
128
+ content:
129
+ - type: paragraph
130
+ content:
131
+ - type: text
132
+ text: '994'
133
+ - type: table_cell
134
+ attrs:
135
+ colspan: 1
136
+ rowspan: 1
137
+ colwidth:
138
+ content:
139
+ - type: paragraph
140
+ content:
141
+ - type: text
142
+ text: '00'
143
+ - type: table_cell
144
+ attrs:
145
+ colspan: 1
146
+ rowspan: 1
147
+ colwidth:
148
+ content:
149
+ - type: paragraph
150
+ content:
151
+ - type: text
152
+ text: '0'
153
+ - type: table_cell
154
+ attrs:
155
+ colspan: 1
156
+ rowspan: 1
157
+ colwidth:
158
+ content:
159
+ - type: paragraph
160
+ content:
161
+ - type: text
162
+ text: 9 digits
163
+ - type: table_cell
164
+ attrs:
165
+ colspan: 1
166
+ rowspan: 1
167
+ colwidth:
168
+ content:
169
+ - type: paragraph
170
+ content:
171
+ - type: text
172
+ text: "+4/+5"
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: " "
183
+ - type: paragraph
184
+ content:
185
+ - type: text
186
+ text: " "
187
+ - type: paragraph
188
+ content:
189
+ - type: text
190
+ marks:
191
+ - type: strong
192
+ text: P  3   Brazil LIR
193
+ - type: table
194
+ content:
195
+ - type: table_row
196
+ content:
197
+ - type: table_cell
198
+ attrs:
199
+ colspan: 1
200
+ rowspan: 1
201
+ colwidth:
202
+ content:
203
+ - type: paragraph
204
+ content:
205
+ - type: text
206
+ text: Brazil
207
+ - type: table_cell
208
+ attrs:
209
+ colspan: 1
210
+ rowspan: 1
211
+ colwidth:
212
+ content:
213
+ - type: paragraph
214
+ content:
215
+ - type: text
216
+ text: '55'
217
+ - type: table_cell
218
+ attrs:
219
+ colspan: 1
220
+ rowspan: 1
221
+ colwidth:
222
+ content:
223
+ - type: paragraph
224
+ content:
225
+ - type: text
226
+ text: '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: '0'
237
+ - type: table_cell
238
+ attrs:
239
+ colspan: 1
240
+ rowspan: 1
241
+ colwidth:
242
+ content:
243
+ - type: paragraph
244
+ content:
245
+ - type: text
246
+ text: 10, 11 digits
247
+ - type: table_cell
248
+ attrs:
249
+ colspan: 1
250
+ rowspan: 1
251
+ colwidth:
252
+ content:
253
+ - type: paragraph
254
+ content:
255
+ - type: text
256
+ text: "-3/-2"
257
+ - type: table_cell
258
+ attrs:
259
+ colspan: 1
260
+ rowspan: 1
261
+ colwidth:
262
+ content:
263
+ - type: paragraph
264
+ content:
265
+ - type: text
266
+ text: '18'