rubocop-md 2.0.1 → 2.0.3
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 +8 -0
- data/lib/rubocop/markdown/preprocess.rb +1 -1
- data/lib/rubocop/markdown/rubocop_ext.rb +5 -5
- data/lib/rubocop/markdown/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: f56c2e750c470680a47ab5bad0f47ad23774d9908baaa2bf28a1ee8ef3ebcd9d
|
4
|
+
data.tar.gz: 2a7dcc1e71b22f8dc50f5c63b02a7b215e3ca8737659950801e8763a4f56783a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dcfe1bbf135e5d7bf8452580dca696bca8ee490395bb429fea973c5c68c7e1f7e59fd4912e38814343a73c623714d0342fa5515e5e7f269690792471069c258
|
7
|
+
data.tar.gz: e63dfd019f828af567b8b003cb0ac158e9eb40f4d5ffcc1b57f2447e263b470a9a4f1cc7a26e66f20bc7bba6585646f2f1355c62f39aaf81622352678f6488a6
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 2.0.3 (2025-09-30)
|
6
|
+
|
7
|
+
- Fix compatibility with RuboCop upstream (`get_processed_source` signature)
|
8
|
+
|
9
|
+
## 2.0.2 (2025-08-20)
|
10
|
+
|
11
|
+
- Support metadata in code blocks.
|
12
|
+
|
5
13
|
## 2.0.1 (2025-04-14)
|
6
14
|
|
7
15
|
- Remove `Layout/TrailingBlankLines`.
|
@@ -33,7 +33,7 @@ end
|
|
33
33
|
|
34
34
|
RuboCop::Runner.prepend(Module.new do
|
35
35
|
# Set config store for Markdown
|
36
|
-
def get_processed_source(
|
36
|
+
def get_processed_source(...)
|
37
37
|
RuboCop::Markdown.config_store = @config_store unless RuboCop::Markdown.config_store
|
38
38
|
|
39
39
|
super
|
@@ -41,13 +41,13 @@ RuboCop::Runner.prepend(Module.new do
|
|
41
41
|
|
42
42
|
# Do not cache markdown files, 'cause cache doesn't know about processing.
|
43
43
|
# NOTE: we should involve preprocessing in RuboCop::CachedData#deserialize_offenses
|
44
|
-
def file_offense_cache(file)
|
44
|
+
def file_offense_cache(file, ...)
|
45
45
|
return yield if RuboCop::Markdown.markdown_file?(file)
|
46
46
|
|
47
47
|
super
|
48
48
|
end
|
49
49
|
|
50
|
-
def file_finished(file, offenses)
|
50
|
+
def file_finished(file, offenses, ...)
|
51
51
|
return super unless RuboCop::Markdown.markdown_file?(file)
|
52
52
|
|
53
53
|
# Run Preprocess.restore if file has been autocorrected
|
@@ -75,14 +75,14 @@ end)
|
|
75
75
|
|
76
76
|
# Allow Rubocop to analyze markdown files
|
77
77
|
RuboCop::TargetFinder.prepend(Module.new do
|
78
|
-
def ruby_file?(file)
|
78
|
+
def ruby_file?(file, ...)
|
79
79
|
super || RuboCop::Markdown.markdown_file?(file)
|
80
80
|
end
|
81
81
|
end)
|
82
82
|
|
83
83
|
# Extend ProcessedSource#parse with pre-processing
|
84
84
|
RuboCop::ProcessedSource.prepend(Module.new do
|
85
|
-
def parse(src,
|
85
|
+
def parse(src, ...)
|
86
86
|
# only process Markdown files
|
87
87
|
src = RuboCop::Markdown::Preprocess.new(path).call(src) if
|
88
88
|
path && RuboCop::Markdown.markdown_file?(path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lint_roller
|