test-prof 0.11.1 → 0.11.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: 3dac21d40ac7256f05daec255623a1f2e6efd049d22dfe0c437ac045d4c87e45
4
- data.tar.gz: 24f9a97916db189182015a42387614515ffb29c87828ef46d7c8809f4dd71454
3
+ metadata.gz: 967e917103495761884236a184497ae47d9a94950b91e2ab2f972b7f51d378e1
4
+ data.tar.gz: 733623aa5a072a701014d9c5b24b4c2bb3f1aee8c8f689b1c9bd7f0c7088c09d
5
5
  SHA512:
6
- metadata.gz: dadfb8ff828ebe21fcc2170086655cf7a5a2c017895f4beda09ade98f17063dc4b8bfb267b936d9e0d40d40685b18a27e3b8f66d710faeefa22a352c399bbc59
7
- data.tar.gz: 41f53b177b7871881357e18444fd59ebf729a442a756a5716b14da823cd87c30000af1bebdc92d675993172951fce593e88168d24ce63dc0cde0ab8f88dc8562
6
+ metadata.gz: b3205058c5cb3baa8c7552fd225c0932dc2c7b871adfd8efb81e59b669940a128c738ed2278b6262c7507a3fa9555f5a0be3c730b656bae8b7f2097f056c0697
7
+ data.tar.gz: 449e2c8c17397eec18b68c9e3f53ba3315b38bd4042a0191bedade3fa2a5b7fb1e9d1155b3673f08d6016b322a0733de1fc95a64cb5aa4b604dc7e209817b0c3
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.11.2 (2020-02-11)
6
+
7
+ - Fix RuboCop integration regressions. ([@palkan][])
8
+
5
9
  ## 0.11.1 (2020-02-10)
6
10
 
7
11
  - Add `config/` to the gem contents. ([@palkan][])
@@ -2,22 +2,24 @@
2
2
 
3
3
  # This is shamelessly borrowed from RuboCop RSpec
4
4
  # https://github.com/rubocop-hq/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
5
- module RuboCop
6
- # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
7
- # bit of our configuration.
8
- module Inject
9
- PROJECT_ROOT = Pathname.new(__dir__).parent.parent.parent.expand_path.freeze
10
- CONFIG_DEFAULT = PROJECT_ROOT.join("config", "default.yml").freeze
5
+ module TestProf
6
+ module Cops
7
+ # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
8
+ # bit of our configuration.
9
+ module Inject
10
+ PROJECT_ROOT = Pathname.new(__dir__).parent.parent.parent.expand_path.freeze
11
+ CONFIG_DEFAULT = PROJECT_ROOT.join("config", "default.yml").freeze
11
12
 
12
- def self.defaults!
13
- path = CONFIG_DEFAULT.to_s
14
- hash = ConfigLoader.send(:load_yaml_configuration, path)
15
- config = Config.new(hash, path)
16
- puts "configuration from #{path}" if ConfigLoader.debug?
17
- config = ConfigLoader.merge_with_default(config, path)
18
- ConfigLoader.instance_variable_set(:@default_configuration, config)
13
+ def self.defaults!
14
+ path = CONFIG_DEFAULT.to_s
15
+ hash = RuboCop::ConfigLoader.send(:load_yaml_configuration, path)
16
+ config = RuboCop::Config.new(hash, path)
17
+ puts "configuration from #{path}" if RuboCop::ConfigLoader.debug?
18
+ config = RuboCop::ConfigLoader.merge_with_default(config, path)
19
+ RuboCop::ConfigLoader.instance_variable_set(:@default_configuration, config)
20
+ end
19
21
  end
20
22
  end
21
23
  end
22
24
 
23
- RuboCop::Inject.defaults!
25
+ TestProf::Cops::Inject.defaults!
@@ -4,14 +4,12 @@ module RuboCop
4
4
  module Cop
5
5
  module RSpec
6
6
  class AggregateExamples
7
- def self.inherited(subclass)
8
- superclass.registry.enlist(subclass)
7
+ def self.registry
8
+ RuboCop::Cop::Cop.registry
9
9
  end
10
10
  end
11
11
 
12
12
  class AggregateFailures < AggregateExamples
13
- raise "Remove me" if TestProf::VERSION >= "1.0"
14
-
15
13
  def initialize(*)
16
14
  super
17
15
  self.class.just_once { warn "`AggregateFailures` cop has been renamed to `AggregateExamples`." }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestProf
4
- VERSION = "0.11.1"
4
+ VERSION = "0.11.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler