jekyll_badge 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +32 -20
- data/CHANGELOG.md +6 -0
- data/README.md +4 -0
- data/jekyll_badge.gemspec +1 -1
- data/lib/jekyll_badge/version.rb +1 -1
- data/lib/jekyll_badge.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc433b6dce45efc5aaf8d7fa9b08af2297deb03df2fe4555e5447eb13dc619c
|
4
|
+
data.tar.gz: edc141bcddb90a6ddaa41c2d7665e558f9e274afa7e52c3a187b675384567622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4283ecec09af01e47366218fc0f76077b6b0ef3ed40effa5c034ad69c201d6a7a96239f22c6dfcf5f813a44896adfcda620305914fdf00ca552f53b5caf1f74b
|
7
|
+
data.tar.gz: 14a00c166c83cd464b26cbfe58d147394754b328f7479fd219293ffbcebce878a72c99db54c679f05cc2081addeb062f9ea0df8d9402b4b4062abe88b23bb48c
|
data/.rubocop.yml
CHANGED
@@ -8,11 +8,10 @@ require:
|
|
8
8
|
AllCops:
|
9
9
|
Exclude:
|
10
10
|
- binstub/**/*
|
11
|
-
-
|
11
|
+
- demo/_site/*
|
12
12
|
- vendor/**/*
|
13
13
|
- Gemfile*
|
14
14
|
NewCops: enable
|
15
|
-
TargetRubyVersion: 3.1.3
|
16
15
|
|
17
16
|
Gemspec/DeprecatedAttributeAssignment:
|
18
17
|
Enabled: false
|
@@ -20,6 +19,9 @@ Gemspec/DeprecatedAttributeAssignment:
|
|
20
19
|
Gemspec/RequireMFA:
|
21
20
|
Enabled: false
|
22
21
|
|
22
|
+
Gemspec/RequiredRubyVersion:
|
23
|
+
Enabled: false
|
24
|
+
|
23
25
|
Layout/HashAlignment:
|
24
26
|
EnforcedColonStyle: table
|
25
27
|
EnforcedHashRocketStyle: table
|
@@ -28,28 +30,45 @@ Layout/LineLength:
|
|
28
30
|
Max: 150
|
29
31
|
|
30
32
|
Metrics/AbcSize:
|
31
|
-
Max:
|
33
|
+
Max: 55
|
32
34
|
|
33
35
|
Metrics/BlockLength:
|
34
36
|
Exclude:
|
35
|
-
-
|
37
|
+
- jekyll_plugin_support.gemspec
|
36
38
|
Max: 30
|
37
39
|
|
38
40
|
Metrics/CyclomaticComplexity:
|
39
|
-
Max:
|
41
|
+
Max: 25
|
40
42
|
|
41
43
|
Metrics/MethodLength:
|
42
|
-
Max:
|
43
|
-
|
44
|
-
Metrics/ModuleLength:
|
45
|
-
Enabled: false
|
44
|
+
Max: 50
|
46
45
|
|
47
46
|
Metrics/PerceivedComplexity:
|
48
|
-
Max:
|
47
|
+
Max: 25
|
49
48
|
|
50
49
|
Naming/FileName:
|
51
50
|
Exclude:
|
52
51
|
- Rakefile
|
52
|
+
- "*.md"
|
53
|
+
|
54
|
+
RSpec/ExampleLength:
|
55
|
+
Max: 30
|
56
|
+
|
57
|
+
RSpec/SpecFilePathFormat:
|
58
|
+
Enabled: false
|
59
|
+
IgnoreMethods: true
|
60
|
+
|
61
|
+
RSpec/SpecFilePathSuffix:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
RSpec/IndexedLet:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
RSpec/MultipleExpectations:
|
68
|
+
Max: 15
|
69
|
+
|
70
|
+
Style/ClassVars:
|
71
|
+
Enabled: false
|
53
72
|
|
54
73
|
Style/Documentation:
|
55
74
|
Enabled: false
|
@@ -57,15 +76,8 @@ Style/Documentation:
|
|
57
76
|
Style/FrozenStringLiteralComment:
|
58
77
|
Enabled: false
|
59
78
|
|
79
|
+
Style/StringConcatenation:
|
80
|
+
Enabled: false
|
81
|
+
|
60
82
|
Style/TrailingCommaInHashLiteral:
|
61
83
|
EnforcedStyleForMultiline: comma
|
62
|
-
|
63
|
-
RSpec/FilePath:
|
64
|
-
IgnoreMethods: true
|
65
|
-
SpecSuffixOnly: true
|
66
|
-
|
67
|
-
RSpec/ExampleLength:
|
68
|
-
Max: 30
|
69
|
-
|
70
|
-
RSpec/MultipleExpectations:
|
71
|
-
Max: 15
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/jekyll_badge.gemspec
CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.summary = 'Displays a badge on a Jekyll page for the package showing its version'
|
30
30
|
spec.version = JekyllBadge::VERSION
|
31
31
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
32
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.
|
32
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
33
33
|
spec.add_dependency 'ruby-link-checker'
|
34
34
|
end
|
data/lib/jekyll_badge/version.rb
CHANGED
data/lib/jekyll_badge.rb
CHANGED
@@ -14,7 +14,7 @@ end
|
|
14
14
|
module JekyllBadge
|
15
15
|
# This class implements the jekyll_badge functionality
|
16
16
|
# Assumes project is stored on GitHub
|
17
|
-
class JekyllBadge < JekyllSupport::JekyllTag
|
17
|
+
class JekyllBadge < ::JekyllSupport::JekyllTag
|
18
18
|
PLUGIN_NAME = 'jekyll_badge'.freeze
|
19
19
|
VERSION = ::JekyllBadge::VERSION
|
20
20
|
|
@@ -81,7 +81,7 @@ module JekyllBadge
|
|
81
81
|
</a>
|
82
82
|
</div>
|
83
83
|
<div class='imgWrapper imgFlex center' style='width: 120px;'>
|
84
|
-
<a href=
|
84
|
+
<a href="#{@git_url}" target='_blank' class='imgImgUrl'>
|
85
85
|
<picture class='imgPicture'>
|
86
86
|
<source srcset="#{@image}.webp" type="image/webp">
|
87
87
|
<source srcset="#{@image}.png" type="image/png">
|
@@ -99,6 +99,6 @@ module JekyllBadge
|
|
99
99
|
END_CONTENT
|
100
100
|
end
|
101
101
|
|
102
|
-
JekyllPluginHelper.register(self, PLUGIN_NAME)
|
102
|
+
::JekyllSupport::JekyllPluginHelper.register(self, PLUGIN_NAME)
|
103
103
|
end
|
104
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_badge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
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: 0.
|
40
|
+
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-link-checker
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.5.16
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Displays a badge on a Jekyll page for the package showing its version
|