rubocopfmt 0.1.0.beta10 → 0.1.0.beta11

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: '0499af5d4df26074ce977b4ea3b342a4fee80f01'
4
- data.tar.gz: 69f4c237faf44139cdeea5e55016ddba7b9e030c
3
+ metadata.gz: 1c5015e60fee2aa44311bf6bf5a790bdd4bad487
4
+ data.tar.gz: 6f15b7204a1b291ed9459d787286e0af377d9ae5
5
5
  SHA512:
6
- metadata.gz: 9085840c6e9be2546e22c685ae294f1515baa74b8884ce961cc9386190b2b14199f6c84efed555e0ba66444abcd1266de88f7304040b9b6780511c9fc4d83a62
7
- data.tar.gz: 9961b01ba0dbd6fd1aa406556d20f178c4beba1a76c90ef49f53944229ea67b4ebd4c0f112c01e554bc13febdbaac99ea758b71e7860bedae1af6e4c0ba13430
6
+ metadata.gz: b22f24fce7ed4fdd38ba3537a378e25e3c42c1197dc514d0020a4823c8a6e7a413d85c5f3444ed6c7b20512b1d6d0cfe65c7959da874546c16a8c0078685385f
7
+ data.tar.gz: bee6d29a580a2bc50e4864204ee7d19552929c2098069b673f768f24bb019473cadfb7234a660058b06a8305831c806c47dd9ada08374107c148f645eeb72092
data/.travis.yml CHANGED
@@ -5,4 +5,4 @@ rvm:
5
5
  - 2.2
6
6
  - 2.3.3
7
7
  - 2.4.0
8
- before_install: gem install bundler -v 1.13.6
8
+ before_install: gem install bundler; gem install rainbow -v '2.2.1'
@@ -4,12 +4,6 @@ require 'rubocopfmt/rubocop_formatter'
4
4
 
5
5
  module RuboCopFMT
6
6
  class AutoCorrector
7
- BAD_INTERACTIVE_COPS = [
8
- 'Lint/Debugger',
9
- 'Lint/UnusedBlockArgument',
10
- 'Lint/UnusedMethodArgument'
11
- ].freeze
12
-
13
7
  attr_reader :input
14
8
  attr_reader :runner
15
9
 
@@ -22,7 +16,7 @@ module RuboCopFMT
22
16
  Rainbow.enabled = false if defined?(Rainbow)
23
17
 
24
18
  options = default_options.clone
25
- options[:except] = BAD_INTERACTIVE_COPS if interactive
19
+ options[:except] = bad_interactive_cops if interactive
26
20
 
27
21
  @runner = ::RuboCop::Runner.new(options, ::RuboCop::ConfigStore.new)
28
22
  @runner.run(paths)
@@ -44,5 +38,13 @@ module RuboCopFMT
44
38
  formatters: [['RuboCopFMT::RubocopFormatter']]
45
39
  }
46
40
  end
41
+
42
+ def bad_interactive_cops
43
+ [
44
+ 'Lint/Debugger',
45
+ 'Lint/UnusedBlockArgument',
46
+ 'Lint/UnusedMethodArgument'
47
+ ]
48
+ end
47
49
  end
48
50
  end
@@ -1,3 +1,3 @@
1
1
  module RuboCopFMT
2
- VERSION = '0.1.0.beta10'.freeze
2
+ VERSION = '0.1.0.beta11'.freeze
3
3
  end
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.beta10
4
+ version: 0.1.0.beta11
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-01-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler