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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/yard-readme/docstring_parser.rb +7 -7
- data/lib/yard-readme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcd61abdc1876be598a2d532300f924ad55a57bfd1621c547a3af4ae58e66878
|
4
|
+
data.tar.gz: 86efaa1311664e611826262de6d8b0a959069033e1eee9f95f7e4b1cbd3bd4a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 :
|
14
|
+
attr_accessor :readme_tag_names
|
15
15
|
|
16
|
-
def
|
17
|
-
@
|
16
|
+
def readme_tag_names_regex
|
17
|
+
@readme_tag_names_regex ||= /\A(#{readme_tag_names.join("|")})/
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
21
|
-
|
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
|
25
|
+
return text unless readme_tag_names_regex?
|
26
26
|
|
27
|
-
text.sub(
|
27
|
+
text.sub(readme_tag_names_regex, "")
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
data/lib/yard-readme/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|