rubocop-schema-gen 0.1.5 → 0.1.6

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: 99db5861b36cfdf148861814554c532213934e810770b8ed61f570b81a51ea1c
4
- data.tar.gz: f7a310fbab5d4889cf24d8e138ca3acacf1fe66ab823699561d60b6db4320b02
3
+ metadata.gz: d98e35c60ef286f1d5c9df9233a47697e6902709cf821e35bab4e1fbbdc3bc3c
4
+ data.tar.gz: e510ba95ef1cebccef9309ac5645c5beb2b4cf62c37a7263545eedacc9420e03
5
5
  SHA512:
6
- metadata.gz: 6b646939f86c4db226daf43887e9039fb487143d8ceea498124d9b84f0297a0815558494982531edab03a2754e2a26c8f6c6f06e04f6d3a406f63f3ac7d526e9
7
- data.tar.gz: 42c0d2d6769be3de1ec6aec0dbb8efa8a609bfd59f82615587757a8bcbe5b79cad6e7ccbda6186cbe0f6ae59b4dc4fb84c106182b58ea05dcecabf8b059dc660
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]&.then &method(:strip_html)
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
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Schema
3
- VERSION = -'0.1.5'
3
+ VERSION = -'0.1.6'
4
4
  end
5
5
  end
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.5
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-06-10 00:00:00.000000000 Z
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.2.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