wordz 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9398d7849bb37dc06bb92379aa7307a0485982b336b36c25533b6b056b54ae4
4
- data.tar.gz: 16fe44f437cddd6474217c28c75c779af9ecea2134e03bcf4ef25ce52e50a9d4
3
+ metadata.gz: 1d05083af32ff497031e91e20de1606526e492e1787a77427fd38a0e635d8459
4
+ data.tar.gz: 7bac7ddae0032a039cf47b71105c7f2b2715a530b5b791bfb5389de9f5b0aacb
5
5
  SHA512:
6
- metadata.gz: 4eed3849b297e853e4a684fdcc6b04411161456b82575d5a0c908497d85d994b4d06ecd9c1bb5f2ca5669926e751c00ee1056602388d2af4816480a33219cb5a
7
- data.tar.gz: 956f2313746a6ee3de6c10fdcb261739d0aa8252481ad57fef4ced2a8e4be0c7908fff10d49d975f3b29d62ddde1f4d7f5c7b4dc442276de00af489fe2143ea0
6
+ metadata.gz: eee6ff9c0859037276b4d59e3278cf426fd71729925d5f79244010671a9fd91ce6fbeb8db3393491757fd7f62071f95c4747a1bc4795e96c0878cb477eac12da
7
+ data.tar.gz: 2ca72d0759b30bbcd92b51a23b8041840a52f99d476e0b5fc435392e1d0e272e670d1c4a145dec5f22ff7211df36465569b712d3f210b013ca982feb06e5893a
@@ -0,0 +1,45 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.5.0-node-browsers
11
+
12
+ working_directory: ~/repo
13
+
14
+ steps:
15
+ - checkout
16
+
17
+ - run:
18
+ name: install dependencies
19
+ command: |
20
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
21
+
22
+ - save_cache:
23
+ paths:
24
+ - ./vendor/bundle
25
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
26
+
27
+ # run tests!
28
+ - run:
29
+ name: run tests
30
+ command: |
31
+ mkdir /tmp/test-results
32
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
33
+
34
+ bundle exec rspec --format progress \
35
+ --format RspecJunitFormatter \
36
+ --out /tmp/test-results/rspec.xml \
37
+ -- \
38
+ $TEST_FILES
39
+
40
+ # collect reports
41
+ - store_test_results:
42
+ path: /tmp/test-results
43
+ - store_artifacts:
44
+ path: /tmp/test-results
45
+ destination: test-results
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
 
10
+ *.gem
10
11
  .rspec_status
11
12
  Gemfile.lock
12
13
  .ruby-version
@@ -0,0 +1,630 @@
1
+ AllCops:
2
+ Exclude:
3
+ - db/schema.rb
4
+
5
+ Naming/AccessorMethodName:
6
+ Description: Check the naming of accessor methods for get_/set_.
7
+ Enabled: false
8
+
9
+ Style/Alias:
10
+ Description: 'Use alias_method instead of alias.'
11
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
12
+ Enabled: false
13
+
14
+ Layout/AlignParameters:
15
+ Description: 'Here we check if the parameters on a multi-line method call or definition are aligned.'
16
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
17
+ Enabled: false
18
+
19
+ Style/ArrayJoin:
20
+ Description: 'Use Array#join instead of Array#*.'
21
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
22
+ Enabled: false
23
+
24
+ Style/AsciiComments:
25
+ Description: 'Use only ascii symbols in comments.'
26
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
27
+ Enabled: false
28
+
29
+ Naming/AsciiIdentifiers:
30
+ Description: 'Use only ascii symbols in identifiers.'
31
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
32
+ Enabled: false
33
+
34
+ Style/Attr:
35
+ Description: 'Checks for uses of Module#attr.'
36
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
37
+ Enabled: false
38
+
39
+ Style/BlockDelimiters:
40
+ Description: 'Check for uses of braces or do/end around single line or multi-line blocks.'
41
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
42
+ Enabled: false
43
+
44
+ Metrics/BlockNesting:
45
+ Description: 'Avoid excessive block nesting'
46
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
47
+ Enabled: false
48
+
49
+ Style/CaseEquality:
50
+ Description: 'Avoid explicit use of the case equality operator(===).'
51
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
52
+ Enabled: false
53
+
54
+ Style/CharacterLiteral:
55
+ Description: 'Checks for uses of character literals.'
56
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
57
+ Enabled: false
58
+
59
+ Style/ClassAndModuleChildren:
60
+ Description: 'Checks style of children classes and modules.'
61
+ Enabled: true
62
+ EnforcedStyle: nested
63
+
64
+ Metrics/BlockLength:
65
+ CountComments: false
66
+ Max: 25
67
+ ExcludedMethods: []
68
+ Exclude:
69
+ - spec/**/*
70
+
71
+ Metrics/ClassLength:
72
+ Description: 'Avoid classes longer than 100 lines of code.'
73
+ Enabled: false
74
+
75
+ Metrics/ModuleLength:
76
+ Description: 'Avoid modules longer than 100 lines of code.'
77
+ Enabled: false
78
+
79
+ Style/ClassVars:
80
+ Description: 'Avoid the use of class variables.'
81
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
82
+ Enabled: false
83
+
84
+ Style/CollectionMethods:
85
+ Enabled: true
86
+ PreferredMethods:
87
+ find: detect
88
+ inject: reduce
89
+ collect: map
90
+ find_all: select
91
+
92
+ Style/ColonMethodCall:
93
+ Description: 'Do not use :: for method call.'
94
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
95
+ Enabled: false
96
+
97
+ Style/CommentAnnotation:
98
+ Description: >-
99
+ Checks formatting of special comments
100
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
101
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
102
+ Enabled: false
103
+
104
+ Metrics/AbcSize:
105
+ Description: >-
106
+ A calculated magnitude based on number of assignments,
107
+ branches, and conditions.
108
+ Enabled: false
109
+
110
+ Metrics/CyclomaticComplexity:
111
+ Description: >-
112
+ A complexity metric that is strongly correlated to the number
113
+ of test cases needed to validate a method.
114
+ Enabled: false
115
+
116
+ Rails/Delegate:
117
+ Description: 'Prefer delegate method for delegations.'
118
+ Enabled: false
119
+
120
+ Style/PreferredHashMethods:
121
+ Description: 'Checks for use of deprecated Hash methods.'
122
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
123
+ Enabled: false
124
+
125
+ Style/Documentation:
126
+ Description: 'Document classes and non-namespace modules.'
127
+ Enabled: false
128
+
129
+ Layout/DotPosition:
130
+ Description: 'Checks the position of the dot in multi-line method calls.'
131
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
132
+ EnforcedStyle: trailing
133
+
134
+ Style/DoubleNegation:
135
+ Description: 'Checks for uses of double negation (!!).'
136
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
137
+ Enabled: false
138
+
139
+ Style/EachWithObject:
140
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
141
+ Enabled: false
142
+
143
+ Style/EmptyLiteral:
144
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
145
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
146
+ Enabled: false
147
+
148
+ # Checks whether the source file has a utf-8 encoding comment or not
149
+ # AutoCorrectEncodingComment must match the regex
150
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
151
+ Style/Encoding:
152
+ Enabled: false
153
+
154
+ Style/EvenOdd:
155
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
156
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
157
+ Enabled: false
158
+
159
+ Layout/ExtraSpacing:
160
+ Description: 'Do not use unnecessary spacing.'
161
+ Enabled: true
162
+
163
+ Naming/FileName:
164
+ Description: 'Use snake_case for source file names.'
165
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
166
+ Enabled: false
167
+
168
+ Style/FrozenStringLiteralComment:
169
+ Description: >-
170
+ Add the frozen_string_literal comment to the top of files
171
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
172
+ Enabled: false
173
+
174
+ Style/FlipFlop:
175
+ Description: 'Checks for flip flops'
176
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
177
+ Enabled: false
178
+
179
+ Style/FormatString:
180
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
181
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
182
+ Enabled: false
183
+
184
+ Style/GlobalVars:
185
+ Description: 'Do not introduce global variables.'
186
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
187
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
188
+ Enabled: false
189
+
190
+ Style/GuardClause:
191
+ Description: 'Check for conditionals that can be replaced with guard clauses'
192
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
193
+ Enabled: false
194
+
195
+ Style/IfUnlessModifier:
196
+ Description: >-
197
+ Favor modifier if/unless usage when you have a
198
+ single-line body.
199
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
200
+ Enabled: false
201
+
202
+ Style/IfWithSemicolon:
203
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
204
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
205
+ Enabled: false
206
+
207
+ Style/InlineComment:
208
+ Description: 'Avoid inline comments.'
209
+ Enabled: false
210
+
211
+ Style/Lambda:
212
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
213
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
214
+ Enabled: false
215
+
216
+ Style/LambdaCall:
217
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
218
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
219
+ Enabled: false
220
+
221
+ Style/LineEndConcatenation:
222
+ Description: >-
223
+ Use \ instead of + or << to concatenate two string literals at
224
+ line end.
225
+ Enabled: false
226
+
227
+ Metrics/LineLength:
228
+ Description: 'Limit lines to 100 characters.'
229
+ Max: 100
230
+
231
+ Metrics/MethodLength:
232
+ Description: 'Avoid methods longer than 10 lines of code.'
233
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
234
+ Enabled: false
235
+
236
+ Style/ModuleFunction:
237
+ Description: 'Checks for usage of `extend self` in modules.'
238
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
239
+ Enabled: false
240
+
241
+ Layout/MultilineOperationIndentation:
242
+ Description: >-
243
+ Checks indentation of binary operations that span more than
244
+ one line.
245
+ Enabled: true
246
+ EnforcedStyle: indented
247
+
248
+ Style/MultilineBlockChain:
249
+ Description: 'Avoid multi-line chains of blocks.'
250
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
251
+ Enabled: false
252
+
253
+ Layout/MultilineMethodCallIndentation:
254
+ Description: >-
255
+ Checks indentation of method calls with the dot operator
256
+ that span more than one line.
257
+ Enabled: true
258
+ EnforcedStyle: indented
259
+
260
+ Style/NegatedIf:
261
+ Description: >-
262
+ Favor unless over if for negative conditions
263
+ (or control flow or).
264
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
265
+ Enabled: false
266
+
267
+ Style/NegatedWhile:
268
+ Description: 'Favor until over while for negative conditions.'
269
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
270
+ Enabled: false
271
+
272
+ Style/Next:
273
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
274
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
275
+ Enabled: false
276
+
277
+ Style/NilComparison:
278
+ Description: 'Prefer x.nil? to x == nil.'
279
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
280
+ Enabled: false
281
+
282
+ Style/Not:
283
+ Description: 'Use ! instead of not.'
284
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
285
+ Enabled: false
286
+
287
+ Style/NumericLiterals:
288
+ Description: >-
289
+ Add underscores to large numeric literals to improve their
290
+ readability.
291
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
292
+ Enabled: false
293
+
294
+ Style/OneLineConditional:
295
+ Description: >-
296
+ Favor the ternary operator(?:) over
297
+ if/then/else/end constructs.
298
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
299
+ Enabled: false
300
+
301
+ Naming/BinaryOperatorParameterName:
302
+ Description: 'When defining binary operators, name the argument other.'
303
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
304
+ Enabled: false
305
+
306
+ Metrics/ParameterLists:
307
+ Description: 'Avoid parameter lists longer than three or four parameters.'
308
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
309
+ Enabled: false
310
+
311
+ Style/PercentLiteralDelimiters:
312
+ Description: 'Use `%`-literal delimiters consistently'
313
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
314
+ Enabled: false
315
+
316
+ Style/PerlBackrefs:
317
+ Description: 'Avoid Perl-style regex back references.'
318
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
319
+ Enabled: false
320
+
321
+ Naming/PredicateName:
322
+ Description: 'Check the names of predicate methods.'
323
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
324
+ NamePrefixBlacklist:
325
+ - is_
326
+ Exclude:
327
+ - spec/**/*
328
+
329
+ Style/Proc:
330
+ Description: 'Use proc instead of Proc.new.'
331
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
332
+ Enabled: false
333
+
334
+ Style/RaiseArgs:
335
+ Description: 'Checks the arguments passed to raise/fail.'
336
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
337
+ Enabled: false
338
+
339
+ Style/RegexpLiteral:
340
+ Description: 'Use / or %r around regular expressions.'
341
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
342
+ Enabled: false
343
+
344
+ Style/SelfAssignment:
345
+ Description: >-
346
+ Checks for places where self-assignment shorthand should have
347
+ been used.
348
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
349
+ Enabled: false
350
+
351
+ Style/SingleLineBlockParams:
352
+ Description: 'Enforces the names of some block params.'
353
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
354
+ Enabled: false
355
+
356
+ Style/SingleLineMethods:
357
+ Description: 'Avoid single-line methods.'
358
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
359
+ Enabled: false
360
+
361
+ Style/SignalException:
362
+ Description: 'Checks for proper usage of fail and raise.'
363
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
364
+ Enabled: false
365
+
366
+ Style/SpecialGlobalVars:
367
+ Description: 'Avoid Perl-style global variables.'
368
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
369
+ Enabled: false
370
+
371
+ Style/StringLiterals:
372
+ Description: 'Checks if uses of quotes match the configured preference.'
373
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
374
+ EnforcedStyle: double_quotes
375
+ Enabled: true
376
+
377
+ Style/TrailingCommaInArguments:
378
+ Description: 'Checks for trailing comma in argument lists.'
379
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
380
+ EnforcedStyleForMultiline: comma
381
+ Enabled: true
382
+
383
+ Style/TrailingCommaInLiteral:
384
+ Description: 'Checks for trailing comma in array and hash literals.'
385
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
386
+ EnforcedStyleForMultiline: comma
387
+ Enabled: true
388
+
389
+ Style/TrivialAccessors:
390
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
391
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
392
+ Enabled: false
393
+
394
+ Style/VariableInterpolation:
395
+ Description: >-
396
+ Don't interpolate global, instance and class variables
397
+ directly in strings.
398
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
399
+ Enabled: false
400
+
401
+ Style/WhenThen:
402
+ Description: 'Use when x then ... for one-line cases.'
403
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
404
+ Enabled: false
405
+
406
+ Style/WhileUntilModifier:
407
+ Description: >-
408
+ Favor modifier while/until usage when you have a
409
+ single-line body.
410
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
411
+ Enabled: false
412
+
413
+ Style/WordArray:
414
+ Description: 'Use %w or %W for arrays of words.'
415
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
416
+ Enabled: false
417
+
418
+ # Lint
419
+
420
+ Lint/AmbiguousOperator:
421
+ Description: >-
422
+ Checks for ambiguous operators in the first argument of a
423
+ method invocation without parentheses.
424
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
425
+ Enabled: false
426
+
427
+ Lint/AmbiguousRegexpLiteral:
428
+ Description: >-
429
+ Checks for ambiguous regexp literals in the first argument of
430
+ a method invocation without parenthesis.
431
+ Enabled: false
432
+
433
+ Lint/AssignmentInCondition:
434
+ Description: "Don't use assignment in conditions."
435
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
436
+ Enabled: false
437
+
438
+ Lint/CircularArgumentReference:
439
+ Description: "Don't refer to the keyword argument in the default value."
440
+ Enabled: false
441
+
442
+ Lint/ConditionPosition:
443
+ Description: >-
444
+ Checks for condition placed in a confusing position relative to
445
+ the keyword.
446
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
447
+ Enabled: false
448
+
449
+ Lint/DeprecatedClassMethods:
450
+ Description: 'Check for deprecated class method calls.'
451
+ Enabled: false
452
+
453
+ Lint/DuplicatedKey:
454
+ Description: 'Check for duplicate keys in hash literals.'
455
+ Enabled: false
456
+
457
+ Lint/EachWithObjectArgument:
458
+ Description: 'Check for immutable argument given to each_with_object.'
459
+ Enabled: false
460
+
461
+ Lint/ElseLayout:
462
+ Description: 'Check for odd code arrangement in an else block.'
463
+ Enabled: false
464
+
465
+ Lint/FormatParameterMismatch:
466
+ Description: 'The number of parameters to format/sprint must match the fields.'
467
+ Enabled: false
468
+
469
+ Lint/HandleExceptions:
470
+ Description: "Don't suppress exception."
471
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
472
+ Enabled: false
473
+
474
+ Layout/InitialIndentation:
475
+ Description: >-
476
+ Checks the indentation of the first non-blank non-comment line in a file.
477
+ Enabled: false
478
+
479
+ Lint/LiteralInInterpolation:
480
+ Description: 'Checks for literals used in interpolation.'
481
+ Enabled: false
482
+
483
+ Lint/Loop:
484
+ Description: >-
485
+ Use Kernel#loop with break rather than begin/end/until or
486
+ begin/end/while for post-loop tests.
487
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
488
+ Enabled: false
489
+
490
+ Lint/NestedMethodDefinition:
491
+ Description: 'Do not use nested method definitions.'
492
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
493
+ Enabled: false
494
+
495
+ Lint/NonLocalExitFromIterator:
496
+ Description: 'Do not use return in iterator to cause non-local exit.'
497
+ Enabled: false
498
+
499
+ Lint/ParenthesesAsGroupedExpression:
500
+ Description: >-
501
+ Checks for method calls with a space before the opening
502
+ parenthesis.
503
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
504
+ Enabled: false
505
+
506
+ Lint/RequireParentheses:
507
+ Description: >-
508
+ Use parentheses in the method call to avoid confusion
509
+ about precedence.
510
+ Enabled: false
511
+
512
+ Lint/UnderscorePrefixedVariableName:
513
+ Description: 'Do not use prefix `_` for a variable that is used.'
514
+ Enabled: false
515
+
516
+ Lint/UnneededDisable:
517
+ Description: >-
518
+ Checks for rubocop:disable comments that can be removed.
519
+ Note: this cop is not disabled when disabling all cops.
520
+ It must be explicitly disabled.
521
+ Enabled: false
522
+
523
+ Lint/Void:
524
+ Description: 'Possible use of operator/literal/variable in void context.'
525
+ Enabled: false
526
+
527
+ # Performance
528
+
529
+ Performance/CaseWhenSplat:
530
+ Description: >-
531
+ Place `when` conditions that use splat at the end
532
+ of the list of `when` branches.
533
+ Enabled: false
534
+
535
+ Performance/Count:
536
+ Description: >-
537
+ Use `count` instead of `select...size`, `reject...size`,
538
+ `select...count`, `reject...count`, `select...length`,
539
+ and `reject...length`.
540
+ Enabled: false
541
+
542
+ Performance/Detect:
543
+ Description: >-
544
+ Use `detect` instead of `select.first`, `find_all.first`,
545
+ `select.last`, and `find_all.last`.
546
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
547
+ Enabled: false
548
+
549
+ Performance/FlatMap:
550
+ Description: >-
551
+ Use `Enumerable#flat_map`
552
+ instead of `Enumerable#map...Array#flatten(1)`
553
+ or `Enumberable#collect..Array#flatten(1)`
554
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
555
+ Enabled: false
556
+
557
+ Performance/ReverseEach:
558
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
559
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
560
+ Enabled: false
561
+
562
+ Performance/Sample:
563
+ Description: >-
564
+ Use `sample` instead of `shuffle.first`,
565
+ `shuffle.last`, and `shuffle[Fixnum]`.
566
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
567
+ Enabled: false
568
+
569
+ Performance/Size:
570
+ Description: >-
571
+ Use `size` instead of `count` for counting
572
+ the number of elements in `Array` and `Hash`.
573
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
574
+ Enabled: false
575
+
576
+ Performance/StringReplacement:
577
+ Description: >-
578
+ Use `tr` instead of `gsub` when you are replacing the same
579
+ number of characters. Use `delete` instead of `gsub` when
580
+ you are deleting characters.
581
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
582
+ Enabled: false
583
+
584
+ # Rails
585
+
586
+ Rails/ActionFilter:
587
+ Description: 'Enforces consistent use of action filter methods.'
588
+ Enabled: false
589
+
590
+ Rails/Date:
591
+ Description: >-
592
+ Checks the correct usage of date aware methods,
593
+ such as Date.today, Date.current etc.
594
+ Enabled: false
595
+
596
+ Rails/FindBy:
597
+ Description: 'Prefer find_by over where.first.'
598
+ Enabled: false
599
+
600
+ Rails/FindEach:
601
+ Description: 'Prefer all.find_each over all.find.'
602
+ Enabled: false
603
+
604
+ Rails/HasAndBelongsToMany:
605
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
606
+ Enabled: false
607
+
608
+ Rails/Output:
609
+ Description: 'Checks for calls to puts, print, etc.'
610
+ Enabled: false
611
+
612
+ Rails/ReadWriteAttribute:
613
+ Description: >-
614
+ Checks for read_attribute(:attr) and
615
+ write_attribute(:attr, val).
616
+ Enabled: false
617
+
618
+ Rails/ScopeArgs:
619
+ Description: 'Checks the arguments of ActiveRecord scopes.'
620
+ Enabled: false
621
+
622
+ Rails/TimeZone:
623
+ Description: 'Checks the correct usage of time zone aware methods.'
624
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
625
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
626
+ Enabled: false
627
+
628
+ Rails/Validation:
629
+ Description: 'Use validates :attribute, hash of validations.'
630
+ Enabled: false
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/wordz.svg)](https://badge.fury.io/rb/wordz)
2
+ [![Build](https://circleci.com/gh/hoffm/wordz.svg?style=shield&circle-token=50088f037f50e5345fe3d3054c54234a7a63fde7)](https://circleci.com/gh/hoffm/wordz)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/63f6575f093d6762bc91/maintainability)](https://codeclimate.com/github/hoffm/wordz/maintainability)
4
+
1
5
  # Wordz
2
6
 
3
7
  A minimalist generative grammar library. For use in bots and other mischief.
data/Rakefile CHANGED
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
@@ -1,3 +1,3 @@
1
1
  module Wordz
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.16"
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
  spec.add_development_dependency "rspec", "~> 3.0"
23
+ spec.add_development_dependency "rspec_junit_formatter", "~> 0.3"
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hoffman
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec_junit_formatter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.3'
55
69
  description:
56
70
  email:
57
71
  - michael.s.hoffman@gmail.com
@@ -59,8 +73,10 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
76
+ - ".circleci/config.yml"
62
77
  - ".gitignore"
63
78
  - ".rspec"
79
+ - ".rubocop.yml"
64
80
  - Gemfile
65
81
  - LICENSE.txt
66
82
  - README.md