jekyll_href 1.2.8 → 1.2.10

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: 57a2b255f64c147c2b16d784a3ff1045643164f980bd997e7c2ee7a832e42016
4
- data.tar.gz: 4d484a1e4ec6548b0c913847fe4b179406bd5b76865cb2a5cb7a6de36c8624c4
3
+ metadata.gz: 7ff34de3543f22694104004179a170c7eccaed4ab74c8c454d5d6f9e7e1b95b6
4
+ data.tar.gz: cba2381032c48b897e1f1835ce2484b0b5d1c589d077359bade41be88984c9f8
5
5
  SHA512:
6
- metadata.gz: 9ab2372473793d3df613028f89533ebba7951b75ba54c8fd6da78fd70368d68cc969bcd11d1b1cd3ca5b88ef381001dcab15b85c65336481fe288372cf7dc370
7
- data.tar.gz: 8cf2cf1a53f87197dea0dcabacf60766953f368d4d6c4a3e786bd29a0c128fb577c96b3a246f559ee26a2dd5e5952a7def825234af2375113f909c8a318fa956
6
+ metadata.gz: ca46777a4c3d5bd9eeb1b859715d73f45ea793d97b183a862e25eb78c8688387bc91d25ca353c21cfe7b734e4a9aa74d5c12a163872b07dcd3cc1ca179393a18
7
+ data.tar.gz: 25a5d7c61e1baf54b767a0b1824c263a52f0bfdf054a428b5290f655ca4c9fe701c633406c8c6da165d14bc0852a1b21a7fcba0f9e1dce03c10fb50917796259
data/.rubocop.yml CHANGED
@@ -5,13 +5,10 @@ require:
5
5
  - rubocop-rake
6
6
  - rubocop-rspec
7
7
 
8
- # inherit_gem:
9
- # rubocop-jekyll: .rubocop.yml
10
-
11
8
  AllCops:
12
9
  Exclude:
13
- - demo/_site/**/*
14
10
  - binstub/**/*
11
+ - demo/_site/*
15
12
  - vendor/**/*
16
13
  - Gemfile*
17
14
  NewCops: enable
@@ -29,87 +26,57 @@ Layout/HashAlignment:
29
26
  EnforcedColonStyle: table
30
27
  EnforcedHashRocketStyle: table
31
28
 
32
- Layout/InitialIndentation:
33
- Exclude:
34
- - README.md
35
-
36
29
  Layout/LineLength:
37
30
  Max: 150
38
- Exclude:
39
- - spec/**/*
40
-
41
- Layout/MultilineMethodCallIndentation:
42
- Enabled: false
43
-
44
- Lint/RedundantCopDisableDirective:
45
- Exclude:
46
- - jekyll_href.gemspec
47
31
 
48
32
  Metrics/AbcSize:
49
- Max: 45
33
+ Max: 55
50
34
 
51
35
  Metrics/BlockLength:
52
36
  Exclude:
53
- - jekyll_href.gemspec
54
- - spec/**/*
55
- Max: 40
56
-
57
- Metrics/ClassLength:
58
- Exclude:
59
- - spec/**/*
60
- Max: 150
37
+ - jekyll_plugin_support.gemspec
38
+ Max: 30
61
39
 
62
40
  Metrics/CyclomaticComplexity:
63
- Max: 20
41
+ Max: 25
64
42
 
65
43
  Metrics/MethodLength:
66
- Max: 40
44
+ Max: 50
67
45
 
68
46
  Metrics/PerceivedComplexity:
69
- Max: 20
47
+ Max: 25
70
48
 
71
49
  Naming/FileName:
72
50
  Exclude:
73
51
  - Rakefile
52
+ - "*.md"
74
53
 
75
54
  RSpec/ExampleLength:
76
- Max: 40
55
+ Max: 30
77
56
 
78
- RSpec/FilePath:
57
+ RSpec/SpecFilePathFormat:
79
58
  Enabled: false
59
+ IgnoreMethods: true
80
60
 
