jekyll-extlinks 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -3
  3. data/License +21 -21
  4. data/README.md +42 -42
  5. data/jekyll-extlinks.gemspec +4 -4
  6. metadata +11 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 47ca25797d038e5fc278a7a917cc19f29b81cd38
4
- data.tar.gz: 6170a177dd0d73f35e9e6a8bdfb4695c06400c92
2
+ SHA256:
3
+ metadata.gz: d1ee84ab770627811624a8363490611bb5d9765f1ea39bdae5070490c1227913
4
+ data.tar.gz: 694641e42fce73564cb9f11aa55e39b7a4e6edd87baa7ab09c515c4371be2b96
5
5
  SHA512:
6
- metadata.gz: 63459579153e846972b526081bc70102679d814e66f391934e13159c33cbc1762eecd50c746fb9a76e771198b409d1e13c6bd07f6ed7c08bba622dbf21708200
7
- data.tar.gz: 60995218a997660d4e3efa2c1ae296daf782cef914d9a8274b53b68a8ad6a4d6c449073002cf216a79c694ae6faf9b0b2010770aa74014a6a1195733a1d1b0db
6
+ metadata.gz: cdaf8b703f4388a9079688bb6a7863f224768edb739ec6e99ef06a3a70a7bf38b6467c744dfe1a96ce070b4ab58990d5a5db04dbed3594706a1023d506eeda8d
7
+ data.tar.gz: 572356d1435701facd1f84d29db2d79ba42e87ddfd8131a50501339171558600bd579d157b7a951662330410472d3157184abac14001e2959aaa01fb39008073
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/License CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Dmitry Ogarkov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Dmitry Ogarkov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,42 +1,42 @@
1
- # Jekyll ExtLinks
2
- This Jekyll plugin adds custom attributes (`rel="nofollow"`, `target="_blank"`, etc.) to external links in your content.
3
-
4
- ## Description
5
- This Jekyll plugin adds custom attributes to external links in your content. For example, you can add `rel="nofollow"` to all external links by default (with exceptions if you need them), or something like `class="external"`. You can also use it to add `target="_blank"` to external links, but generally it is not recommended as it leads to bad user experience. Multiple attributes are allowed.
6
-
7
- ## Installation
8
- 1. Install the gem from RubyGems: `gem install jekyll-extlinks`. The Nokogiri gem is required. If you experience any problems installing Nokogiri (*"ERROR: Failed to build gem native extension"*, etc.), run `gem update --system` and try again.
9
-
10
- 2. Add this to your project's `Gemfile`:
11
- ```ruby
12
- gem 'jekyll-extlinks'
13
- ```
14
-
15
- 3. Add this to your project's `_config.yml`:
16
- ```yml
17
- gems:
18
- - jekyll-extlinks
19
- ```
20
-
21
- ## Configuration
22
- Configure the plugin in your `_config.yml`. Notice the indentation matters. Example:
23
-
24
- ```yml
25
- extlinks:
26
- attributes: {rel: nofollow, target: _blank}
27
- rel_exclude: ['host1.com', 'host2.net']
28
- ```
29
-
30
- * `attributes` are required - at least one of them; `rel_exclude` is optional
31
- * Links to hosts listed in `rel_exclude` will not have the `rel` attribute set
32
- * Links which have the `rel` attribute already will keep it unchanged, like this one in Markdown: `[Link text](http://someurl.com){:rel="dofollow"}`
33
- * Relative links will not be processed
34
- * Don't forget to actually use the plugin (see below)
35
-
36
- ## Usage
37
- Use the plugin in your Jekyll layouts: `{{ content | extlinks }}`
38
-
39
- ## Notes
40
- Developed by Dmitry Ogarkov - http://ogarkov.com/jekyll/plugins/extlinks/
41
-
42
- Based on http://dev.mensfeld.pl/2014/12/rackrails-middleware-that-will-ensure-relnofollow-for-all-your-links/
1
+ # Jekyll ExtLinks
2
+ This Jekyll plugin adds custom attributes (`rel="nofollow"`, `target="_blank"`, etc.) to external links in your content.
3
+
4
+ ## Description
5
+ This Jekyll plugin adds custom attributes to external links in your content. For example, you can add `rel="nofollow"` to all external links by default (with exceptions if you need them), or something like `class="external"`. You can also use it to add `target="_blank"` to external links, but generally it is not recommended as it leads to bad user experience. Multiple attributes are allowed.
6
+
7
+ ## Installation
8
+ 1. Install the gem from RubyGems: `gem install jekyll-extlinks`. The Nokogiri gem is required. If you experience any problems installing Nokogiri (*"ERROR: Failed to build gem native extension"*, etc.), run `gem update --system` and try again.
9
+
10
+ 2. Add this to your project's `Gemfile`:
11
+ ```ruby
12
+ gem 'jekyll-extlinks'
13
+ ```
14
+
15
+ 3. Add this to your project's `_config.yml`:
16
+ ```yml
17
+ plugins:
18
+ - jekyll-extlinks
19
+ ```
20
+
21
+ ## Configuration
22
+ Configure the plugin in your `_config.yml`. Notice the indentation matters. Example:
23
+
24
+ ```yml
25
+ extlinks:
26
+ attributes: {rel: nofollow, target: _blank}
27
+ rel_exclude: ['host1.com', 'host2.net']
28
+ ```
29
+
30
+ * `attributes` are required - at least one of them; `rel_exclude` is optional
31
+ * Links to hosts listed in `rel_exclude` will not have the `rel` attribute set
32
+ * Links which have the `rel` attribute already will keep it unchanged, like this one in Markdown: `[Link text](http://someurl.com){:rel="dofollow"}`
33
+ * Relative links will not be processed
34
+ * Don't forget to actually use the plugin (see below)
35
+
36
+ ## Usage
37
+ Use the plugin in your Jekyll layouts: `{{ content | extlinks }}`
38
+
39
+ ## Notes
40
+ Developed by Dmitry Ogarkov - http://ogarkov.com/jekyll/plugins/extlinks/
41
+
42
+ Based on http://dev.mensfeld.pl/2014/12/rackrails-middleware-that-will-ensure-relnofollow-for-all-your-links/
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jekyll-extlinks"
3
- s.version = "0.0.4"
4
- s.date = "2017-06-08"
3
+ s.version = "0.0.5"
4
+ s.date = "2019-10-13"
5
5
  s.summary = "Jekyll ExtLinks Plugin"
