yard-relative_markdown_links 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 241fab84ccb581bb448a4982b49250ee49b522ea735f59a51b12075b62327951
4
- data.tar.gz: 46c1e2924b1022be33a4285392a7919f2f50c9805b27af78de92899e73c1e1d4
3
+ metadata.gz: f08a3042106a441008993198b7023f440110ab8717ada00cf0047687abad61b4
4
+ data.tar.gz: bee1ae647802e524aa6b3e9eef92acaa43bed7e84fe785f81e769ad7d0f75466
5
5
  SHA512:
6
- metadata.gz: ee7f97e58019d1cc899eca68bb052a8f7ed75b5dfdb70c67442a826a5d211ef89e1439d60750abd21df038f20079d606c14bf3b2c8029ed32cc1abf890b5ee58
7
- data.tar.gz: 635a2aec1be2c4576d6a098aeb55f790070d4d32ef921b6ca9499ea893899179a5dcc0a5812581d49ccddc9467e6d8e442e937c9aa92ec2d5ae0fd90af4b9520
6
+ metadata.gz: bf2b2c96447c81369390515b4b9e666034031bfc796c15fee923653e53acf6c36fa574ceed6ae93d2655bcebc5c6b14fad0cc628741c29531a43f1a4be844d47
7
+ data.tar.gz: 466b92f58a7b7dc2878692fee6ce9e08e6d881f045832d8d59a95588630c652e6b39f55de92a052f2681ab45a6a9ed00bc3b32dc062de4961b8c38c0c3355052
data/.rubocop.yml CHANGED
@@ -11,6 +11,10 @@ Metrics/LineLength:
11
11
  Metrics/MethodLength:
12
12
  Enabled: false
13
13
 
14
+ Naming/FileName:
15
+ Exclude:
16
+ - lib/yard-relative_markdown_links.rb
17
+
14
18
  Style/BlockDelimiters:
15
19
  EnforcedStyle: semantic
16
20
 
@@ -18,10 +22,19 @@ Style/Documentation:
18
22
  Exclude:
19
23
  - test/**/*
20
24
 
25
+ Style/HashEachMethods:
26
+ Enabled: true
27
+
21
28
  Style/HashSyntax:
22
29
  Exclude:
23
30
  - Rakefile
24
31
 
32
+ Style/HashTransformKeys:
33
+ Enabled: true
34
+
35
+ Style/HashTransformValues:
36
+ Enabled: true
37
+
25
38
  Style/Lambda:
26
39
  EnforcedStyle: literal
27
40
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.7.0
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3
5
- - 2.4
6
4
  - 2.5
