rubocop_challenger 1.1.0 → 1.1.1

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: 8c067ca2d85a26c4e4870f7a83030e41c6c7b3f52f08d228ed0c5b5f9bc8fccf
4
- data.tar.gz: 7d37ba10853b30d3f63bd04decefb895c6fa77720ea8950c57562ee3eb593010
3
+ metadata.gz: c7b2f993a9cb1e6ace979764943f53ab98e25d593f3e9851286876ad2d22b224
4
+ data.tar.gz: 90e946d56b32ff85a7fa6b6bbd0e5e8cd2b5d820f8c175f16c43fcb3e2ab1e54
5
5
  SHA512:
6
- metadata.gz: 242895abafca8d75d793d5163d21cd4fb94b4ba46d090cc73e57157878b60f1f18bfaca4ecca596ac764ee3fbca4c08113b2fd4754d958942f6b1e64e1262505
7
- data.tar.gz: 9b1e9551fab46d305d5c323e328d75c7b72d54e503f84c3b265b962d85c695a43f09d4bbc8af1ddb227b510d53b6664245ef95b445a86cbddf6ef67d2c841c65
6
+ metadata.gz: 4ab90c4cdb9f1d437fdd65befe1ea155cc807923ef7b4de4a1ca49da90101caa4379e95d54de66cdd55ade3362ea13c19beae1168ad92dfd6b422913e6f0e81b
7
+ data.tar.gz: 5cbbaf78ca012ee21c68cc2495d82ded57f9c2bed6136fba5fd0051304392da7b77b2f44468cfe21d8015197bb2d4088a4b5f953d3c3e7d79dd861f42accfbb9
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-12-29 00:37:25 +0900 using RuboCop version 0.61.1.
3
+ # on 2019-01-17 12:21:52 +0900 using RuboCop version 0.63.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_challenger (1.1.0)
4
+ rubocop_challenger (1.1.1)
5
5
  octokit
6
6
  rubocop
7
7
  rubocop-rspec
@@ -18,13 +18,13 @@ GEM
18
18
  docile (1.3.1)
19
19
  faraday (0.15.4)
20
20
  multipart-post (>= 1.2, < 3)
21
- jaro_winkler (1.5.1)
21
+ jaro_winkler (1.5.2)
22
22
  json (2.1.0)
23
23
  multipart-post (2.0.0)
24
24
  octokit (4.13.0)
25
25
  sawyer (~> 0.8.0, >= 0.5.3)
26
26
  parallel (1.12.1)
27
- parser (2.5.3.0)
27
+ parser (2.6.0.0)
28
28
  ast (~> 2.4.0)
29
29
  powerpack (0.1.2)
30
30
  public_suffix (3.0.3)
@@ -45,7 +45,7 @@ GEM
45
45
  rspec-support (3.8.0)
46
46
  rspec_junit_formatter (0.4.1)
47
47
  rspec-core (>= 2, < 4, != 2.12.0)
48
- rubocop (0.61.1)
48
+ rubocop (0.63.0)
49
49
  jaro_winkler (~> 1.5.1)
50
50
  parallel (~> 1.10)
51
51
  parser (>= 2.5, != 2.5.1.1)
@@ -53,7 +53,7 @@ GEM
53
53
  rainbow (>= 2.2.2, < 4.0)
54
54
  ruby-progressbar (~> 1.7)
55
55
  unicode-display_width (~> 1.4.0)
56
- rubocop-rspec (1.30.1)
56
+ rubocop-rspec (1.31.0)
57
57
  rubocop (>= 0.60.0)
58
58
  ruby-progressbar (1.10.0)
59
59
  sawyer (0.8.1)
@@ -5,7 +5,7 @@ module RubocopChallenger
5
5
  # To read YARD style documentation from rubocop gem source code
6
6
  class Yardoc
7
7
  def initialize(title)
8
- @cop_class = Object.const_get("RuboCop::Cop::#{title.sub('/', '::')}")
8
+ @cop_class = find_cop_class(title)
9
9
  YARD.parse(source_file_path)
10
10
  @yardoc = YARD::Registry.all(:class).first
11
11
  YARD::Registry.clear
@@ -23,6 +23,17 @@ module RubocopChallenger
23
23
 
24
24
  attr_reader :cop_class, :yardoc
25
25
 
26
+ # Find a RuboCop class by cop name. It find from rubocop/rspec if cannot
27
+ # find any class from rubocop gem.
28
+ #
29
+ # @param cop_name [String] The target cop name
30
+ # @return [Class] Found RuboCop class
31
+ def find_cop_class(cop_name)
32
+ Object.const_get("RuboCop::Cop::#{cop_name.sub('/', '::')}")
33
+ rescue NameError
34
+ Object.const_get("RuboCop::Cop::RSpec::#{cop_name.sub('/', '::')}")
35
+ end
36
+
26
37
  def instance_methods
27
38
  [
28
39
  cop_class.instance_methods(false),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopChallenger
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
data/renovate.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": [
3
+ "config:base"
4
+ ]
5
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_challenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryosuke_sato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-28 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -197,6 +197,7 @@ files:
197
197
  - lib/rubocop_challenger/version.rb
198
198
  - lib/templates/checklist.md.erb
199
199
  - lib/templates/default.md.erb
200
+ - renovate.json
200
201
  homepage: https://github.com/ryz310/rubocop_challenger
201
202
  licenses:
202
203
  - MIT