6
6
  s.description = <<-EOF
7
7
  Adds custom attributes to external links (rel="nofollow", target="_blank", etc.)
@@ -12,6 +12,6 @@ Gem::Specification.new do |s|
12
12
  s.homepage = "http://ogarkov.com/jekyll/plugins/extlinks/"
13
13
  s.license = "MIT"
14
14
 
15
- s.add_runtime_dependency "jekyll", "~> 3.0"
16
- s.add_runtime_dependency "nokogiri", "~> 1.6"
15
+ s.add_runtime_dependency "jekyll", "~> 4.0"
16
+ s.add_runtime_dependency "nokogiri", "~> 1.10.4"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-extlinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Ogarkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-08 00:00:00.000000000 Z
11
+ date: 2019-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,30 +16,32 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '4.0'
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: '3.0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: 1.10.4
34
34
  type: :runtime
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.6'
41
- description: |2
42
- Adds custom attributes to external links (rel="nofollow", target="_blank", etc.)
40
+ version: 1.10.4
41
+ description: ' Adds custom attributes to external links (rel="nofollow", target="_blank",
42
+ etc.)
43
+
44
+ '
43
45
  email: dima@ogarkov.com
44
46
  executables: []
45
47
  extensions: []
@@ -69,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
71
  - !ruby/object:Gem::Version
70
72
  version: '0'
71
73
  requirements: []
72
- rubyforge_project:
73
- rubygems_version: 2.6.10
74
+ rubygems_version: 3.0.3
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: Jekyll ExtLinks Plugin