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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d415c40a4beeefad120b1b85cb2ced332c3ebb68
4
- data.tar.gz: 8f55ba2c7857a4616021713e8791adf244e2f6c5
3
+ metadata.gz: f656bd30448c800c508a3a37b7292468f8fa6fd8
4
+ data.tar.gz: 4e0c9f1159de97e054d907a89a7a105e4baabe15
5
5
  SHA512:
6
- metadata.gz: 7deb835c75e56e136700d681fc5ef5eb19c631bf802e2d9ec93dbb4673b1b34a5dc4b9bbb408875ce329dac685934825a73a34f6d7c3a178dcb44bc458cd5482
7
- data.tar.gz: 3f7cc6aab1e6f9ac26d7f4efcc31f9c0960766dd36ca2c04aa9d92c619b3e7bba48aa13cf2075c6cd9e1ff6c5f70719d547d330c39db08d099cc85436578731a
6
+ metadata.gz: 0de7c392dbbdf7e7c2f014167159e4bf767d1f3b43cb9a5f19090bd548fcc33c655915559c7dd716ab6bf78c0e391df9ca12d084a4bedd60fdbad01300fa7d19
7
+ data.tar.gz: 5aee56ac71f235d2f6f91878ce841ff3e72e6a5a8d377b1ba0a3821a8a8722b54d3b28a83e9245171f1790a09775a2eda5d00e26dff7c5bf35c2376de04296cc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.49.0.0 (2017-05-28)
6
+
7
+ ### New Features
8
+
9
+ - [#13](https://github.com/pocke/mry/pull/13): Support RuboCop 0.49.0. ([@pocke][])
10
+
5
11
  ## 0.48.1.3 (2017-05-15)
6
12
 
7
13
  ### New Features
@@ -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
@@ -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
@@ -1,6 +1,7 @@
1
1
  module Mry
2
2
  module Runner
3
3
  Rewriters = {
4
+ Gem::Version.new('0.49.0') => Rewriter_0_49_0,
4
5
  Gem::Version.new('0.47.0') => Rewriter_0_47_0,
5
6
  Gem::Version.new('0.46.0') => Rewriter_0_46_0,
6
7
  Gem::Version.new('0') => Rewriter_0,
data/lib/mry/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mry
2
- VERSION = "0.48.1.3"
2
+ VERSION = "0.49.0.0"
3
3
  end
data/lib/mry.rb CHANGED
@@ -3,6 +3,7 @@ require 'optparse'
3
3
 
4
4
  require "mry/version"
5
5
  require 'mry/rewriter_master'
6
+ require 'mry/rewriter_0_49_0'
6
7
  require 'mry/rewriter_0_47_0'
7
8
  require 'mry/rewriter_0_46_0'
8
9
  require 'mry/rewriter_0'
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.48.1.3
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-15 00:00:00.000000000 Z
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