support_table_data 1.5.1 → 1.5.2
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/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/support_table_data/documentation/source_file.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82058731205c6222edf23783def3fdd7034354f9f81b77deb1eab2dd466de423
|
|
4
|
+
data.tar.gz: b5cdf88268b861064d5676a67c43ac1ed5d3ea94bf9cabd6ddfa7c5aaa49db4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 051ba76b99aecd331fe2d30779604619dfd3008e4538dfeb2542bce26ae764a498a64b03f47090c3e5cadb71d2a782df868c9749f74a436b47438c67b3c540d7
|
|
7
|
+
data.tar.gz: 352daacb10516c249346b2424718136055229c19099e17126a36c66b9a717ca0998f2a9cfab785e05fcffc8fdfa6e543ac853ec19419edafc8fd84f8c8b5ba54
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 1.5.2
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Added `rubocop:disable all` around generated YARD documentation to prevent RuboCop offenses in the generated code. This ensures that the generated documentation does not cause any issues with RuboCop linting in the project.
|
|
12
|
+
|
|
7
13
|
## 1.5.1
|
|
8
14
|
|
|
9
15
|
### Added
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.5.
|
|
1
|
+
1.5.2
|
|
@@ -55,9 +55,11 @@ module SupportTableData
|
|
|
55
55
|
updated_source = source[0, existing_yard_docs.begin(0)]
|
|
56
56
|
updated_source << "#{indent}#{BEGIN_YARD_COMMENT}\n"
|
|
57
57
|
updated_source << "#{indent}#{UPDATE_COMMAND_COMMENT}\n"
|
|
58
|
+
updated_source << "#{indent}# rubocop:disable all\n"
|
|
58
59
|
updated_source << "#{indent}class #{klass.name}\n" if has_class_def
|
|
59
60
|
updated_source << yard_docs
|
|
60
61
|
updated_source << "\n#{indent}end" if has_class_def
|
|
62
|
+
updated_source << "\n#{indent}# rubocop:enable all"
|
|
61
63
|
updated_source << "\n#{indent}#{END_YARD_COMMENT}"
|
|
62
64
|
updated_source << source[existing_yard_docs.end(0)..-1]
|
|
63
65
|
updated_source
|
|
@@ -65,9 +67,11 @@ module SupportTableData
|
|
|
65
67
|
yard_comments = <<~SOURCE.chomp("\n")
|
|
66
68
|
#{BEGIN_YARD_COMMENT}
|
|
67
69
|
#{UPDATE_COMMAND_COMMENT}
|
|
70
|
+
# rubocop:disable all
|
|
68
71
|
class #{klass.name}
|
|
69
72
|
#{yard_docs.lines.map { |line| line.blank? ? "\n" : " #{line}" }.join}
|
|
70
73
|
end
|
|
74
|
+
# rubocop:enable all
|
|
71
75
|
#{END_YARD_COMMENT}
|
|
72
76
|
SOURCE
|
|
73
77
|
"#{source.rstrip}\n\n#{yard_comments}#{trailing_newline}"
|