rfix 2.0.1 → 2.0.2

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: c43b123d10ebdfca4154ed37a121a87831cb62151080aadf4a01ab980498c25a
4
- data.tar.gz: 28fbba3d2cf4d8b43e27e813bfbe81dc2aae6334665b51e06cdc87ee78d8422c
3
+ metadata.gz: 833069f6ff2f14f202f58686b7cd1625ccacb95ea4c1de0bb280e41599168161
4
+ data.tar.gz: ed26d0b83851b80bbde38301149404acab8bf965fbb4fc054295640235ba0ed4
5
5
  SHA512:
6
- metadata.gz: 8d24bb84a5c76835a7763e6b20a469e1f5d78a431d747c90fb6ceeb027770fc2bbfb992e8d780a2c2a94d9c915fe3f266eabac3d0eb7afb9e3a2c74257d336bd
7
- data.tar.gz: bb3445743db5353b7ce527902557da50bd7b9ef72081f5b69dc3ff4288fe71cf21ef259a61901a0b8879605322af449f9a82bfb5484679034c09e5e5e6b41427
6
+ metadata.gz: 0567f6d839bbd92f0bbfec2dba9b3e11c3498857980ae8d4a70cb83935549f448dfa1cb78dfd0e7fd5f4c2317c3f1cba16a83c6f21be65bcbfea1c47573bbeda
7
+ data.tar.gz: 4527016f321ac25b5418d32a86a5af4154bd21ac89c26ce39dd5d6ea030e74350cc34f0e120c60855df714c86e8e23d5de9f38d3e63ad821301c4bd3db21ec46
@@ -50,7 +50,9 @@ module Rfix
50
50
  end
51
51
 
52
52
  config = RuboCop::ConfigStore.new.tap do |config|
53
- config.for_dir(handler.path)
53
+ if handler.rubocop_config_path.exist?
54
+ config.options_config = handler.rubocop_config_path
55
+ end
54
56
  end
55
57
 
56
58
  Undefined.default(args, handler.paths).then do |paths|
@@ -110,6 +110,10 @@ module Rfix
110
110
  untracked + tracked
111
111
  end
112
112
 
113
+ def rubocop_config_path
114
+ path.join(RuboCop::ConfigLoader::DOTFILE)
115
+ end
116
+
113
117
  def to_s
114
118
  options = {
115
119
  untracked: untracked.map(&:basename).join(", "),
data/lib/rfix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander