mry 0.58.0.0 → 0.59.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
  SHA256:
3
- metadata.gz: 177382cac05366f81f4d855798dbcf1b5c496c644abe0fc2572969fd8b5741ab
4
- data.tar.gz: 72929b51b2c3a1dbdacb0c079650be84de046201e92bace952780f79168f122c
3
+ metadata.gz: 710a11b0e41c84014952af8ff85c9a9a3ad5184711e4f4da6585df6fecfa156f
4
+ data.tar.gz: d930943bb87939c18fcef3df1ced7d9e97321621394ba2e12be4edb5f736b70c
5
5
  SHA512:
6
- metadata.gz: ee45053459d30b80b5cdc4d0b82f9ed154b7d31ee24ad81a29501b0dbc8ee9f916eeb01cdc5500a1a209b86a6cf7d416347d6b739fbb189db04b2e58c120ec23
7
- data.tar.gz: 6785e29f2b60589b57da6616dc840fc698712d676bcf61ca6e5c3fe96daaba5896c0c65faa4c9af1fde34c73ed90284a33245fb194e662094ec97bdd7fe839cb
6
+ metadata.gz: 68329c69e9b74caf0a420738d94f69d158a84184747929c3b079a07c8eb1ce365bb048f9b4c0bbb403d6c7bfaec26d20266b975f88d94b2150ddd4e0543933fc
7
+ data.tar.gz: 29efa055f5d70127f0489fabea7d4a269fe9c1f0cb4d26b07e23afbc6d24b3353b64616192df7d61ca96713c43416f946f3cddd7925948280bb8e79bd20bdc80
data/README.md CHANGED
@@ -75,9 +75,40 @@ Lint/RedundantWithObject:
75
75
 
76
76
  ## Development
77
77
 
78
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
78
+ ### How to support new version RuboCop
79
79
 
80
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
80
+ Run `bin/check_rubocop_update` script (depend on Ruby 2.6 or higher).
81
+ This script displays renamed, added and deleted cop names.
82
+
83
+ ```bash
84
+ # Clone rubocop repository if it does not exist.
85
+ $ git clone https://github.com/rubocop-hq/rubocop/ ~/path/to/rubocop/
86
+ $ bin/check_rubocop_update v0.55.0 v0.56.0 ~/path/to/rubocop/
87
+
88
+ (...log...)
89
+
90
+ :added:
91
+ - Lint/SplatKeywordArguments
92
+ - Performance/InefficientHashSearch
93
+ - Lint/ErbNewArguments
94
+ - Rails/AssertNot
95
+ - Rails/RefuteMethods
96
+ :renamed:
97
+ - :before:
98
+ - Style/EmptyLineAfterGuardClause
99
+ :after:
100
+ - Layout/EmptyLineAfterGuardClause
101
+ - :before:
102
+ - Style/MethodMissing
103
+ :after:
104
+ - Style/MethodMissingSuper
105
+ - Style/MissingRespondToMissing
106
+ :deleted: []
107
+ ```
108
+
109
+ Update `lib/mry/added_cops.rb` and `lib/mry/rewriters.rb` with this result.
110
+
111
+ Note: Mry does not support deleted cops and split cops. See [#37](https://github.com/pocke/mry/issues/37) and [#38](https://github.com/pocke/mry/issues/38).
81
112
 
82
113
  ## Contributing
83
114
 
@@ -1,6 +1,11 @@
1
1
  module Mry
2
2
  module AddedCops
3
3
  Cops = {
4
+ Gem::Version.new('0.59.0') => %w[
5
+ Performance/ChainArrayAllocation
6
+ Style/MultilineMethodSignature
7
+ Bundler/GemComment
8
+ ],
4
9
  Gem::Version.new('0.58.0') => %w[
5
10
  Style/IpAddresses
6
11
  ],
@@ -3,6 +3,9 @@ module Mry
3
3
  class Rewriter_Master < YAMLRewriter::Rewriter
4
4
  end
5
5
 
6
+ class Rewriter_0_59_0 < YAMLRewriter::Rewriter
7
+ end
8
+
6
9
  class Rewriter_0_58_0 < YAMLRewriter::Rewriter
7
10
  end
8
11
 
@@ -1,3 +1,3 @@
1
1
  module Mry
2
- VERSION = "0.58.0.0"
2
+ VERSION = "0.59.0.0"
3
3
  end
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.58.0.0
4
+ version: 0.59.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: 2018-07-22 00:00:00.000000000 Z
11
+ date: 2018-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.7.6
178
+ rubygems_version: 2.7.7
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Mry Migrates .Rubocop.Yml