rubocop-md 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +9 -0
- data/.travis.yml +3 -1
- data/CHANGELOG.md +5 -0
- data/lib/rubocop/markdown/rubocop_ext.rb +14 -1
- 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: bc15dd6ded764fed43fb02cab227790a6c63d8479d6d237933c1fe3e40badd1f
|
4
|
+
data.tar.gz: 3e1ac45380dbe961f678e7004ff4513367ee4a441781ae088f05fa8dfb746483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80981331cfa3f2899d98ef6711ac1ec57394d9036941685428b8a6294e4cb6c72ff1ffcb7b99460c15f0bc1691a763251aaaa87c7adc793fba787e33b5550046
|
7
|
+
data.tar.gz: d3ac4881930ab84406897655cd85cd5f50d6ce8fbb522ef5de38d9d769cd13225f27539f5eef1c3ac5627f71b37cbba85551f812d78df9025a91549b68614ced
|
data/.rubocop.yml
CHANGED
@@ -28,6 +28,15 @@ Style/ClassAndModuleChildren:
|
|
28
28
|
Exclude:
|
29
29
|
- 'test/**/*.rb'
|
30
30
|
|
31
|
+
Style/HashEachMethods:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Style/HashTransformKeys:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Style/HashTransformValues:
|
38
|
+
Enabled: true
|
39
|
+
|
31
40
|
Layout/EmptyLinesAroundArguments:
|
32
41
|
Enabled: false
|
33
42
|
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 0.3.2 (2020-03-18)
|
6
|
+
|
7
|
+
- [#9](https://github.com/rubocop-hq/rubocop-md/pull/9): Add file extensions for Markdown ([@ybiquitous][])
|
8
|
+
|
5
9
|
## 0.3.1 (2019-12-25)
|
6
10
|
|
7
11
|
- Upgrade to RuboCop 0.78 ([@palkan][])
|
@@ -13,3 +17,4 @@ Change the default config to use the new cop names for (e.g., `Layout/LineLength
|
|
13
17
|
- **Drop Ruby 2.2 support** ([@palkan][])
|
14
18
|
|
15
19
|
[@palkan]: https://github.com/palkan
|
20
|
+
[@ybiquitous]: https://github.com/ybiquitous
|
@@ -2,7 +2,20 @@
|
|
2
2
|
|
3
3
|
module RuboCop
|
4
4
|
module Markdown # :nodoc:
|
5
|
-
|
5
|
+
# According to Linguist.
|
6
|
+
# See https://github.com/github/linguist/blob/96ca71ab99c2f9928d5d69f4c08fd2a51440d045/lib/linguist/languages.yml#L3065-L3083
|
7
|
+
MARKDOWN_EXTENSIONS = %w[
|
8
|
+
.md
|
9
|
+
.markdown
|
10
|
+
.mdown
|
11
|
+
.mdwn
|
12
|
+
.mdx
|
13
|
+
.mkd
|
14
|
+
.mkdn
|
15
|
+
.mkdown
|
16
|
+
.ronn
|
17
|
+
.workbook
|
18
|
+
].freeze
|
6
19
|
|
7
20
|
class << self
|
8
21
|
attr_accessor :config_store
|
data/rubocop-md.gemspec
CHANGED
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_runtime_dependency "rubocop", "~> 0.60"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", ">= 1.15"
|
35
|
-
spec.add_development_dependency "rake", "~>
|
35
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
36
36
|
spec.add_development_dependency "minitest", "~> 5.0"
|
37
37
|
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: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|