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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc15dd6ded764fed43fb02cab227790a6c63d8479d6d237933c1fe3e40badd1f
4
- data.tar.gz: 3e1ac45380dbe961f678e7004ff4513367ee4a441781ae088f05fa8dfb746483
3
+ metadata.gz: fc562e28add38f2053f69cfedb41bc66d86398191a6eaa55c067b33f738ecfe8
4
+ data.tar.gz: 5b9281774067e963d133b33674395b1cc92ade3d76d0a190f6eb8195464adbb2
5
5
  SHA512:
6
- metadata.gz: 80981331cfa3f2899d98ef6711ac1ec57394d9036941685428b8a6294e4cb6c72ff1ffcb7b99460c15f0bc1691a763251aaaa87c7adc793fba787e33b5550046
7
- data.tar.gz: d3ac4881930ab84406897655cd85cd5f50d6ce8fbb522ef5de38d9d769cd13225f27539f5eef1c3ac5627f71b37cbba85551f812d78df9025a91549b68614ced
6
+ metadata.gz: 4ddbf872ef05fb4f9ce11906f186970c9516eb5dfdf8560a369ed26c726b790226b0355510b59ca766d26f4bc6dc5c821b34ed635e8ba9fa30f541c68354d2bc
7
+ data.tar.gz: 54a503aa50566c9fa9f8e86cafe3f207c228c4aead514775f5bebee0d8c2f6e04be5b83d1c45ce0152895dfe4f1ffaf78b6b4137a63d95518e5ad49725301d36
@@ -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.3
16
+ TargetRubyVersion: 2.4
16
17
 
17
18
  Style/Documentation:
18
19
  Exclude:
@@ -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
@@ -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.nil? || RuboCop::Markdown.markdown_file?(path)
81
+ path && RuboCop::Markdown.markdown_file?(path)
81
82
  super(src, *args)
82
83
  end
83
84
  end)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Markdown
5
- VERSION = "0.3.2"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  "source_code_uri" => "http://github.com/rubocop-hq/rubocop-md"
26
26
  }
27
27
 
28
- spec.required_ruby_version = ">= 2.3.0"
28
+ spec.required_ruby_version = ">= 2.4.0"
29
29
 
30
30
  spec.require_paths = ["lib"]
31
31
 
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.2
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-18 00:00:00.000000000 Z
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.3.0
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.3
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