rubocop_challenger 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/Gemfile.lock +5 -5
- data/lib/rubocop_challenger/rubocop/yardoc.rb +12 -1
- data/lib/rubocop_challenger/version.rb +1 -1
- data/renovate.json +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7b2f993a9cb1e6ace979764943f53ab98e25d593f3e9851286876ad2d22b224
|
|
4
|
+
data.tar.gz: 90e946d56b32ff85a7fa6b6bbd0e5e8cd2b5d820f8c175f16c43fcb3e2ab1e54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 =
|
|
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),
|
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.
|
|
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:
|
|
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
|