forkforge 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +444 -0
- data/bin/circle +11 -0
- data/bin/forkforge +11 -0
- data/bin/fraktur +11 -0
- data/bin/sub +11 -0
- data/bin/super +11 -0
- data/bin/wide +11 -0
- data/features/unicode_org.feature +13 -13
- data/forkforge.gemspec +9 -9
- data/lib/forkforge/internal/code_point.rb +4 -0
- data/lib/forkforge/knife/string.rb +3 -8
- data/lib/forkforge/unicode.rb +6 -0
- data/lib/forkforge/version.rb +1 -1
- metadata +36 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6517fa43ac33c77b0f5e2ec1e0822296f074de64
|
4
|
+
data.tar.gz: f7c6d9346cae5d3ead1b63c0ca196a2ca69749db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4c26100f362453addf0b90372d9736693cfa3d61152064ce1cb70b3c1deeda0289fce773227650591e777effb465d73e1ba08809267b332eec263896babd89
|
7
|
+
data.tar.gz: 983a29a8e0a944997061349103a46acb6804291661b92e1953530c10c4c9afd24601f81015f1bf1a2b3dbdeeabaab6b720916a9557eadd0fb68e90dac53c1abb
|
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,444 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-05-11 15:16:30 +0200 using RuboCop version 0.39.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
Lint/AmbiguousOperator:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/forkforge/dsl/handler.rb'
|
13
|
+
|
14
|
+
# Offense count: 1
|
15
|
+
Lint/AmbiguousRegexpLiteral:
|
16
|
+
Exclude:
|
17
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
18
|
+
|
19
|
+
# Offense count: 1
|
20
|
+
# Cop supports --auto-correct.
|
21
|
+
# Configuration parameters: AlignWith, SupportedStyles.
|
22
|
+
# SupportedStyles: either, start_of_block, start_of_line
|
23
|
+
Lint/BlockAlignment:
|
24
|
+
Exclude:
|
25
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
26
|
+
|
27
|
+
# Offense count: 1
|
28
|
+
# Cop supports --auto-correct.
|
29
|
+
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
30
|
+
# SupportedStyles: keyword, variable, start_of_line
|
31
|
+
Lint/EndAlignment:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
# Offense count: 5
|
35
|
+
Lint/ShadowingOuterLocalVariable:
|
36
|
+
Exclude:
|
37
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
38
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
39
|
+
|
40
|
+
# Offense count: 1
|
41
|
+
# Cop supports --auto-correct.
|
42
|
+
Lint/StringConversionInInterpolation:
|
43
|
+
Exclude:
|
44
|
+
- 'lib/forkforge/internal/code_point.rb'
|
45
|
+
|
46
|
+
# Offense count: 7
|
47
|
+
# Cop supports --auto-correct.
|
48
|
+
# Configuration parameters: IgnoreEmptyBlocks.
|
49
|
+
Lint/UnusedBlockArgument:
|
50
|
+
Exclude:
|
51
|
+
- 'features/step_definitions/unicode_org_steps.rb'
|
52
|
+
- 'lib/forkforge/internal/code_point.rb'
|
53
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
54
|
+
- 'lib/forkforge/selector.rb'
|
55
|
+
- 'lib/forkforge/unicode.rb'
|
56
|
+
|
57
|
+
# Offense count: 2
|
58
|
+
# Cop supports --auto-correct.
|
59
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
60
|
+
Lint/UnusedMethodArgument:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/forkforge/internal/code_point.rb'
|
63
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
64
|
+
|
65
|
+
# Offense count: 1
|
66
|
+
Lint/UselessAssignment:
|
67
|
+
Exclude:
|
68
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
69
|
+
|
70
|
+
# Offense count: 7
|
71
|
+
Metrics/AbcSize:
|
72
|
+
Max: 32
|
73
|
+
|
74
|
+
# Offense count: 3
|
75
|
+
Metrics/CyclomaticComplexity:
|
76
|
+
Max: 10
|
77
|
+
|
78
|
+
# Offense count: 36
|
79
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
80
|
+
# URISchemes: http, https
|
81
|
+
Metrics/LineLength:
|
82
|
+
Max: 170
|
83
|
+
|
84
|
+
# Offense count: 7
|
85
|
+
# Configuration parameters: CountComments.
|
86
|
+
Metrics/MethodLength:
|
87
|
+
Max: 26
|
88
|
+
|
89
|
+
# Offense count: 1
|
90
|
+
Metrics/PerceivedComplexity:
|
91
|
+
Max: 9
|
92
|
+
|
93
|
+
# Offense count: 2
|
94
|
+
# Cop supports --auto-correct.
|
95
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
96
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
97
|
+
Style/Alias:
|
98
|
+
Exclude:
|
99
|
+
- 'lib/forkforge/knife/string.rb'
|
100
|
+
|
101
|
+
# Offense count: 3
|
102
|
+
Style/AsciiComments:
|
103
|
+
Exclude:
|
104
|
+
- 'lib/forkforge/category.rb'
|
105
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
106
|
+
- 'lib/forkforge/selector.rb'
|
107
|
+
|
108
|
+
# Offense count: 11
|
109
|
+
# Cop supports --auto-correct.
|
110
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
111
|
+
# SupportedStyles: percent_q, bare_percent
|
112
|
+
Style/BarePercentLiterals:
|
113
|
+
Exclude:
|
114
|
+
- 'forkforge.gemspec'
|
115
|
+
- 'lib/forkforge/category.rb'
|
116
|
+
- 'lib/forkforge/dsl/handler.rb'
|
117
|
+
- 'lib/forkforge/internal/code_point.rb'
|
118
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
119
|
+
- 'lib/forkforge/knife/string.rb'
|
120
|
+
- 'lib/forkforge/selector.rb'
|
121
|
+
- 'lib/forkforge/unicode.rb'
|
122
|
+
|
123
|
+
# Offense count: 8
|
124
|
+
# Cop supports --auto-correct.
|
125
|
+
Style/BlockComments:
|
126
|
+
Exclude:
|
127
|
+
- 'lib/forkforge/category.rb'
|
128
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
129
|
+
|
130
|
+
# Offense count: 36
|
131
|
+
# Cop supports --auto-correct.
|
132
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
133
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
134
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
135
|
+
# FunctionalMethods: let, let!, subject, watch
|
136
|
+
# IgnoredMethods: lambda, proc, it
|
137
|
+
Style/BlockDelimiters:
|
138
|
+
Exclude:
|
139
|
+
- 'features/step_definitions/unicode_org_steps.rb'
|
140
|
+
- 'lib/forkforge/category.rb'
|
141
|
+
- 'lib/forkforge/internal/code_point.rb'
|
142
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
143
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
144
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
145
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
146
|
+
- 'lib/forkforge/knife/string.rb'
|
147
|
+
- 'lib/forkforge/selector.rb'
|
148
|
+
- 'lib/forkforge/unicode.rb'
|
149
|
+
|
150
|
+
# Offense count: 7
|
151
|
+
Style/CaseEquality:
|
152
|
+
Exclude:
|
153
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
154
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
155
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
156
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
157
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
158
|
+
|
159
|
+
# Offense count: 3
|
160
|
+
# Cop supports --auto-correct.
|
161
|
+
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
|
162
|
+
# SupportedStyles: case, end
|
163
|
+
Style/CaseIndentation:
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
# Offense count: 1
|
167
|
+
Style/ClassVars:
|
168
|
+
Exclude:
|
169
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
170
|
+
|
171
|
+
# Offense count: 37
|
172
|
+
# Cop supports --auto-correct.
|
173
|
+
Style/ColonMethodCall:
|
174
|
+
Exclude:
|
175
|
+
- 'features/step_definitions/unicode_org_steps.rb'
|
176
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
177
|
+
- 'lib/forkforge/knife/string.rb'
|
178
|
+
- 'lib/forkforge/selector.rb'
|
179
|
+
- 'lib/forkforge/unicode.rb'
|
180
|
+
|
181
|
+
# Offense count: 3
|
182
|
+
# Cop supports --auto-correct.
|
183
|
+
# Configuration parameters: Keywords.
|
184
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
185
|
+
Style/CommentAnnotation:
|
186
|
+
Exclude:
|
187
|
+
- 'lib/forkforge/internal/code_point.rb'
|
188
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
189
|
+
|
190
|
+
# Offense count: 1
|
191
|
+
# Cop supports --auto-correct.
|
192
|
+
Style/CommentIndentation:
|
193
|
+
Exclude:
|
194
|
+
- 'Rakefile'
|
195
|
+
|
196
|
+
# Offense count: 26
|
197
|
+
Style/Documentation:
|
198
|
+
Exclude:
|
199
|
+
- 'spec/**/*'
|
200
|
+
- 'test/**/*'
|
201
|
+
- 'lib/forkforge.rb'
|
202
|
+
- 'lib/forkforge/category.rb'
|
203
|
+
- 'lib/forkforge/dsl/handler.rb'
|
204
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
205
|
+
- 'lib/forkforge/internal/code_point.rb'
|
206
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
207
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
208
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
209
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
210
|
+
- 'lib/forkforge/knife/string.rb'
|
211
|
+
- 'lib/forkforge/selector.rb'
|
212
|
+
- 'lib/forkforge/unicode.rb'
|
213
|
+
|
214
|
+
# Offense count: 1
|
215
|
+
Style/EachWithObject:
|
216
|
+
Exclude:
|
217
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
218
|
+
|
219
|
+
# Offense count: 6
|
220
|
+
# Cop supports --auto-correct.
|
221
|
+
# Configuration parameters: AllowAdjacentOneLineDefs.
|
222
|
+
Style/EmptyLineBetweenDefs:
|
223
|
+
Exclude:
|
224
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
225
|
+
- 'lib/forkforge/internal/code_point.rb'
|
226
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
227
|
+
|
228
|
+
# Offense count: 2
|
229
|
+
# Cop supports --auto-correct.
|
230
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
231
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
232
|
+
Style/EmptyLinesAroundClassBody:
|
233
|
+
Exclude:
|
234
|
+
- 'lib/forkforge/knife/string.rb'
|
235
|
+
|
236
|
+
# Offense count: 5
|
237
|
+
# Cop supports --auto-correct.
|
238
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
239
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
240
|
+
Style/EmptyLinesAroundModuleBody:
|
241
|
+
Exclude:
|
242
|
+
- 'lib/forkforge/category.rb'
|
243
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
244
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
245
|
+
- 'lib/forkforge/selector.rb'
|
246
|
+
- 'lib/forkforge/unicode.rb'
|
247
|
+
|
248
|
+
# Offense count: 1
|
249
|
+
# Cop supports --auto-correct.
|
250
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
251
|
+
Style/ExtraSpacing:
|
252
|
+
Exclude:
|
253
|
+
- 'Rakefile'
|
254
|
+
|
255
|
+
# Offense count: 3
|
256
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
257
|
+
# SupportedStyles: format, sprintf, percent
|
258
|
+
Style/FormatString:
|
259
|
+
Exclude:
|
260
|
+
- 'lib/forkforge/internal/code_point.rb'
|
261
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
262
|
+
|
263
|
+
# Offense count: 1
|
264
|
+
# Cop supports --auto-correct.
|
265
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
266
|
+
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
|
267
|
+
Style/HashSyntax:
|
268
|
+
Enabled: false
|
269
|
+
|
270
|
+
# Offense count: 2
|
271
|
+
# Cop supports --auto-correct.
|
272
|
+
# Configuration parameters: Width.
|
273
|
+
Style/IndentationWidth:
|
274
|
+
Exclude:
|
275
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
276
|
+
- 'lib/forkforge/unicode.rb'
|
277
|
+
|
278
|
+
# Offense count: 33
|
279
|
+
# Cop supports --auto-correct.
|
280
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
281
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
282
|
+
Style/MethodDefParentheses:
|
283
|
+
Enabled: false
|
284
|
+
|
285
|
+
# Offense count: 4
|
286
|
+
Style/ModuleFunction:
|
287
|
+
Exclude:
|
288
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
289
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
290
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
291
|
+
- 'lib/forkforge/unicode.rb'
|
292
|
+
|
293
|
+
# Offense count: 2
|
294
|
+
Style/MultilineBlockChain:
|
295
|
+
Exclude:
|
296
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
297
|
+
- 'lib/forkforge/unicode.rb'
|
298
|
+
|
299
|
+
# Offense count: 4
|
300
|
+
# Cop supports --auto-correct.
|
301
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
302
|
+
# SupportedStyles: aligned, indented
|
303
|
+
Style/MultilineOperationIndentation:
|
304
|
+
Enabled: false
|
305
|
+
|
306
|
+
# Offense count: 4
|
307
|
+
Style/MultilineTernaryOperator:
|
308
|
+
Exclude:
|
309
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
310
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
311
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
312
|
+
- 'lib/forkforge/unicode.rb'
|
313
|
+
|
314
|
+
# Offense count: 19
|
315
|
+
# Cop supports --auto-correct.
|
316
|
+
Style/MutableConstant:
|
317
|
+
Exclude:
|
318
|
+
- 'lib/forkforge/category.rb'
|
319
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
320
|
+
- 'lib/forkforge/internal/code_point.rb'
|
321
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
322
|
+
- 'lib/forkforge/internal/unicode_data.rb'
|
323
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
324
|
+
- 'lib/forkforge/selector.rb'
|
325
|
+
- 'lib/forkforge/version.rb'
|
326
|
+
|
327
|
+
# Offense count: 1
|
328
|
+
# Cop supports --auto-correct.
|
329
|
+
Style/NegatedIf:
|
330
|
+
Exclude:
|
331
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
332
|
+
|
333
|
+
# Offense count: 2
|
334
|
+
# Cop supports --auto-correct.
|
335
|
+
Style/ParallelAssignment:
|
336
|
+
Exclude:
|
337
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
338
|
+
- 'lib/forkforge/selector.rb'
|
339
|
+
|
340
|
+
# Offense count: 7
|
341
|
+
# Cop supports --auto-correct.
|
342
|
+
# Configuration parameters: PreferredDelimiters.
|
343
|
+
Style/PercentLiteralDelimiters:
|
344
|
+
Exclude:
|
345
|
+
- 'forkforge.gemspec'
|
346
|
+
- 'lib/forkforge/dsl/handler.rb'
|
347
|
+
- 'lib/forkforge/internal/code_point.rb'
|
348
|
+
- 'lib/forkforge/knife/string.rb'
|
349
|
+
|
350
|
+
# Offense count: 2
|
351
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
352
|
+
# SupportedStyles: compact, exploded
|
353
|
+
Style/RaiseArgs:
|
354
|
+
Enabled: false
|
355
|
+
|
356
|
+
# Offense count: 1
|
357
|
+
# Cop supports --auto-correct.
|
358
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
359
|
+
Style/RedundantReturn:
|
360
|
+
Exclude:
|
361
|
+
- 'lib/forkforge/internal/code_point.rb'
|
362
|
+
|
363
|
+
# Offense count: 15
|
364
|
+
# Cop supports --auto-correct.
|
365
|
+
Style/RedundantSelf:
|
366
|
+
Exclude:
|
367
|
+
- 'lib/forkforge/dsl/handler.rb'
|
368
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
369
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
370
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
371
|
+
|
372
|
+
# Offense count: 1
|
373
|
+
# Cop supports --auto-correct.
|
374
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
375
|
+
# SupportedStyles: slashes, percent_r, mixed
|
376
|
+
Style/RegexpLiteral:
|
377
|
+
Exclude:
|
378
|
+
- 'features/step_definitions/unicode_org_steps.rb'
|
379
|
+
|
380
|
+
# Offense count: 1
|
381
|
+
# Cop supports --auto-correct.
|
382
|
+
Style/SpaceAfterComma:
|
383
|
+
Exclude:
|
384
|
+
- 'lib/forkforge/unicode.rb'
|
385
|
+
|
386
|
+
# Offense count: 4
|
387
|
+
# Cop supports --auto-correct.
|
388
|
+
# Configuration parameters: AllowForAlignment.
|
389
|
+
Style/SpaceAroundOperators:
|
390
|
+
Exclude:
|
391
|
+
- 'Rakefile'
|
392
|
+
- 'features/support/env.rb'
|
393
|
+
- 'lib/forkforge/internal/monkeypatches.rb'
|
394
|
+
|
395
|
+
# Offense count: 6
|
396
|
+
# Cop supports --auto-correct.
|
397
|
+
Style/SpaceInsideBrackets:
|
398
|
+
Exclude:
|
399
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
400
|
+
- 'lib/forkforge/internal/unicode_org_file.rb'
|
401
|
+
|
402
|
+
# Offense count: 1
|
403
|
+
# Cop supports --auto-correct.
|
404
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
405
|
+
# SupportedStyles: use_perl_names, use_english_names
|
406
|
+
Style/SpecialGlobalVars:
|
407
|
+
Enabled: false
|
408
|
+
|
409
|
+
# Offense count: 16
|
410
|
+
# Cop supports --auto-correct.
|
411
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
412
|
+
# SupportedStyles: single_quotes, double_quotes
|
413
|
+
Style/StringLiterals:
|
414
|
+
Enabled: false
|
415
|
+
|
416
|
+
# Offense count: 1
|
417
|
+
# Cop supports --auto-correct.
|
418
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
419
|
+
# SupportedStyles: final_newline, final_blank_line
|
420
|
+
Style/TrailingBlankLines:
|
421
|
+
Exclude:
|
422
|
+
- 'Rakefile'
|
423
|
+
|
424
|
+
# Offense count: 5
|
425
|
+
# Cop supports --auto-correct.
|
426
|
+
Style/UnneededInterpolation:
|
427
|
+
Exclude:
|
428
|
+
- 'features/step_definitions/unicode_org_steps.rb'
|
429
|
+
- 'lib/forkforge/dsl/handler.rb'
|
430
|
+
- 'lib/forkforge/internal/character_decomposition_mapping.rb'
|
431
|
+
- 'lib/forkforge/internal/code_point.rb'
|
432
|
+
|
433
|
+
# Offense count: 11
|
434
|
+
# Cop supports --auto-correct.
|
435
|
+
Style/UnneededPercentQ:
|
436
|
+
Exclude:
|
437
|
+
- 'forkforge.gemspec'
|
438
|
+
- 'lib/forkforge/category.rb'
|
439
|
+
- 'lib/forkforge/dsl/handler.rb'
|
440
|
+
- 'lib/forkforge/internal/code_point.rb'
|
441
|
+
- 'lib/forkforge/internal/special_casing.rb'
|
442
|
+
- 'lib/forkforge/knife/string.rb'
|
443
|
+
- 'lib/forkforge/selector.rb'
|
444
|
+
- 'lib/forkforge/unicode.rb'
|
data/bin/circle
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
data/bin/forkforge
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
data/bin/fraktur
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
data/bin/sub
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
data/bin/super
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
data/bin/wide
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'forkforge'
|
4
|
+
require 'forkforge/knife/string'
|
5
|
+
|
6
|
+
ME = File.basename($0)
|
7
|
+
|
8
|
+
raise "Please do not call this file directly, use e.g. “fraktur 'My String'”" if ME == 'forkforge'
|
9
|
+
raise "Usage: “#{ME} string”" unless ARGV.count > 0
|
10
|
+
|
11
|
+
puts Forkforge::Unicode.send ME, ARGV[0]
|
@@ -23,13 +23,13 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
23
23
|
@letter
|
24
24
|
Scenario: Get all specific letter: uppercase
|
25
25
|
When we call "uppercase" method on Forkforge::Letter
|
26
|
-
Then the result count equals to
|
26
|
+
Then the result count equals to 1631
|
27
27
|
And the first item equals to "A"
|
28
28
|
|
29
29
|
@letter
|
30
30
|
Scenario: Get all specific letter: lowercase
|
31
31
|
When we call "lowercase" method on Forkforge::Letter
|
32
|
-
Then the result count equals to
|
32
|
+
Then the result count equals to 1984
|
33
33
|
And the first item equals to "a"
|
34
34
|
|
35
35
|
@letter
|
@@ -47,7 +47,7 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
47
47
|
@letter
|
48
48
|
Scenario: Get all specific letter: others
|
49
49
|
When we call "other" method on Forkforge::Letter
|
50
|
-
Then the result count equals to
|
50
|
+
Then the result count equals to 14163
|
51
51
|
And the first item equals to "ª"
|
52
52
|
|
53
53
|
@letter
|
@@ -60,13 +60,13 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
60
60
|
@mark
|
61
61
|
Scenario: Get all specific marks: non-spacing
|
62
62
|
When we call "non_spacing" method on Forkforge::Mark
|
63
|
-
Then the result count equals to
|
63
|
+
Then the result count equals to 1567
|
64
64
|
And the first item equals to "̀"
|
65
65
|
|
66
66
|
@mark
|
67
67
|
Scenario: Get all specific marks: spacing combining
|
68
68
|
When we call "spacing_combining" method on Forkforge::Mark
|
69
|
-
Then the result count equals to
|
69
|
+
Then the result count equals to 383
|
70
70
|
And the first item equals to "ः"
|
71
71
|
|
72
72
|
@mark
|
@@ -80,7 +80,7 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
80
80
|
@number
|
81
81
|
Scenario: Get all specific numbers: decimal digit
|
82
82
|
When we call "decimal_digit" method on Forkforge::Number
|
83
|
-
Then the result count equals to
|
83
|
+
Then the result count equals to 550
|
84
84
|
And the first item equals to "0"
|
85
85
|
|
86
86
|
@number
|
@@ -92,7 +92,7 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
92
92
|
@number
|
93
93
|
Scenario: Get all specific numbers: other
|
94
94
|
When we call "other" method on Forkforge::Number
|
95
|
-
Then the result count equals to
|
95
|
+
Then the result count equals to 647
|
96
96
|
And the first item equals to "²"
|
97
97
|
|
98
98
|
###############################################################################
|
@@ -136,7 +136,7 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
136
136
|
@punctuation
|
137
137
|
Scenario: Get all specific punctuation: others
|
138
138
|
When we call "other" method on Forkforge::Punctuation
|
139
|
-
Then the result count equals to
|
139
|
+
Then the result count equals to 513
|
140
140
|
And the first item equals to "!"
|
141
141
|
|
142
142
|
###############################################################################
|
@@ -150,19 +150,19 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
150
150
|
@symbol
|
151
151
|
Scenario: Get all specific symbols: currency
|
152
152
|
When we call "currency" method on Forkforge::Symbol
|
153
|
-
Then the result count equals to
|
153
|
+
Then the result count equals to 53
|
154
154
|
And the first item equals to "$"
|
155
155
|
|
156
156
|
@symbol
|
157
157
|
Scenario: Get all specific symbols: modifier
|
158
158
|
When we call "modifier" method on Forkforge::Symbol
|
159
|
-
Then the result count equals to
|
159
|
+
Then the result count equals to 121
|
160
160
|
And the first item equals to "^"
|
161
161
|
|
162
162
|
@symbol
|
163
163
|
Scenario: Get all specific symbols: other
|
164
164
|
When we call "other" method on Forkforge::Symbol
|
165
|
-
Then the result count equals to
|
165
|
+
Then the result count equals to 5677
|
166
166
|
And the first item equals to "¦"
|
167
167
|
|
168
168
|
###############################################################################
|
@@ -303,14 +303,14 @@ Feature: UnicodeData.txt file is to be used locally until it’s absent
|
|
303
303
|
Scenario: Lookup tag names using character_name
|
304
304
|
Given we have a pattern looking like a tag
|
305
305
|
When result is filtered to show tags
|
306
|
-
Then the result count equals to
|
306
|
+
Then the result count equals to 27
|
307
307
|
And we print first 21 results
|
308
308
|
|
309
309
|
@lookup
|
310
310
|
Scenario: Lookup tags using character_name
|
311
311
|
Given we have a pattern looking like a tag
|
312
312
|
When result is filtered to show tagged characters
|
313
|
-
Then the result count equals to
|
313
|
+
Then the result count equals to 27
|
314
314
|
And the result’s first element nested count is "65"
|
315
315
|
|
316
316
|
@lookup
|
data/forkforge.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "pry"
|
27
|
-
spec.add_development_dependency "pry-rescue"
|
28
|
-
spec.add_development_dependency "awesome_print"
|
29
|
-
spec.add_development_dependency "rspec"
|
30
|
-
spec.add_development_dependency 'yard'
|
31
|
-
spec.add_development_dependency 'cucumber'
|
32
|
-
spec.add_development_dependency 'yard-cucumber'
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "pry"
|
27
|
+
spec.add_development_dependency "pry-rescue"
|
28
|
+
spec.add_development_dependency "awesome_print"
|
29
|
+
spec.add_development_dependency "rspec"
|
30
|
+
spec.add_development_dependency 'yard'
|
31
|
+
spec.add_development_dependency 'cucumber'
|
32
|
+
spec.add_development_dependency 'yard-cucumber'
|
33
33
|
end
|
@@ -73,6 +73,7 @@ module Forkforge
|
|
73
73
|
def to_h
|
74
74
|
@hash.dup
|
75
75
|
end
|
76
|
+
alias_method :to_hash, :to_h
|
76
77
|
|
77
78
|
def to_s
|
78
79
|
@hash.values.map { |v|
|
@@ -104,6 +105,9 @@ module Forkforge
|
|
104
105
|
else
|
105
106
|
super
|
106
107
|
end
|
108
|
+
rescue => e
|
109
|
+
# Log it!
|
110
|
+
self
|
107
111
|
end
|
108
112
|
end
|
109
113
|
end
|
@@ -8,7 +8,7 @@ class String
|
|
8
8
|
Forkforge::Unicode::decompose self, tags
|
9
9
|
end
|
10
10
|
|
11
|
-
[:circle, :super, :sub, :wide].each { |m|
|
11
|
+
[:circle, :super, :sub, :wide, :fraktur].each { |m|
|
12
12
|
class_eval %Q{
|
13
13
|
def compose_#{m}
|
14
14
|
Forkforge::Unicode::#{m} self
|
@@ -24,12 +24,7 @@ class String
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
def downcase
|
32
|
-
lowercase
|
33
|
-
end
|
27
|
+
alias_method :upcase, :uppercase
|
28
|
+
alias_method :downcase, :lowercase
|
34
29
|
|
35
30
|
end
|
data/lib/forkforge/unicode.rb
CHANGED
@@ -71,6 +71,12 @@ module Forkforge
|
|
71
71
|
}
|
72
72
|
}
|
73
73
|
|
74
|
+
def fraktur s
|
75
|
+
s.split('').map do |c|
|
76
|
+
Forkforge::UnicodeData::code_points.send(:math_fraktur_bold, c).to_s
|
77
|
+
end.join
|
78
|
+
end
|
79
|
+
|
74
80
|
# Decomposes symbols to their combined representation, e.g. ASCII c-cedilla to 2 symbols
|
75
81
|
def decompose s, tags = []
|
76
82
|
s.codepoints.map { |cp|
|
data/lib/forkforge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forkforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexei Matyushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,124 +16,124 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry-rescue
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: awesome_print
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: cucumber
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: yard-cucumber
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: "\n Pure ruby implementation of Unicode manipulations as by Consortium.\n
|
@@ -141,17 +141,31 @@ description: "\n Pure ruby implementation of Unicode manipulations as by Cons
|
|
141
141
|
and more.\n "
|
142
142
|
email:
|
143
143
|
- am@mudasobwa.ru
|
144
|
-
executables:
|
144
|
+
executables:
|
145
|
+
- circle
|
146
|
+
- forkforge
|
147
|
+
- fraktur
|
148
|
+
- sub
|
149
|
+
- super
|
150
|
+
- wide
|
145
151
|
extensions: []
|
146
152
|
extra_rdoc_files: []
|
147
153
|
files:
|
148
154
|
- ".gitignore"
|
155
|
+
- ".rubocop.yml"
|
156
|
+
- ".rubocop_todo.yml"
|
149
157
|
- ".travis.yml"
|
150
158
|
- ".yardopts"
|
151
159
|
- Gemfile
|
152
160
|
- LICENSE.txt
|
153
161
|
- README.md
|
154
162
|
- Rakefile
|
163
|
+
- bin/circle
|
164
|
+
- bin/forkforge
|
165
|
+
- bin/fraktur
|
166
|
+
- bin/sub
|
167
|
+
- bin/super
|
168
|
+
- bin/wide
|
155
169
|
- config/cucumber.yml
|
156
170
|
- features/step_definitions/unicode_org_steps.rb
|
157
171
|
- features/support/env.rb
|
@@ -198,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
212
|
version: '0'
|
199
213
|
requirements: []
|
200
214
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.4.
|
215
|
+
rubygems_version: 2.4.8
|
202
216
|
signing_key:
|
203
217
|
specification_version: 4
|
204
218
|
summary: Unicode handling library
|