rubocop-md 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/rubocop/markdown/preprocess.rb +2 -2
- data/lib/rubocop/markdown/version.rb +1 -1
- data/rubocop-md.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e0bc7a246c9b83d118a61ec06d5a5142c5444d89143db2b5782eeaad048d1fb
|
4
|
+
data.tar.gz: 5fa52e9b357b75c79cffbf8d4ed1d8d7fa5e19435082e70f38e1bbd02fd0d80c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c29861c629e268aab54631f72d72971b6991d4b8413d65083d68b5726e321aabd6ee45a29e594b18efc37d10ece6a4d1c8ebf9927ef8a0fee9c291c7d841939d
|
7
|
+
data.tar.gz: 717e225fce45263a727732a4b7e17b3e98fde179b82bfe259631657767f6dc7210fb22e7885fab51d6502bdf446403fc9b65c473fb16b3075791503e710be08c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Run Rubocop against your Markdown files to make sure that code examples follow s
|
|
12
12
|
- Preserves specified language (i.e., do not try to analyze "\`\`\`sh")
|
13
13
|
- **Supports autocorrect 📝**
|
14
14
|
|
15
|
-
This project was developed to keep [test-prof](https://github.com/
|
15
|
+
This project was developed to keep [test-prof](https://github.com/test-prof/test-prof) guides consistent with Ruby style guide.
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
@@ -126,7 +126,7 @@ end
|
|
126
126
|
|
127
127
|
<span style="display:none;"># rubocop:enable all</span>
|
128
128
|
|
129
|
-
... continuation of article ...
|
129
|
+
... continuation of article ...
|
130
130
|
```
|
131
131
|
|
132
132
|
## How it works?
|
@@ -151,7 +151,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
151
151
|
|
152
152
|
## Contributing
|
153
153
|
|
154
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
154
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rubocop-hq/rubocop-md.
|
155
155
|
|
156
156
|
## License
|
157
157
|
|
@@ -73,8 +73,8 @@ module RuboCop
|
|
73
73
|
walker = Walker.new
|
74
74
|
|
75
75
|
parts.each do |part|
|
76
|
-
if walker.code_body?
|
77
|
-
next walker.next!
|
76
|
+
if walker.code_body? && maybe_ruby?(@syntax) && valid_syntax?(@syntax, part)
|
77
|
+
next walker.next!
|
78
78
|
end
|
79
79
|
|
80
80
|
if walker.code_attr?
|
data/rubocop-md.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_runtime_dependency "rubocop", "
|
32
|
+
spec.add_runtime_dependency "rubocop", ">= 0.60"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", ">= 1.15"
|
35
35
|
spec.add_development_dependency "rake", "~> 13.0"
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.60'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.60'
|
27
27
|
- !ruby/object:Gem::Dependency
|