yard-readme 0.2.0 → 0.3.0

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: f8fcf73f1ebef0ac81488b0ee0a04eba51bcc228e9ba8a6e414b444bc19a6335
4
- data.tar.gz: fe947ee1fc8c5fe274234e05feec1cf99238dbf20940542684ed3287289d4167
3
+ metadata.gz: dcd61abdc1876be598a2d532300f924ad55a57bfd1621c547a3af4ae58e66878
4
+ data.tar.gz: 86efaa1311664e611826262de6d8b0a959069033e1eee9f95f7e4b1cbd3bd4a6
5
5
  SHA512:
6
- metadata.gz: 4322e30867670192be390128fb6521de5985a70a156f9279d4419271be01e702a6e772365465bf3cf4746c7bbfbe567e410133f1ac5c4eb25c706a62ae9dbce6
7
- data.tar.gz: 18eeae3284d48faf9195c54162a1468602f55daaf07dffb2f2a6593d7a1f75034800c5bdc0e82bae46ebd836b2e4c21a7bfa4d1aa9e952a7a8fc065833eef6d4
6
+ metadata.gz: c782d9c5accdc97a479ca316bb5c779fbaf0f48a0aa638bc9c9f732bc04b941206eb2fe7f82eab7131d463f5daafee32f43e16c8035935301fe61688a01342ad
7
+ data.tar.gz: f80feffe36580aca84fc820e46bf44218992199da1e6c23a38791a37a560ffc7702246ad2ed55f655b54dd368730ffb4127ac801af6cf17a912d532d56dcd60f
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.0] - 2021-08-07
4
+
5
+ - Rename newly added methods be373f150e865b933a58a950e6a5c654395e17c4
6
+
3
7
  ## [0.2.0] - 2021-08-07
4
8
 
5
- - Be able to supprot new readme tag args in readme_yard without updating this gem b76ad2459168e4361ab38912e6faa7e36f249cec
9
+ - Be able to support new readme tag args in readme_yard without updating this gem b76ad2459168e4361ab38912e6faa7e36f249cec
6
10
 
7
11
  ## [0.1.2] - 2021-08-07
8
12
 
@@ -11,20 +11,20 @@ module YARDReadme
11
11
  #
12
12
  class DocstringParser < YARD::Docstring.default_parser
13
13
  class << self
14
- attr_accessor :readme_tag_args
14
+ attr_accessor :readme_tag_names
15
15
 
16
- def readme_tag_args_regex
17
- @readme_tag_args_regex ||= /\A(#{readme_tag_args.join("|")})/
16
+ def readme_tag_names_regex
17
+ @readme_tag_names_regex ||= /\A(#{readme_tag_names.join("|")})/
18
18
  end
19
19
 
20
- def readme_tag_args_regex?
21
- readme_tag_args && !readme_tag_args.empty?
20
+ def readme_tag_names_regex?
21
+ readme_tag_names && !readme_tag_names.empty?
22
22
  end
23
23
 
24
24
  def strip_readme_tag_arg(text)
25
- return text unless readme_tag_args_regex?
25
+ return text unless readme_tag_names_regex?
26
26
 
27
- text.sub(readme_tag_args_regex, "")
27
+ text.sub(readme_tag_names_regex, "")
28
28
  end
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YARDReadme
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-readme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Ruzicka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-07 00:00:00.000000000 Z
11
+ date: 2021-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard