rubocop-md 0.3.2 → 0.4.0
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/.rubocop.yml +2 -1
- data/.travis.yml +3 -2
- data/CHANGELOG.md +5 -0
- data/lib/rubocop/markdown/rubocop_ext.rb +2 -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: fc562e28add38f2053f69cfedb41bc66d86398191a6eaa55c067b33f738ecfe8
|
|
4
|
+
data.tar.gz: 5b9281774067e963d133b33674395b1cc92ade3d76d0a190f6eb8195464adbb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ddbf872ef05fb4f9ce11906f186970c9516eb5dfdf8560a369ed26c726b790226b0355510b59ca766d26f4bc6dc5c821b34ed635e8ba9fa30f541c68354d2bc
|
|
7
|
+
data.tar.gz: 54a503aa50566c9fa9f8e86cafe3f207c228c4aead514775f5bebee0d8c2f6e04be5b83d1c45ce0152895dfe4f1ffaf78b6b4137a63d95518e5ad49725301d36
|
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
AllCops:
|
|
2
|
+
NewCops: enable
|
|
2
3
|
Include:
|
|
3
4
|
- 'lib/**/*.rb'
|
|
4
5
|
- 'lib/**/*.rake'
|
|
@@ -12,7 +13,7 @@ AllCops:
|
|
|
12
13
|
- '*.gemspec'
|
|
13
14
|
DisplayCopNames: true
|
|
14
15
|
StyleGuideCopsOnly: false
|
|
15
|
-
TargetRubyVersion: 2.
|
|
16
|
+
TargetRubyVersion: 2.4
|
|
16
17
|
|
|
17
18
|
Style/Documentation:
|
|
18
19
|
Exclude:
|
data/.travis.yml
CHANGED
|
@@ -4,6 +4,9 @@ before_install:
|
|
|
4
4
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
|
5
5
|
- gem install bundler -v '< 2'
|
|
6
6
|
|
|
7
|
+
notifications:
|
|
8
|
+
email: false
|
|
9
|
+
|
|
7
10
|
matrix:
|
|
8
11
|
fast_finish: true
|
|
9
12
|
include:
|
|
@@ -21,8 +24,6 @@ matrix:
|
|
|
21
24
|
gemfile: Gemfile
|
|
22
25
|
- rvm: 2.4.2
|
|
23
26
|
gemfile: Gemfile
|
|
24
|
-
- rvm: 2.3.1
|
|
25
|
-
gemfile: Gemfile
|
|
26
27
|
allow_failures:
|
|
27
28
|
- rvm: ruby-head
|
|
28
29
|
gemfile: gemfiles/rubocopmaster.gemfile
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
+
## 0.4.0 (2020-07-03)
|
|
6
|
+
|
|
7
|
+
- [#10](https://github.com/rubocop-hq/rubocop-md/pull/10): **Drop Ruby 2.3 support** ([@dominicsayers][])
|
|
8
|
+
|
|
5
9
|
## 0.3.2 (2020-03-18)
|
|
6
10
|
|
|
7
11
|
- [#9](https://github.com/rubocop-hq/rubocop-md/pull/9): Add file extensions for Markdown ([@ybiquitous][])
|
|
@@ -18,3 +22,4 @@ Change the default config to use the new cop names for (e.g., `Layout/LineLength
|
|
|
18
22
|
|
|
19
23
|
[@palkan]: https://github.com/palkan
|
|
20
24
|
[@ybiquitous]: https://github.com/ybiquitous
|
|
25
|
+
[@dominicsayers]: https://github.com/dominicsayers
|
|
@@ -19,6 +19,7 @@ module RuboCop
|
|
|
19
19
|
|
|
20
20
|
class << self
|
|
21
21
|
attr_accessor :config_store
|
|
22
|
+
|
|
22
23
|
# Merge markdown config into default configuration
|
|
23
24
|
# See https://github.com/backus/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
|
|
24
25
|
def inject!
|
|
@@ -77,7 +78,7 @@ RuboCop::ProcessedSource.prepend(Module.new do
|
|
|
77
78
|
def parse(src, *args)
|
|
78
79
|
# only process Markdown files
|
|
79
80
|
src = RuboCop::Markdown::Preprocess.new(path).call(src) if
|
|
80
|
-
path
|
|
81
|
+
path && RuboCop::Markdown.markdown_file?(path)
|
|
81
82
|
super(src, *args)
|
|
82
83
|
end
|
|
83
84
|
end)
|
data/rubocop-md.gemspec
CHANGED
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.
|
|
4
|
+
version: 0.4.0
|
|
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-03
|
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -109,14 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
requirements:
|
|
110
110
|
- - ">="
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: 2.
|
|
112
|
+
version: 2.4.0
|
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 3.0.
|
|
119
|
+
rubygems_version: 3.0.6
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Run Rubocop against your Markdown files to make sure that code examples follow
|