rubocop-schema-gen 0.1.5 → 0.1.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d98e35c60ef286f1d5c9df9233a47697e6902709cf821e35bab4e1fbbdc3bc3c
|
4
|
+
data.tar.gz: e510ba95ef1cebccef9309ac5645c5beb2b4cf62c37a7263545eedacc9420e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 366bb50398f6bb733cd8ee2cd83294b0db503bf8c1580533c9498131d00a4b680f016211d8927ef320fc3228baad0ef7aa5f8508e716ef05a7bcac8cccb68cce
|
7
|
+
data.tar.gz: b68e8aa28af5a18e9f2efadce1cc32e8feb67274434b0ceaac1e9192945e0376dd91594c3279b7db61d950d7fff386bcf24630a29f74034fa28abb00ffa7ef92
|
@@ -24,7 +24,9 @@ module RuboCop
|
|
24
24
|
|
25
25
|
def link_text(str)
|
26
26
|
# The Asciidoctor API doesn't provide access to the raw title, or parts of it.
|
27
|
-
str[%r{<a\s.+?>(.+?)</a>}, 1]
|
27
|
+
return unless (text = str[%r{<a\s.+?>(.+?)</a>}, 1])
|
28
|
+
|
29
|
+
strip_html text
|
28
30
|
end
|
29
31
|
|
30
32
|
# @param [Asciidoctor::Table] table
|
@@ -26,7 +26,7 @@ module RuboCop
|
|
26
26
|
# @param [Spec] spec
|
27
27
|
def defaults(spec)
|
28
28
|
@defaults[spec] ||=
|
29
|
-
YAML.safe_load @http_client.get(url_for_defaults(spec)), [Regexp, Symbol]
|
29
|
+
YAML.safe_load @http_client.get(url_for_defaults(spec)), [Regexp, Symbol], [], true
|
30
30
|
end
|
31
31
|
|
32
32
|
# @param [Spec] spec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-schema-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.0.9
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Generate JSON schemas for IDE integration with RuboCop
|