mry 0.48.1.3 → 0.49.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/mry/rewriter_0_49_0.rb +80 -0
- data/lib/mry/rewriter_master.rb +0 -76
- data/lib/mry/runner.rb +1 -0
- data/lib/mry/version.rb +1 -1
- data/lib/mry.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f656bd30448c800c508a3a37b7292468f8fa6fd8
|
4
|
+
data.tar.gz: 4e0c9f1159de97e054d907a89a7a105e4baabe15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de7c392dbbdf7e7c2f014167159e4bf767d1f3b43cb9a5f19090bd548fcc33c655915559c7dd716ab6bf78c0e391df9ca12d084a4bedd60fdbad01300fa7d19
|
7
|
+
data.tar.gz: 5aee56ac71f235d2f6f91878ce841ff3e72e6a5a8d377b1ba0a3821a8a8722b54d3b28a83e9245171f1790a09775a2eda5d00e26dff7c5bf35c2376de04296cc
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,80 @@
|
|
1
|
+
module Mry
|
2
|
+
class Rewriter_0_49_0 < YAMLRewriter::Rewriter
|
3
|
+
layout_cops = %w[
|
4
|
+
Layout/AccessModifierIndentation
|
5
|
+
Layout/AlignArray
|
6
|
+
Layout/AlignHash
|
7
|
+
Layout/AlignParameters
|
8
|
+
Layout/BlockEndNewline
|
9
|
+
Layout/CaseIndentation
|
10
|
+
Layout/ClosingParenthesisIndentation
|
11
|
+
Layout/CommentIndentation
|
12
|
+
Layout/DotPosition
|
13
|
+
Layout/ElseAlignment
|
14
|
+
Layout/EmptyLineAfterMagicComment
|
15
|
+
Layout/EmptyLineBetweenDefs
|
16
|
+
Layout/EmptyLinesAroundAccessModifier
|
17
|
+
Layout/EmptyLinesAroundBeginBody
|
18
|
+
Layout/EmptyLinesAroundBlockBody
|
19
|
+
Layout/EmptyLinesAroundClassBody
|
20
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords
|
21
|
+
Layout/EmptyLinesAroundMethodBody
|
22
|
+
Layout/EmptyLinesAroundModuleBody
|
23
|
+
Layout/EmptyLines
|
24
|
+
Layout/EndOfLine
|
25
|
+
Layout/ExtraSpacing
|
26
|
+
Layout/FirstArrayElementLineBreak
|
27
|
+
Layout/FirstHashElementLineBreak
|
28
|
+
Layout/FirstMethodArgumentLineBreak
|
29
|
+
Layout/FirstMethodParameterLineBreak
|
30
|
+
Layout/FirstParameterIndentation
|
31
|
+
Layout/IndentArray
|
32
|
+
Layout/IndentAssignment
|
33
|
+
Layout/IndentationConsistency
|
34
|
+
Layout/IndentationWidth
|
35
|
+
Layout/IndentHash
|
36
|
+
Layout/IndentHeredoc
|
37
|
+
Layout/InitialIndentation
|
38
|
+
Layout/LeadingCommentSpace
|
39
|
+
Layout/MultilineArrayBraceLayout
|
40
|
+
Layout/MultilineAssignmentLayout
|
41
|
+
Layout/MultilineBlockLayout
|
42
|
+
Layout/MultilineHashBraceLayout
|
43
|
+
Layout/MultilineMethodCallBraceLayout
|
44
|
+
Layout/MultilineMethodCallIndentation
|
45
|
+
Layout/MultilineMethodDefinitionBraceLayout
|
46
|
+
Layout/MultilineOperationIndentation
|
47
|
+
Layout/RescueEnsureAlignment
|
48
|
+
Layout/SpaceAfterColon
|
49
|
+
Layout/SpaceAfterComma
|
50
|
+
Layout/SpaceAfterMethodName
|
51
|
+
Layout/SpaceAfterNot
|
52
|
+
Layout/SpaceAfterSemicolon
|
53
|
+
Layout/SpaceAroundBlockParameters
|
54
|
+
Layout/SpaceAroundEqualsInParameterDefault
|
55
|
+
Layout/SpaceAroundKeyword
|
56
|
+
Layout/SpaceAroundOperators
|
57
|
+
Layout/SpaceBeforeBlockBraces
|
58
|
+
Layout/SpaceBeforeComma
|
59
|
+
Layout/SpaceBeforeComment
|
60
|
+
Layout/SpaceBeforeFirstArg
|
61
|
+
Layout/SpaceBeforeSemicolon
|
62
|
+
Layout/SpaceInLambdaLiteral
|
63
|
+
Layout/SpaceInsideArrayPercentLiteral
|
64
|
+
Layout/SpaceInsideBlockBraces
|
65
|
+
Layout/SpaceInsideBrackets
|
66
|
+
Layout/SpaceInsideHashLiteralBraces
|
67
|
+
Layout/SpaceInsideParens
|
68
|
+
Layout/SpaceInsidePercentLiteralDelimiters
|
69
|
+
Layout/SpaceInsideRangeLiteral
|
70
|
+
Layout/SpaceInsideStringInterpolation
|
71
|
+
Layout/Tab
|
72
|
+
Layout/TrailingBlankLines
|
73
|
+
Layout/TrailingWhitespace
|
74
|
+
]
|
75
|
+
|
76
|
+
layout_cops.each do |cop|
|
77
|
+
define_rule [cop.sub('Layout', 'Style') => cop]
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
data/lib/mry/rewriter_master.rb
CHANGED
@@ -1,80 +1,4 @@
|
|
1
1
|
module Mry
|
2
2
|
class Rewriter_Master < YAMLRewriter::Rewriter
|
3
|
-
layout_cops = %w[
|
4
|
-
Layout/AccessModifierIndentation
|
5
|
-
Layout/AlignArray
|
6
|
-
Layout/AlignHash
|
7
|
-
Layout/AlignParameters
|
8
|
-
Layout/BlockEndNewline
|
9
|
-
Layout/CaseIndentation
|
10
|
-
Layout/ClosingParenthesisIndentation
|
11
|
-
Layout/CommentIndentation
|
12
|
-
Layout/DotPosition
|
13
|
-
Layout/ElseAlignment
|
14
|
-
Layout/EmptyLineAfterMagicComment
|
15
|
-
Layout/EmptyLineBetweenDefs
|
16
|
-
Layout/EmptyLinesAroundAccessModifier
|
17
|
-
Layout/EmptyLinesAroundBeginBody
|
18
|
-
Layout/EmptyLinesAroundBlockBody
|
19
|
-
Layout/EmptyLinesAroundClassBody
|
20
|
-
Layout/EmptyLinesAroundExceptionHandlingKeywords
|
21
|
-
Layout/EmptyLinesAroundMethodBody
|
22
|
-
Layout/EmptyLinesAroundModuleBody
|
23
|
-
Layout/EmptyLines
|
24
|
-
Layout/EndOfLine
|
25
|
-
Layout/ExtraSpacing
|
26
|
-
Layout/FirstArrayElementLineBreak
|
27
|
-
Layout/FirstHashElementLineBreak
|
28
|
-
Layout/FirstMethodArgumentLineBreak
|
29
|
-
Layout/FirstMethodParameterLineBreak
|
30
|
-
Layout/FirstParameterIndentation
|
31
|
-
Layout/IndentArray
|
32
|
-
Layout/IndentAssignment
|
33
|
-
Layout/IndentationConsistency
|
34
|
-
Layout/IndentationWidth
|
35
|
-
Layout/IndentHash
|
36
|
-
Layout/IndentHeredoc
|
37
|
-
Layout/InitialIndentation
|
38
|
-
Layout/LeadingCommentSpace
|
39
|
-
Layout/MultilineArrayBraceLayout
|
40
|
-
Layout/MultilineAssignmentLayout
|
41
|
-
Layout/MultilineBlockLayout
|
42
|
-
Layout/MultilineHashBraceLayout
|
43
|
-
Layout/MultilineMethodCallBraceLayout
|
44
|
-
Layout/MultilineMethodCallIndentation
|
45
|
-
Layout/MultilineMethodDefinitionBraceLayout
|
46
|
-
Layout/MultilineOperationIndentation
|
47
|
-
Layout/RescueEnsureAlignment
|
48
|
-
Layout/SpaceAfterColon
|
49
|
-
Layout/SpaceAfterComma
|
50
|
-
Layout/SpaceAfterMethodName
|
51
|
-
Layout/SpaceAfterNot
|
52
|
-
Layout/SpaceAfterSemicolon
|
53
|
-
Layout/SpaceAroundBlockParameters
|
54
|
-
Layout/SpaceAroundEqualsInParameterDefault
|
55
|
-
Layout/SpaceAroundKeyword
|
56
|
-
Layout/SpaceAroundOperators
|
57
|
-
Layout/SpaceBeforeBlockBraces
|
58
|
-
Layout/SpaceBeforeComma
|
59
|
-
Layout/SpaceBeforeComment
|
60
|
-
Layout/SpaceBeforeFirstArg
|
61
|
-
Layout/SpaceBeforeSemicolon
|
62
|
-
Layout/SpaceInLambdaLiteral
|
63
|
-
Layout/SpaceInsideArrayPercentLiteral
|
64
|
-
Layout/SpaceInsideBlockBraces
|
65
|
-
Layout/SpaceInsideBrackets
|
66
|
-
Layout/SpaceInsideHashLiteralBraces
|
67
|
-
Layout/SpaceInsideParens
|
68
|
-
Layout/SpaceInsidePercentLiteralDelimiters
|
69
|
-
Layout/SpaceInsideRangeLiteral
|
70
|
-
Layout/SpaceInsideStringInterpolation
|
71
|
-
Layout/Tab
|
72
|
-
Layout/TrailingBlankLines
|
73
|
-
Layout/TrailingWhitespace
|
74
|
-
]
|
75
|
-
|
76
|
-
layout_cops.each do |cop|
|
77
|
-
define_rule [cop.sub('Layout', 'Style') => cop]
|
78
|
-
end
|
79
3
|
end
|
80
4
|
end
|
data/lib/mry/runner.rb
CHANGED
data/lib/mry/version.rb
CHANGED
data/lib/mry.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Kuwabara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/mry/rewriter_0.rb
|
133
133
|
- lib/mry/rewriter_0_46_0.rb
|
134
134
|
- lib/mry/rewriter_0_47_0.rb
|
135
|
+
- lib/mry/rewriter_0_49_0.rb
|
135
136
|
- lib/mry/rewriter_master.rb
|
136
137
|
- lib/mry/runner.rb
|
137
138
|
- lib/mry/version.rb
|