jekyll_quote 0.1.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +83 -9
- data/CHANGELOG.md +9 -0
- data/Rakefile +0 -2
- data/jekyll_quote.gemspec +2 -19
- data/lib/jekyll_quote/version.rb +1 -3
- data/lib/jekyll_quote.rb +7 -8
- data/spec/jekyll_quote_spec.rb +0 -2
- data/spec/spec_helper.rb +0 -2
- metadata +7 -93
- data/spec/status_persistence.txt +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc4a37f219d4ecfd2f919358ec53917d0264722ce1160aecf78613317aad1a7
|
4
|
+
data.tar.gz: 140b6715538149403c372cc505b7613e9270c39c04989a6cef854759d9a9edf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1052d61f7381c8019d1546379186fc657b082fec78518a366ee52d0a2652bec938100460ca087a66cd795caaa1caa30f3c8383bfa8a131c8af391c869fccaf6
|
7
|
+
data.tar.gz: d37915827d86536e05a0277cb157c76b67ca4fd7e6501778f6efd57620a308eff071efa08d9fb384c6421ebab248ec31d536d038168f99366ba3457bf2c54b66
|
data/.rubocop.yml
CHANGED
@@ -1,27 +1,101 @@
|
|
1
|
+
require:
|
2
|
+
# - rubocop-jekyll
|
3
|
+
- rubocop-md
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rake
|
6
|
+
- rubocop-rspec
|
7
|
+
|
1
8
|
AllCops:
|
2
9
|
Exclude:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
10
|
+
- demo/_site/**/*
|
11
|
+
- exe/**/*
|
12
|
+
- vendor/**/*
|
13
|
+
- Gemfile*
|
14
|
+
- Rakefile
|
15
|
+
- jekyll_quote.gemspec
|
8
16
|
NewCops: enable
|
9
17
|
TargetRubyVersion: 2.6
|
10
18
|
|
11
|
-
|
19
|
+
Gemspec/DeprecatedAttributeAssignment:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Gemspec/RequireMFA:
|
12
23
|
Enabled: false
|
13
24
|
|
25
|
+
Layout/InitialIndentation:
|
26
|
+
Exclude:
|
27
|
+
- README.md
|
28
|
+
|
29
|
+
Layout/HashAlignment:
|
30
|
+
EnforcedColonStyle: table
|
31
|
+
Exclude:
|
32
|
+
- jekyll_quote.gemspec
|
33
|
+
|
14
34
|
Layout/LineLength:
|
15
35
|
Max: 150
|
16
36
|
|
17
|
-
Metrics/MethodLength:
|
18
|
-
Max: 30
|
19
|
-
|
20
37
|
Layout/MultilineMethodCallIndentation:
|
21
38
|
Enabled: false
|
22
39
|
|
40
|
+
Lint/RedundantCopDisableDirective:
|
41
|
+
Exclude:
|
42
|
+
- jekyll_quote.gemspec
|
43
|
+
|
44
|
+
Metrics/BlockLength:
|
45
|
+
Exclude:
|
46
|
+
- jekyll_quote.gemspec
|
47
|
+
- spec/**/*
|
48
|
+
|
49
|
+
Metrics/ClassLength:
|
50
|
+
Exclude:
|
51
|
+
- spec/**/*
|
52
|
+
|
53
|
+
Metrics/MethodLength:
|
54
|
+
Max: 30
|
55
|
+
|
23
56
|
Metrics/CyclomaticComplexity:
|
24
57
|
Max: 10
|
25
58
|
|
26
59
|
Metrics/PerceivedComplexity:
|
27
60
|
Max: 10
|
61
|
+
|
62
|
+
Naming/FileName:
|
63
|
+
Exclude:
|
64
|
+
- Rakefile
|
65
|
+
|
66
|
+
RSpec/ExampleLength:
|
67
|
+
Max: 20
|
68
|
+
|
69
|
+
RSpec/MultipleExpectations:
|
70
|
+
Max: 15
|
71
|
+
|
72
|
+
Style/CommandLiteral:
|
73
|
+
Enabled: false
|
74
|
+
|
75
|
+
Style/CommentedKeyword:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
Style/Documentation:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Style/FrozenStringLiteralComment:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Style/PercentLiteralDelimiters:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Style/RegexpLiteral:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Style/StringConcatenation:
|
91
|
+
Exclude:
|
92
|
+
- spec/**/*
|
93
|
+
|
94
|
+
Style/StringLiterals:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
Style/StringLiteralsInInterpolation:
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
Style/TrailingCommaInHashLiteral:
|
101
|
+
EnforcedStyleForMultiline: comma
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/jekyll_quote.gemspec
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative 'lib/jekyll_quote/version'
|
4
2
|
|
5
|
-
# rubocop:disable Metrics/BlockLength
|
6
|
-
Gem::Specification.new do |spec|
|
3
|
+
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
7
4
|
github = 'https://github.com/mslinn/jekyll_quote'
|
8
5
|
|
9
6
|
spec.bindir = 'exe'
|
@@ -24,11 +21,6 @@ Gem::Specification.new do |spec|
|
|
24
21
|
|
25
22
|
Thanks for installing #{spec.name}!
|
26
23
|
|
27
|
-
END_MESSAGE
|
28
|
-
spec.post_install_message = <<~END_MESSAGE
|
29
|
-
|
30
|
-
Thanks for installing #{spec.name}!
|
31
|
-
|
32
24
|
END_MESSAGE
|
33
25
|
spec.require_paths = ['lib']
|
34
26
|
spec.required_ruby_version = '>= 2.6.0'
|
@@ -37,14 +29,5 @@ Gem::Specification.new do |spec|
|
|
37
29
|
spec.version = JekyllQuoteVersion::VERSION
|
38
30
|
|
39
31
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
40
|
-
|
41
|
-
spec.add_development_dependency 'debase'
|
42
|
-
spec.add_development_dependency 'jekyll_plugin_support'
|
43
|
-
spec.add_development_dependency 'rspec-match_ignoring_whitespace'
|
44
|
-
spec.add_development_dependency 'rubocop'
|
45
|
-
# spec.add_development_dependency 'rubocop-jekyll'
|
46
|
-
spec.add_development_dependency 'rubocop-rake'
|
47
|
-
spec.add_development_dependency 'rubocop-rspec'
|
48
|
-
spec.add_development_dependency 'ruby-debug-ide'
|
32
|
+
spec.add_dependency 'jekyll_plugin_support', '~> 0.5.1'
|
49
33
|
end
|
50
|
-
# rubocop:enable Metrics/BlockLength
|
data/lib/jekyll_quote/version.rb
CHANGED
data/lib/jekyll_quote.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require 'jekyll_plugin_support'
|
4
2
|
require 'jekyll_plugin_support_helper'
|
5
3
|
require_relative 'jekyll_quote/version'
|
@@ -8,7 +6,7 @@ require_relative 'jekyll_quote/version'
|
|
8
6
|
# @license SPDX-License-Identifier: Apache-2.0
|
9
7
|
|
10
8
|
module QuoteModule
|
11
|
-
PLUGIN_NAME = 'quote'
|
9
|
+
PLUGIN_NAME = 'quote'.freeze
|
12
10
|
end
|
13
11
|
|
14
12
|
module Jekyll
|
@@ -21,6 +19,8 @@ module Jekyll
|
|
21
19
|
class Quote < JekyllSupport::JekyllBlock
|
22
20
|
attr_accessor :cite, :url
|
23
21
|
|
22
|
+
include JekyllQuoteVersion
|
23
|
+
|
24
24
|
def render_impl(text)
|
25
25
|
@break = @helper.parameter_specified? 'break' # enforced by CSS if a list ends the body
|
26
26
|
@by = @helper.parameter_specified? 'by'
|
@@ -38,8 +38,8 @@ module Jekyll
|
|
38
38
|
"#{@cite}\n"
|
39
39
|
end
|
40
40
|
tag = @break ? 'div' : 'span'
|
41
|
-
attribution = "<#{tag}
|
42
|
-
text = "<div>#{text}</div>" if @break
|
41
|
+
attribution = "<#{tag} class='quoteAttribution'> – #{preposition} #{attribution}</#{tag}>\n"
|
42
|
+
text = "<div class='quoteText clearfix'>#{text}</div>" if @break
|
43
43
|
end
|
44
44
|
<<~END_HERE
|
45
45
|
<div class='quote'>
|
@@ -47,8 +47,7 @@ module Jekyll
|
|
47
47
|
</div>
|
48
48
|
END_HERE
|
49
49
|
end
|
50
|
+
|
51
|
+
JekyllPluginHelper.register(self, QuoteModule::PLUGIN_NAME)
|
50
52
|
end
|
51
53
|
end
|
52
|
-
|
53
|
-
PluginMetaLogger.instance.info { "Loaded #{QuoteModule::PLUGIN_NAME} v0.1.0 plugin." }
|
54
|
-
Liquid::Template.register_tag(QuoteModule::PLUGIN_NAME, Jekyll::Quote)
|
data/spec/jekyll_quote_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_quote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,104 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.5.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: debase
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: jekyll_plugin_support
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - "
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec-match_ignoring_whitespace
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
31
|
+
- - "~>"
|
74
32
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: ruby-debug-ide
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
33
|
+
version: 0.5.1
|
34
|
+
type: :runtime
|
119
35
|
prerelease: false
|
120
36
|
version_requirements: !ruby/object:Gem::Requirement
|
121
37
|
requirements:
|
122
|
-
- - "
|
38
|
+
- - "~>"
|
123
39
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
40
|
+
version: 0.5.1
|
125
41
|
description:
|
126
42
|
email:
|
127
43
|
- mslinn@mslinn.com
|
@@ -139,7 +55,6 @@ files:
|
|
139
55
|
- lib/jekyll_quote/version.rb
|
140
56
|
- spec/jekyll_quote_spec.rb
|
141
57
|
- spec/spec_helper.rb
|
142
|
-
- spec/status_persistence.txt
|
143
58
|
homepage: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#quote
|
144
59
|
licenses:
|
145
60
|
- MIT
|
@@ -174,5 +89,4 @@ summary: Provides a Jekyll filter that creates formatted quotes.
|
|
174
89
|
test_files:
|
175
90
|
- spec/jekyll_quote_spec.rb
|
176
91
|
- spec/spec_helper.rb
|
177
|
-
- spec/status_persistence.txt
|
178
92
|
...
|
data/spec/status_persistence.txt
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
-------------------------------- | ------ | --------------- |
|
3
|
-
./spec/jekyll_quote_spec.rb[1:1] | failed | 0.01849 seconds |
|
4
|
-
./spec/jekyll_quote_spec.rb[1:2] | failed | 0.00035 seconds |
|
5
|
-
./spec/jekyll_quote_spec.rb[1:3] | failed | 0.00018 seconds |
|
6
|
-
./spec/jekyll_quote_spec.rb[1:4] | failed | 0.00009 seconds |
|