rubocopfmt 0.1.0.beta14 → 0.1.0.beta16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocopfmt/auto_corrector.rb +10 -5
- data/lib/rubocopfmt/version.rb +1 -1
- data/rubocopfmt.gemspec +2 -1
- metadata +2 -3
- data/Gemfile.ci +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a263d4d05fe8c56c8e7cb4f669091daec4cf8413
|
4
|
+
data.tar.gz: 99880a5ce7dbf25b8fcf9dd1ddff4a678de63bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ada94b886503c59847363f93917bbdda01eb7dba8891ca3c34b4d25373ad424d04fde186a9b66d21a90973b32953fa035572c47398826e68aed40cadd92a221
|
7
|
+
data.tar.gz: 8c7b93e4e7d4a26be594869da9cde91fa1cf0f0c43284b25dffcf587a491671dcccd7a291b39b09659b97421e0c899f9928d8c295324f23ee08d9429db9516b2
|
@@ -40,11 +40,16 @@ module RuboCopFMT
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def bad_interactive_cops
|
43
|
-
[
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
cops = []
|
44
|
+
cops << 'Lint/Debugger'
|
45
|
+
cops << 'Lint/UnusedBlockArgument'
|
46
|
+
cops << 'Lint/UnusedMethodArgument'
|
47
|
+
cops << 'Style/EmptyMethod' if rubocop_version?('>= 0.46.0')
|
48
|
+
cops
|
49
|
+
end
|
50
|
+
|
51
|
+
def rubocop_version?(version)
|
52
|
+
Gem::Dependency.new('', version).match?('', ::RuboCop::Version::STRING)
|
48
53
|
end
|
49
54
|
end
|
50
55
|
end
|
data/lib/rubocopfmt/version.rb
CHANGED
data/rubocopfmt.gemspec
CHANGED
@@ -15,8 +15,9 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/jimeh/rubocopfmt'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test
|
18
|
+
f.match(%r{^(test/|spec/|features/|Gemfile\.ci)})
|
19
19
|
end
|
20
|
+
|
20
21
|
spec.bindir = 'exe'
|
21
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
23
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocopfmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Myhrberg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -139,7 +139,6 @@ files:
|
|
139
139
|
- ".rubocop.yml"
|
140
140
|
- ".travis.yml"
|
141
141
|
- Gemfile
|
142
|
-
- Gemfile.ci
|
143
142
|
- LICENSE
|
144
143
|
- README.md
|
145
144
|
- Rakefile
|
data/Gemfile.ci
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
rubocop_version = ENV['RUBOCOP_VERSION'].to_s
|
4
|
-
rubocop_version = nil if rubocop_version.empty? || rubocop_version == 'latest'
|
5
|
-
rubocop_version = { github: 'bbatsov/rubocop' } if rubocop_version == 'master'
|
6
|
-
|
7
|
-
gem 'rubocop', rubocop_version
|
8
|
-
|
9
|
-
# Specify your gem's dependencies in rubocopfmt.gemspec
|
10
|
-
gemspec
|