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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d727e59c27251a2996c2012da4e0abadc35b8ccb
4
- data.tar.gz: f4e1edf8cb88a3c7a751eb6be644754fcceba41c
3
+ metadata.gz: a263d4d05fe8c56c8e7cb4f669091daec4cf8413
4
+ data.tar.gz: 99880a5ce7dbf25b8fcf9dd1ddff4a678de63bc2
5
5
  SHA512:
6
- metadata.gz: 90f2c846b2857a77bfc1d6abe9f23e7a456dd6c7f0b962cb06280d786263207cd52776bda5d1f990c18befa4611da200378c7719d6e89c693ce0ed7df9407fc4
7
- data.tar.gz: 40e44b1ab1f4567d65fc5e38b2ae345700b9e2a4b827bda0f4c353b0a4e4c80ea13e08458c9d545e6dbc8aa19fb2878c25b28e3f4d50f113e0ebbab78f9f2d35
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
- 'Lint/Debugger',
45
- 'Lint/UnusedBlockArgument',
46
- 'Lint/UnusedMethodArgument'
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
@@ -1,3 +1,3 @@
1
1
  module RuboCopFMT
2
- VERSION = '0.1.0.beta14'.freeze
2
+ VERSION = '0.1.0.beta16'.freeze
3
3
  end
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|spec|features|Gemfile\.ci)/})
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.beta14
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-06 00:00:00.000000000 Z
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