standard 0.9.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/test.yml +19 -5
- data/CHANGELOG.md +30 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +25 -23
- data/README.md +5 -1
- data/config/base.yml +45 -35
- data/config/ruby-1.8.yml +2 -3
- data/config/ruby-2.3.yml +1 -1
- data/config/ruby-2.5.yml +7 -0
- data/lib/standard/cop/semantic_blocks.rb +19 -26
- data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +2 -0
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -9
- metadata +9 -91
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ece6905a02f43b8e9787ca829e9940f6cd811ce19cc5c73aaa29b39308e86de3
|
4
|
+
data.tar.gz: 420fa134ef9a26d7ab7d6ce72cebb28ca951d03795e95fdf43072af4b5039848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70f35192a65faf716fed5b62ebafd6c6de6e8d54e06e38a8d07bd071b2cff8ff4aab81b8cb9089fd7941ff14b19edf19a37b5468e1eb9eaa7a29e0ece6b925d5
|
7
|
+
data.tar.gz: 00b5ed175cc6e8a47cee92b132dd1a9bbd32f1a2d21284bec0c07be75341eeedc6a44761b1f5f7978517ab4830704b5324df9c28b110371c81ed308589b7641a
|
data/.github/workflows/test.yml
CHANGED
@@ -9,15 +9,29 @@ on:
|
|
9
9
|
jobs:
|
10
10
|
test:
|
11
11
|
|
12
|
-
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
os: [ ubuntu-latest ]
|
15
|
+
ruby-version: [2.4, 2.7, 3.0]
|
16
|
+
|
17
|
+
runs-on: ${{ matrix.os }}
|
13
18
|
|
14
19
|
steps:
|
15
20
|
- uses: actions/checkout@v2
|
16
|
-
- name: Set up Ruby
|
21
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
17
22
|
uses: ruby/setup-ruby@v1
|
18
23
|
with:
|
19
|
-
ruby-version:
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
25
|
+
- name: Set up caching
|
26
|
+
uses: actions/cache@v1
|
27
|
+
with:
|
28
|
+
path: vendor/bundle
|
29
|
+
key: bundle-user-ruby-${{ matrix.os }}-${{matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
|
30
|
+
restore-keys: |
|
31
|
+
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby-version }}-
|
20
32
|
- name: Install dependencies
|
21
|
-
run:
|
22
|
-
|
33
|
+
run: |
|
34
|
+
bundle config path vendor/bundle
|
35
|
+
bundle install --jobs 4 --retry 3
|
36
|
+
- name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
23
37
|
run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,35 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.12.0
|
4
|
+
|
5
|
+
* Update rubocop from 1.7.0 to [1.8.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.8.1)
|
6
|
+
* Enabled [`Style/SlicingWithRange`](https://github.com/testdouble/standard/issues/175)
|
7
|
+
|
8
|
+
## 0.11.0
|
9
|
+
|
10
|
+
* Update rubocop-performance from 1.9.1 to [1.9.2](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.9.2)
|
11
|
+
* Update rubocop from 1.4.2 to [1.7.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.7.0)
|
12
|
+
* Changed `Style/NegatedIf` to `postfix`
|
13
|
+
|
14
|
+
## 0.10.2
|
15
|
+
|
16
|
+
* Remove
|
17
|
+
[`Lint/DuplicateBranch`](https://github.com/testdouble/standard/pull/228)
|
18
|
+
|
19
|
+
## 0.10.1
|
20
|
+
|
21
|
+
* Remove [`Performance/ArraySemiInfiniteRangeSlice`](https://github.com/testdouble/standard/pull/225#discussion_r532678908)
|
22
|
+
|
23
|
+
## 0.10.0
|
24
|
+
|
25
|
+
* Update rubocop-performance from 1.8.1 to [1.9.1](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.9.1) enabling:
|
26
|
+
* [`Performance/BlockGivenWithExplicitBlock`](https://github.com/rubocop-hq/rubocop-performance/pull/173)
|
27
|
+
* [`Performance/ConstantRegexp`](https://github.com/rubocop-hq/rubocop-performance/pull/174)
|
28
|
+
* [`Performance/ArraySemiInfiniteRangeSlice`](https://github.com/rubocop-hq/rubocop-performance/pull/175)
|
29
|
+
* Update rubocop from 1.2.0 to [1.4.2](https://github.com/rubocop-hq/rubocop/releases/tag/v1.4.2) enabling:
|
30
|
+
* [`Style/NilLambda`](https://github.com/rubocop-hq/rubocop/pull/9020)
|
31
|
+
* [`Lint/DuplicateBranch`](https://github.com/rubocop-hq/rubocop/pull/8404)
|
32
|
+
|
3
33
|
## 0.9.0
|
4
34
|
|
5
35
|
* Update rubocop from 1.0.0 to [1.2.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.2.0) enabling:
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,49 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (0.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-performance (= 1.
|
4
|
+
standard (0.12.0)
|
5
|
+
rubocop (= 1.8.1)
|
6
|
+
rubocop-performance (= 1.9.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ast (2.4.
|
11
|
+
ast (2.4.2)
|
12
12
|
coderay (1.1.3)
|
13
|
-
docile (1.3.
|
13
|
+
docile (1.3.5)
|
14
14
|
gimme (0.5.0)
|
15
15
|
method_source (1.0.0)
|
16
|
-
minitest (5.14.
|
17
|
-
parallel (1.
|
18
|
-
parser (
|
16
|
+
minitest (5.14.3)
|
17
|
+
parallel (1.20.1)
|
18
|
+
parser (3.0.0.0)
|
19
19
|
ast (~> 2.4.1)
|
20
20
|
pry (0.13.1)
|
21
21
|
coderay (~> 1.1)
|
22
22
|
method_source (~> 1.0)
|
23
23
|
rainbow (3.0.0)
|
24
|
-
rake (13.0.
|
25
|
-
regexp_parser (
|
24
|
+
rake (13.0.3)
|
25
|
+
regexp_parser (2.0.3)
|
26
26
|
rexml (3.2.4)
|
27
|
-
rubocop (1.
|
27
|
+
rubocop (1.8.1)
|
28
28
|
parallel (~> 1.10)
|
29
|
-
parser (>=
|
29
|
+
parser (>= 3.0.0.0)
|
30
30
|
rainbow (>= 2.2.2, < 4.0)
|
31
|
-
regexp_parser (>= 1.8)
|
31
|
+
regexp_parser (>= 1.8, < 3.0)
|
32
32
|
rexml
|
33
|
-
rubocop-ast (>= 1.0.
|
33
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
34
34
|
ruby-progressbar (~> 1.7)
|
35
|
-
unicode-display_width (>= 1.4.0, <
|
36
|
-
rubocop-ast (1.
|
35
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
+
rubocop-ast (1.4.1)
|
37
37
|
parser (>= 2.7.1.5)
|
38
|
-
rubocop-performance (1.
|
39
|
-
rubocop (>= 0.
|
38
|
+
rubocop-performance (1.9.2)
|
39
|
+
rubocop (>= 0.90.0, < 2.0)
|
40
40
|
rubocop-ast (>= 0.4.0)
|
41
|
-
ruby-progressbar (1.
|
42
|
-
simplecov (0.
|
41
|
+
ruby-progressbar (1.11.0)
|
42
|
+
simplecov (0.21.2)
|
43
43
|
docile (~> 1.1)
|
44
44
|
simplecov-html (~> 0.11)
|
45
|
-
|
46
|
-
|
45
|
+
simplecov_json_formatter (~> 0.1)
|
46
|
+
simplecov-html (0.12.3)
|
47
|
+
simplecov_json_formatter (0.1.2)
|
48
|
+
unicode-display_width (2.0.0)
|
47
49
|
|
48
50
|
PLATFORMS
|
49
51
|
ruby
|
@@ -58,4 +60,4 @@ DEPENDENCIES
|
|
58
60
|
standard!
|
59
61
|
|
60
62
|
BUNDLED WITH
|
61
|
-
2.
|
63
|
+
2.2.6
|
data/README.md
CHANGED
@@ -367,7 +367,7 @@ Refer to RuboCop's [documentation on
|
|
367
367
|
formatters](https://rubocop.readthedocs.io/en/latest/formatters/) for more
|
368
368
|
information.
|
369
369
|
|
370
|
-
## How do I run
|
370
|
+
## How do I run Standard in my editor?
|
371
371
|
|
372
372
|
It can be very handy to know about failures while editing to shorten the
|
373
373
|
feedback loop. Some editors support asynchronously running linters.
|
@@ -378,6 +378,10 @@ feedback loop. Some editors support asynchronously running linters.
|
|
378
378
|
- [vim (via ALE)](https://github.com/testdouble/standard/wiki/IDE:-vim)
|
379
379
|
- [VS Code](https://github.com/testdouble/standard/wiki/IDE:-vscode)
|
380
380
|
|
381
|
+
## How do I use Standard with Rubocop extensions?
|
382
|
+
|
383
|
+
This is not officially supported by Standard. However, Evil Martians wrote up [a regularly updated guide](https://evilmartians.com/chronicles/rubocoping-with-legacy-bring-your-ruby-code-up-to-standard) on how to do so.
|
384
|
+
|
381
385
|
## Does Standard work with [Insert other tool name here]?
|
382
386
|
|
383
387
|
Maybe! Start by searching the repository to see if there's an existing issue open for
|
data/config/base.yml
CHANGED
@@ -56,10 +56,10 @@ Layout/BlockAlignment:
|
|
56
56
|
Layout/BlockEndNewline:
|
57
57
|
Enabled: true
|
58
58
|
|
59
|
-
|
60
|
-
#
|
61
|
-
#
|
62
|
-
|
59
|
+
Layout/CaseIndentation:
|
60
|
+
# Disabled because IndentOneStep can't be configured for one-liner cases. See:
|
61
|
+
# https://github.com/rubocop-hq/rubocop/issues/6447
|
62
|
+
Enabled: false
|
63
63
|
|
64
64
|
Layout/ClosingHeredocIndentation:
|
65
65
|
Enabled: true
|
@@ -173,6 +173,10 @@ Layout/IndentationConsistency:
|
|
173
173
|
Enabled: true
|
174
174
|
EnforcedStyle: normal
|
175
175
|
|
176
|
+
Layout/IndentationStyle:
|
177
|
+
Enabled: true
|
178
|
+
IndentationWidth: ~
|
179
|
+
|
176
180
|
Layout/IndentationWidth:
|
177
181
|
Enabled: true
|
178
182
|
Width: 2
|
@@ -181,10 +185,10 @@ Layout/IndentationWidth:
|
|
181
185
|
Layout/InitialIndentation:
|
182
186
|
Enabled: true
|
183
187
|
|
184
|
-
Layout/
|
188
|
+
Layout/LeadingCommentSpace:
|
185
189
|
Enabled: true
|
186
190
|
|
187
|
-
Layout/
|
191
|
+
Layout/LeadingEmptyLines:
|
188
192
|
Enabled: true
|
189
193
|
|
190
194
|
Layout/MultilineArrayBraceLayout:
|
@@ -250,6 +254,9 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
250
254
|
Layout/SpaceAroundKeyword:
|
251
255
|
Enabled: true
|
252
256
|
|
257
|
+
Layout/SpaceAroundMethodCallOperator:
|
258
|
+
Enabled: true
|
259
|
+
|
253
260
|
Layout/SpaceAroundOperators:
|
254
261
|
Enabled: true
|
255
262
|
AllowForAlignment: true
|
@@ -314,10 +321,6 @@ Layout/SpaceInsideStringInterpolation:
|
|
314
321
|
Enabled: true
|
315
322
|
EnforcedStyle: no_space
|
316
323
|
|
317
|
-
Layout/IndentationStyle:
|
318
|
-
Enabled: true
|
319
|
-
IndentationWidth: ~
|
320
|
-
|
321
324
|
Layout/TrailingEmptyLines:
|
322
325
|
Enabled: true
|
323
326
|
EnforcedStyle: final_newline
|
@@ -548,9 +551,6 @@ Lint/ShadowedArgument:
|
|
548
551
|
Lint/ShadowedException:
|
549
552
|
Enabled: true
|
550
553
|
|
551
|
-
Layout/SpaceAroundMethodCallOperator:
|
552
|
-
Enabled: true
|
553
|
-
|
554
554
|
Lint/Syntax:
|
555
555
|
Enabled: true
|
556
556
|
|
@@ -597,6 +597,13 @@ Migration/DepartmentName:
|
|
597
597
|
Naming/BinaryOperatorParameterName:
|
598
598
|
Enabled: true
|
599
599
|
|
600
|
+
Naming/BlockParameterName:
|
601
|
+
Enabled: true
|
602
|
+
MinNameLength: 1
|
603
|
+
AllowNamesEndingInNumbers: true
|
604
|
+
AllowedNames: []
|
605
|
+
ForbiddenNames: []
|
606
|
+
|
600
607
|
Naming/ClassAndModuleCamelCase:
|
601
608
|
Enabled: true
|
602
609
|
|
@@ -607,13 +614,6 @@ Naming/HeredocDelimiterCase:
|
|
607
614
|
Enabled: true
|
608
615
|
EnforcedStyle: uppercase
|
609
616
|
|
610
|
-
Naming/BlockParameterName:
|
611
|
-
Enabled: true
|
612
|
-
MinNameLength: 1
|
613
|
-
AllowNamesEndingInNumbers: true
|
614
|
-
AllowedNames: []
|
615
|
-
ForbiddenNames: []
|
616
|
-
|
617
617
|
Naming/VariableName:
|
618
618
|
Enabled: true
|
619
619
|
EnforcedStyle: snake_case
|
@@ -624,6 +624,9 @@ Performance/BigDecimalWithNumericArgument:
|
|
624
624
|
Performance/BindCall:
|
625
625
|
Enabled: true
|
626
626
|
|
627
|
+
Performance/BlockGivenWithExplicitBlock:
|
628
|
+
Enabled: true
|
629
|
+
|
627
630
|
Performance/Caller:
|
628
631
|
Enabled: true
|
629
632
|
|
@@ -633,6 +636,9 @@ Performance/CollectionLiteralInLoop:
|
|
633
636
|
Performance/CompareWithBlock:
|
634
637
|
Enabled: true
|
635
638
|
|
639
|
+
Performance/ConstantRegexp:
|
640
|
+
Enabled: true
|
641
|
+
|
636
642
|
Performance/Count:
|
637
643
|
Enabled: true
|
638
644
|
|
@@ -726,7 +732,6 @@ Security/YAMLLoad:
|
|
726
732
|
Enabled: true
|
727
733
|
SafeAutoCorrect: false
|
728
734
|
|
729
|
-
|
730
735
|
Standard/SemanticBlocks:
|
731
736
|
ProceduralMethods:
|
732
737
|
- benchmark
|
@@ -893,7 +898,6 @@ Style/IfWithSemicolon:
|
|
893
898
|
|
894
899
|
Style/InfiniteLoop:
|
895
900
|
Enabled: true
|
896
|
-
SafeAutoCorrect: true
|
897
901
|
|
898
902
|
Style/KeywordParametersOrder:
|
899
903
|
Enabled: true
|
@@ -935,7 +939,7 @@ Style/MultilineWhenThen:
|
|
935
939
|
|
936
940
|
Style/NegatedIf:
|
937
941
|
Enabled: true
|
938
|
-
EnforcedStyle:
|
942
|
+
EnforcedStyle: postfix
|
939
943
|
|
940
944
|
Style/NegatedWhile:
|
941
945
|
Enabled: true
|
@@ -971,6 +975,9 @@ Style/NilComparison:
|
|
971
975
|
Enabled: true
|
972
976
|
EnforcedStyle: predicate
|
973
977
|
|
978
|
+
Style/NilLambda:
|
979
|
+
Enabled: true
|
980
|
+
|
974
981
|
Style/NonNilCheck:
|
975
982
|
Enabled: true
|
976
983
|
IncludeSemanticChanges: false
|
@@ -1018,6 +1025,9 @@ Style/RedundantAssignment:
|
|
1018
1025
|
Style/RedundantBegin:
|
1019
1026
|
Enabled: true
|
1020
1027
|
|
1028
|
+
Style/RedundantCondition:
|
1029
|
+
Enabled: true
|
1030
|
+
|
1021
1031
|
Style/RedundantConditional:
|
1022
1032
|
Enabled: true
|
1023
1033
|
|
@@ -1033,9 +1043,15 @@ Style/RedundantFileExtensionInRequire:
|
|
1033
1043
|
Style/RedundantFreeze:
|
1034
1044
|
Enabled: true
|
1035
1045
|
|
1046
|
+
Style/RedundantInterpolation:
|
1047
|
+
Enabled: true
|
1048
|
+
|
1036
1049
|
Style/RedundantParentheses:
|
1037
1050
|
Enabled: true
|
1038
1051
|
|
1052
|
+
Style/RedundantPercentQ:
|
1053
|
+
Enabled: true
|
1054
|
+
|
1039
1055
|
Style/RedundantRegexpCharacterClass:
|
1040
1056
|
Enabled: true
|
1041
1057
|
|
@@ -1049,6 +1065,9 @@ Style/RedundantReturn:
|
|
1049
1065
|
Style/RedundantSelf:
|
1050
1066
|
Enabled: true
|
1051
1067
|
|
1068
|
+
Style/RedundantSort:
|
1069
|
+
Enabled: true
|
1070
|
+
|
1052
1071
|
Style/RedundantSortBy:
|
1053
1072
|
Enabled: true
|
1054
1073
|
|
@@ -1083,6 +1102,9 @@ Style/SingleLineMethods:
|
|
1083
1102
|
Enabled: true
|
1084
1103
|
AllowIfMethodIsEmpty: false
|
1085
1104
|
|
1105
|
+
Style/SlicingWithRange:
|
1106
|
+
Enabled: true
|
1107
|
+
|
1086
1108
|
Style/StabbyLambdaParentheses:
|
1087
1109
|
Enabled: true
|
1088
1110
|
EnforcedStyle: require_parentheses
|
@@ -1165,18 +1187,6 @@ Style/TrivialAccessors:
|
|
1165
1187
|
Style/UnlessElse:
|
1166
1188
|
Enabled: true
|
1167
1189
|
|
1168
|
-
Style/RedundantCondition:
|
1169
|
-
Enabled: true
|
1170
|
-
|
1171
|
-
Style/RedundantInterpolation:
|
1172
|
-
Enabled: true
|
1173
|
-
|
1174
|
-
Style/RedundantPercentQ:
|
1175
|
-
Enabled: true
|
1176
|
-
|
1177
|
-
Style/RedundantSort:
|
1178
|
-
Enabled: true
|
1179
|
-
|
1180
1190
|
Style/UnpackFirst:
|
1181
1191
|
Enabled: true
|
1182
1192
|
|
data/config/ruby-1.8.yml
CHANGED
data/config/ruby-2.3.yml
CHANGED
data/config/ruby-2.5.yml
ADDED
@@ -1,7 +1,8 @@
|
|
1
1
|
module RuboCop::Cop
|
2
2
|
module Standard
|
3
|
-
class SemanticBlocks < RuboCop::Cop::
|
3
|
+
class SemanticBlocks < RuboCop::Cop::Base
|
4
4
|
include RuboCop::Cop::IgnoredMethods
|
5
|
+
extend RuboCop::Cop::AutoCorrector
|
5
6
|
|
6
7
|
def on_send(node)
|
7
8
|
return unless node.arguments?
|
@@ -22,18 +23,14 @@ module RuboCop::Cop
|
|
22
23
|
proper_block_style?(node) ||
|
23
24
|
(!node.braces? && rescue_child_block?(node))
|
24
25
|
|
25
|
-
add_offense(node,
|
26
|
-
|
27
|
-
|
28
|
-
def autocorrect(node)
|
29
|
-
return if correction_would_break_code?(node)
|
26
|
+
add_offense(node.loc.begin, message: message(node)) do |corrector|
|
27
|
+
return if correction_would_break_code?(node)
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
replace_do_end_with_braces(node.loc)
|
29
|
+
if node.braces?
|
30
|
+
replace_braces_with_do_end(corrector, node.loc)
|
31
|
+
else
|
32
|
+
replace_do_end_with_braces(corrector, node.loc)
|
33
|
+
end
|
37
34
|
end
|
38
35
|
end
|
39
36
|
|
@@ -49,29 +46,25 @@ module RuboCop::Cop
|
|
49
46
|
end
|
50
47
|
end
|
51
48
|
|
52
|
-
def replace_braces_with_do_end(loc)
|
49
|
+
def replace_braces_with_do_end(corrector, loc)
|
53
50
|
b = loc.begin
|
54
51
|
e = loc.end
|
55
52
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
corrector.replace(e, "end")
|
62
|
-
end
|
53
|
+
corrector.insert_before(b, " ") unless whitespace_before?(b)
|
54
|
+
corrector.insert_before(e, " ") unless whitespace_before?(e)
|
55
|
+
corrector.insert_after(b, " ") unless whitespace_after?(b)
|
56
|
+
corrector.replace(b, "do")
|
57
|
+
corrector.replace(e, "end")
|
63
58
|
end
|
64
59
|
|
65
|
-
def replace_do_end_with_braces(loc)
|
60
|
+
def replace_do_end_with_braces(corrector, loc)
|
66
61
|
b = loc.begin
|
67
62
|
e = loc.end
|
68
63
|
|
69
|
-
|
70
|
-
corrector.insert_after(b, " ") unless whitespace_after?(b, 2)
|
64
|
+
corrector.insert_after(b, " ") unless whitespace_after?(b, 2)
|
71
65
|
|
72
|
-
|
73
|
-
|
74
|
-
end
|
66
|
+
corrector.replace(b, "{")
|
67
|
+
corrector.replace(e, "}")
|
75
68
|
end
|
76
69
|
|
77
70
|
def whitespace_before?(range)
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -19,13 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "1.
|
23
|
-
spec.add_dependency "rubocop-performance", "1.
|
24
|
-
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
27
|
-
spec.add_development_dependency "pry"
|
28
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
29
|
-
spec.add_development_dependency "simplecov"
|
30
|
-
spec.add_development_dependency "gimme"
|
22
|
+
spec.add_dependency "rubocop", "1.8.1"
|
23
|
+
spec.add_dependency "rubocop-performance", "1.9.2"
|
31
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,112 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.8.1
|
20
20
|
type: :runtime
|
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.8.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.9.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '13.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '13.0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: simplecov
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: gimme
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
40
|
+
version: 1.9.2
|
125
41
|
description:
|
126
42
|
email:
|
127
43
|
- searls@gmail.com
|
@@ -130,6 +46,7 @@ executables:
|
|
130
46
|
extensions: []
|
131
47
|
extra_rdoc_files: []
|
132
48
|
files:
|
49
|
+
- ".github/dependabot.yml"
|
133
50
|
- ".github/workflows/test.yml"
|
134
51
|
- ".gitignore"
|
135
52
|
- ".standard.yml"
|
@@ -146,6 +63,7 @@ files:
|
|
146
63
|
- config/ruby-1.9.yml
|
147
64
|
- config/ruby-2.2.yml
|
148
65
|
- config/ruby-2.3.yml
|
66
|
+
- config/ruby-2.5.yml
|
149
67
|
- docs/RELEASE.md
|
150
68
|
- exe/standardrb
|
151
69
|
- lib/standard.rb
|
@@ -190,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
108
|
- !ruby/object:Gem::Version
|
191
109
|
version: '0'
|
192
110
|
requirements: []
|
193
|
-
rubygems_version: 3.1.
|
111
|
+
rubygems_version: 3.1.4
|
194
112
|
signing_key:
|
195
113
|
specification_version: 4
|
196
114
|
summary: Ruby Style Guide, with linter & automatic code fixer
|