81
- RSpec/MultipleExpectations:
82
- Max: 15
83
-
84
- RSpec/MultipleMemoizedHelpers:
85
- Max: 20
86
-
87
- Style/CommandLiteral:
61
+ RSpec/SpecFilePathSuffix:
88
62
  Enabled: false
89
63
 
90
- Style/CommentedKeyword:
64
+ RSpec/IndexedLet:
91
65
  Enabled: false
92
66
 
93
- Style/Documentation:
94
- Enabled: false
67
+ RSpec/MultipleExpectations:
68
+ Max: 15
95
69
 
96
- Style/FrozenStringLiteralComment:
70
+ Style/ClassVars:
97
71
  Enabled: false
98
72
 
99
- Style/PercentLiteralDelimiters:
73
+ Style/Documentation:
100
74
  Enabled: false
101
75
 
102
- Style/RegexpLiteral:
76
+ Style/FrozenStringLiteralComment:
103
77
  Enabled: false
104
78
 
105
79
  Style/StringConcatenation:
106
- Exclude:
107
- - spec/**/*
108
-
109
- Style/StringLiterals:
110
- Enabled: false
111
-
112
- Style/StringLiteralsInInterpolation:
113
80
  Enabled: false
114
81
 
115
82
  Style/TrailingCommaInHashLiteral:
data/CHANGELOG.md CHANGED
@@ -1,8 +1,19 @@
1
1
  # Change Log
2
2
 
3
+
4
+ ## 1.2.10 / 2024-07-23
5
+
6
+ * Make compatible with jekyll_plugin_support 1.0.0
7
+
8
+
9
+ ## 1.2.9 / 2024-07-17
10
+
11
+ * Fixed missing ` target="_blank"` for links without labels, when `blank` was specified.
12
+
13
+
3
14
  ## 1.2.8 / 2023-12-31
4
15
 
5
- * Fixed missing ' rel="nofollow"' for links without labels.
16
+ * Fixed missing ` rel="nofollow"` for links without labels.
6
17
 
7
18
 
8
19
  ## 1.2.7 / 2023-12-09
data/jekyll_href.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_dependency 'ipaddress'
34
34
  spec.add_dependency 'jekyll', '>= 3.5.0'
35
- spec.add_dependency 'jekyll_all_collections', '>= 0.3.3'
36
- spec.add_dependency 'jekyll_plugin_support', '>= 0.8.1'
35
+ spec.add_dependency 'jekyll_all_collections'
36
+ spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
37
37
  spec.add_dependency 'typesafe_enum'
38
38
  end
data/lib/href_private.rb CHANGED
@@ -103,7 +103,8 @@ module MSlinn
103
103
  @link_save = @link
104
104
  return if @link_type == LinkType::EXTERNAL
105
105
 
106
- @follow = @target = ''
106
+ @follow = ''
107
+ @target = '' unless @blank
107
108
  nil
108
109
  end
109
110
 
@@ -85,6 +85,6 @@ module MSlinn
85
85
  END_RENDER
86
86
  end
87
87
 
88
- JekyllPluginHelper.register(self, 'href_summary')
88
+ ::JekyllSupport::JekyllPluginHelper.register(self, 'href_summary')
89
89
  end
90
90
  end
data/lib/href_tag.rb CHANGED
@@ -68,7 +68,7 @@ module MSlinn
68
68
  "On line #{line_number} of #{path}: #{follow} #{match} #{target} #{link} => '#{text}'"
69
69
  end
70
70
 
71
- JekyllPluginHelper.register(self, 'href')
71
+ ::JekyllSupport::JekyllPluginHelper.register(self, 'href')
72
72
  end
73
73
  end
74
74
 
@@ -1,3 +1,3 @@
1
1
  module JekyllHrefVersion
2
- VERSION = '1.2.8'.freeze
2
+ VERSION = '1.2.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_href
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-03 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ipaddress
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.3
47
+ version: '0'
48
48
  type: :runtime
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: 0.3.3
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jekyll_plugin_support
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.8.1
61
+ version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.8.1
68
+ version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: typesafe_enum
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.3.7
139
+ rubygems_version: 3.5.16
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Generates an 'a href' tag, possibly with target='_blank' and rel='nofollow'.