5
+ - 2.6
6
+ - 2.7
data/CHANGELOG.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.2.0] - 2020-03-06
11
+ ### Changed
12
+ - Stop testing against old Rubies and upgrade dependencies ([#6](https://github.com/haines/yard-relative_markdown_links/pull/6))
13
+
14
+ ## [0.1.2] - 2018-06-11
15
+ ### Changed
16
+ - Fix documentation ([#3](https://github.com/haines/yard-relative_markdown_links/pull/3))
17
+
18
+ ## [0.1.1] - 2018-06-11
19
+ ### Changed
20
+ - Fix error on plugin load ([#2](https://github.com/haines/yard-relative_markdown_links/pull/2))
21
+
22
+ ## [0.1.0] - 2018-06-11
23
+ ### Added
24
+ - A YARD plugin to allow relative links between Markdown files ([#1](https://github.com/haines/yard-relative_markdown_links/pull/1))
25
+
26
+ [Unreleased]: https://github.com/haines/yard-relative_markdown_links/compare/v0.2.0...HEAD
27
+ [0.2.0]: https://github.com/haines/yard-relative_markdown_links/compare/v0.1.2...v0.2.0
28
+ [0.1.2]: https://github.com/haines/yard-relative_markdown_links/compare/v0.1.1...v0.1.2
29
+ [0.1.1]: https://github.com/haines/yard-relative_markdown_links/compare/v0.1.0...v0.1.1
30
+ [0.1.0]: https://github.com/haines/yard-relative_markdown_links/compare/51b60cc1664a807cf32742a61b000a6a30da89fd...v0.1.0
data/Gemfile.lock CHANGED
@@ -1,52 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yard-relative_markdown_links (0.1.2)
5
- nokogiri (~> 1.8.1)
4
+ yard-relative_markdown_links (0.2.0)
5
+ nokogiri (~> 1.8)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.0)
11
11
  coderay (1.1.2)
12
- jaro_winkler (1.5.1)
13
- method_source (0.9.0)
14
- mini_portile2 (2.3.0)
15
- minitest (5.11.3)
16
- nokogiri (1.8.2)
17
- mini_portile2 (~> 2.3.0)
18
- parallel (1.12.1)
19
- parser (2.5.1.0)
12
+ jaro_winkler (1.5.4)
13
+ method_source (0.9.2)
14
+ mini_portile2 (2.4.0)
15
+ minitest (5.14.0)
16
+ nokogiri (1.10.9)
17
+ mini_portile2 (~> 2.4.0)
18
+ parallel (1.19.1)
19
+ parser (2.7.0.4)
20
20
  ast (~> 2.4.0)
21
- powerpack (0.1.2)
22
- pry (0.11.3)
21
+ pry (0.12.2)
23
22
  coderay (~> 1.1.0)
24
23
  method_source (~> 0.9.0)
25
24
  rainbow (3.0.0)
26
- rake (12.3.1)
27
- rubocop (0.57.1)
25
+ rake (12.3.3)
26
+ rexml (3.2.4)
27
+ rubocop (0.80.1)
28
28
  jaro_winkler (~> 1.5.1)
29
29
  parallel (~> 1.10)
30
- parser (>= 2.5)
31
- powerpack (~> 0.1)
30
+ parser (>= 2.7.0.1)
32
31
  rainbow (>= 2.2.2, < 4.0)
32
+ rexml
33
33
  ruby-progressbar (~> 1.7)
34
- unicode-display_width (~> 1.0, >= 1.0.1)
35
- ruby-progressbar (1.9.0)
36
- unicode-display_width (1.4.0)
37
- yard (0.9.14)
34
+ unicode-display_width (>= 1.4.0, < 1.7)
35
+ ruby-progressbar (1.10.1)
36
+ unicode-display_width (1.6.1)
37
+ yard (0.9.24)
38
38
 
39
39
  PLATFORMS
40
40
  ruby
41
41
 
42
42
  DEPENDENCIES
43
- bundler (~> 1.16)
43
+ bundler (~> 2.1)
44
44
  minitest (~> 5.11)
45
45
  pry (~> 0.11)
46
46
  rake (~> 12.1)
47
- rubocop (~> 0.57.1)
47
+ rubocop (~> 0.80.1)
48
48
  yard (~> 0.9)
49
49
  yard-relative_markdown_links!
50
50
 
51
51
  BUNDLED WITH
52
- 1.16.2
52
+ 2.1.4
data/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # YARD::RelativeMarkdownLinks
2
2
 
3
+ [![Docs](https://img.shields.io/badge/docs-github.io-blue.svg?style=flat-square)](https://haines.github.io/yard-relative_markdown_links/)
4
+ [![Gem](https://img.shields.io/gem/v/yard-relative_markdown_links.svg?style=flat-square)](https://rubygems.org/gems/yard-relative_markdown_links)
5
+ [![GitHub](https://img.shields.io/badge/github-haines%2Fyard--relative__markdown__links-blue.svg?style=flat-square)](https://github.com/haines/yard-relative_markdown_links)
6
+ [![License](https://img.shields.io/github/license/haines/yard-relative_markdown_links.svg?style=flat-square)](https://github.com/haines/yard-relative_markdown_links/blob/master/LICENSE.md)
7
+ [![Travis](https://img.shields.io/travis/haines/yard-relative_markdown_links.svg?style=flat-square)](https://travis-ci.org/haines/yard-relative_markdown_links)
8
+
9
+
3
10
  A [YARD](https://yardoc.org) plugin to allow relative links between Markdown files.
4
11
 
5
12
  GitHub and YARD render Markdown files differently.
@@ -21,6 +21,7 @@ module YARD # rubocop:disable Style/Documentation
21
21
  html.css("a[href]").each do |link|
22
22
  href = URI(link["href"])
23
23
  next unless href.relative? && markup_for_file(nil, href.path) == :markdown
24
+
24
25
  link.replace "{file:#{href} #{link.inner_html}}"
25
26
  end
26
27
  super(html.to_s)
@@ -3,6 +3,6 @@
3
3
  module YARD
4
4
  module RelativeMarkdownLinks
5
5
  # Current version of the yard-relative_markdown_links gem.
6
- VERSION = "0.1.2"
6
+ VERSION = "0.2.0"
7
7
  end
8
8
  end
@@ -19,14 +19,19 @@ Gem::Specification.new do |spec|
19
19
  spec.files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0").reject { |path| path.match(%r{^test/}) } }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
23
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
24
+ spec.metadata["documentation_uri"] = "https://haines.github.io/yard-relative_markdown_links/"
25
+ spec.metadata["homepage_uri"] = spec.homepage
26
+ spec.metadata["source_code_uri"] = spec.homepage
22
27
  spec.metadata["yard.run"] = "yri"
23
28
 
24
- spec.add_dependency "nokogiri", "~> 1.8.1"
29
+ spec.add_dependency "nokogiri", "~> 1.8"
25
30
 
26
- spec.add_development_dependency "bundler", "~> 1.16"
31
+ spec.add_development_dependency "bundler", "~> 2.1"
27
32
  spec.add_development_dependency "minitest", "~> 5.11"
28
33
  spec.add_development_dependency "pry", "~> 0.11"
29
34
  spec.add_development_dependency "rake", "~> 12.1"
30
- spec.add_development_dependency "rubocop", "~> 0.57.1"
35
+ spec.add_development_dependency "rubocop", "~> 0.80.1"
31
36
  spec.add_development_dependency "yard", "~> 0.9"
32
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-relative_markdown_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Haines
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.1
19
+ version: '1.8'
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
- version: 1.8.1
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
33
+ version: '2.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.16'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.57.1
89
+ version: 0.80.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.57.1
96
+ version: 0.80.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yard
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +120,7 @@ files:
120
120
  - ".ruby-version"
121
121
  - ".travis.yml"
122
122
  - ".yardopts"
123
+ - CHANGELOG.md
123
124
  - CODE_OF_CONDUCT.md
124
125
  - Gemfile
125
126
  - Gemfile.lock
@@ -138,6 +139,11 @@ homepage: https://github.com/haines/yard-relative_markdown_links
138
139
  licenses:
139
140
  - MIT
140
141
  metadata:
142
+ bug_tracker_uri: https://github.com/haines/yard-relative_markdown_links/issues
143
+ changelog_uri: https://github.com/haines/yard-relative_markdown_links/blob/master/CHANGELOG.md
144
+ documentation_uri: https://haines.github.io/yard-relative_markdown_links/
145
+ homepage_uri: https://github.com/haines/yard-relative_markdown_links
146
+ source_code_uri: https://github.com/haines/yard-relative_markdown_links
141
147
  yard.run: yri
142
148
  post_install_message:
143
149
  rdoc_options: []
@@ -154,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
160
  - !ruby/object:Gem::Version
155
161
  version: '0'
156
162
  requirements: []
157
- rubyforge_project:
158
- rubygems_version: 2.7.7
163
+ rubygems_version: 3.1.2
159
164
  signing_key:
160
165
  specification_version: 4
161
166
  summary: A YARD plugin to allow relative links between Markdown files