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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39515a566265c94625d4830a0cc2d32d33ea28b7c4bf468d16eb187a2b4b151b
4
- data.tar.gz: cc517ef20a2309bc776616168cae00a5b4e56ca9bc19422b9765583db7926614
3
+ metadata.gz: f56c2e750c470680a47ab5bad0f47ad23774d9908baaa2bf28a1ee8ef3ebcd9d
4
+ data.tar.gz: 2a7dcc1e71b22f8dc50f5c63b02a7b215e3ca8737659950801e8763a4f56783a
5
5
  SHA512:
6
- metadata.gz: c93d26665db7f0d69a96daf711d92646677da5fb0e941b7e5aec3ee426917b8e2aa2d4ade27c02d769ef108d0dcdfa5d4be23ffde32a06248a3fad6c065c3ee1
7
- data.tar.gz: baa5d02854f6eff663f91a7c84e4d5bba1323eee306fed09f2f44fd01e3c6dcbc2093875970e6ae0d728de3c0e3e87c758e18a574e701adff931388deef709c5
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`.
@@ -94,7 +94,7 @@ module RuboCop
94
94
 
95
95
  # Check codeblack attribute if it's defined and of Ruby type
96
96
  def ruby?(syntax)
97
- RUBY_TYPES.include?(syntax)
97
+ RUBY_TYPES.include?(syntax.split.first)
98
98
  end
99
99
 
100
100
  # Try to parse with Ripper
@@ -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(*args)
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, *args)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Markdown
5
- VERSION = "2.0.1"
5
+ VERSION = "2.0.3"
6
6
  end
7
7
  end
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.1
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-04-14 00:00:00.000000000 Z
11
+ date: 2025-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lint_roller