jekyll_quote 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +10 -0
- data/LICENSE.txt +0 -0
- data/README.md +5 -2
- data/Rakefile +0 -0
- data/jekyll_quote.gemspec +11 -10
- data/lib/jekyll_quote/version.rb +1 -1
- data/lib/jekyll_quote.rb +8 -6
- data/spec/jekyll_quote_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/status_persistence.txt +6 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62882bd23a6fb0b53fc1c1f3a5ab33ed490b1b469efb47c67362aea34654022f
|
4
|
+
data.tar.gz: 41f840b8f1d17553f3a4d37e49e3f5e18927b94ec51d59222112ea2fec42994f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041be3a55f3f4229af2cad80fc5777198ebaf6239caeeebc750a09079c4e49a02fb209a81f8b7d70ba844df7b82af0d5b0f6780fa64aded1355cfaa97d7dd7d6
|
7
|
+
data.tar.gz: dcbab323d8cc7b6c6f096fdefa9b351c7ef45a0bd606059f62aed4d450cce748e67479bba1daa441e2b116bc3b6b7c27a807a17aacc678380b0b3ec502f3ae40
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -37,10 +37,13 @@ The default preposition is 'From'.
|
|
37
37
|
OPTIONS are:
|
38
38
|
|
39
39
|
* `break` – Put the citation on a separate line. Ignored if `cite` was not specified.
|
40
|
-
* `by` – Preface the citation with the preposition 'By'.
|
40
|
+
* `by` – Preface the citation with the preposition 'By'.
|
41
|
+
Ignored if `cite` was not specified.
|
41
42
|
* `cite` – Citation text
|
42
43
|
* `class` – Apply additional CSS classes
|
43
|
-
* `
|
44
|
+
* `id` – HTML id attribute for the enclosing `div`
|
45
|
+
* `noprep` – Do not preface the citation with a preposition.
|
46
|
+
Ignored if `cite` was not specified.
|
44
47
|
* `style` – Apply additional CSS styling
|
45
48
|
* `url` – URL for the citation. Ignored if `cite` was not specified.
|
46
49
|
|
data/Rakefile
CHANGED
File without changes
|
data/jekyll_quote.gemspec
CHANGED
@@ -3,11 +3,11 @@ require_relative 'lib/jekyll_quote/version'
|
|
3
3
|
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
4
4
|
github = 'https://github.com/mslinn/jekyll_quote'
|
5
5
|
|
6
|
-
spec.authors
|
7
|
-
spec.email
|
8
|
-
spec.files
|
6
|
+
spec.authors = ['Mike Slinn']
|
7
|
+
spec.email = ['mslinn@mslinn.com']
|
8
|
+
spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
|
9
9
|
spec.homepage = 'https://www.mslinn.com/jekyll_plugins/jekyll_quote.html'
|
10
|
-
spec.license
|
10
|
+
spec.license = 'MIT'
|
11
11
|
spec.metadata = {
|
12
12
|
'allowed_push_host' => 'https://rubygems.org',
|
13
13
|
'bug_tracker_uri' => "#{github}/issues",
|
@@ -15,18 +15,19 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
15
15
|
'homepage_uri' => spec.homepage,
|
16
16
|
'source_code_uri' => github,
|
17
17
|
}
|
18
|
-
spec.name
|
18
|
+
spec.name = 'jekyll_quote'
|
19
|
+
spec.platform = Gem::Platform::RUBY
|
19
20
|
spec.post_install_message = <<~END_MESSAGE
|
20
21
|
|
21
22
|
Thanks for installing #{spec.name}!
|
22
23
|
|
23
24
|
END_MESSAGE
|
24
|
-
spec.require_paths
|
25
|
+
spec.require_paths = ['lib']
|
25
26
|
spec.required_ruby_version = '>= 2.6.0'
|
26
|
-
spec.summary
|
27
|
-
spec.test_files
|
28
|
-
spec.version
|
27
|
+
spec.summary = 'Provides a Jekyll filter that creates formatted quotes.'
|
28
|
+
spec.test_files = spec.files.grep %r{^(test|spec|features)/}
|
29
|
+
spec.version = JekyllQuoteVersion::VERSION
|
29
30
|
|
30
31
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
31
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.
|
32
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
32
33
|
end
|
data/lib/jekyll_quote/version.rb
CHANGED
data/lib/jekyll_quote.rb
CHANGED
@@ -5,10 +5,6 @@ require_relative 'jekyll_quote/version'
|
|
5
5
|
# @author Copyright 2022 Michael Slinn
|
6
6
|
# @license SPDX-License-Identifier: Apache-2.0
|
7
7
|
|
8
|
-
module QuoteModule
|
9
|
-
PLUGIN_NAME = 'quote'.freeze
|
10
|
-
end
|
11
|
-
|
12
8
|
module Jekyll
|
13
9
|
# Usage: {% quote [break] [by] [cite='Joe Blow'] [noprep] [url='https://blabla.com'] %}Bla bla.{% endquote %}
|
14
10
|
# Output looks like:
|
@@ -17,6 +13,8 @@ module Jekyll
|
|
17
13
|
# <br><br> <span style='font-style:normal;'> – From Source cite.</span>
|
18
14
|
# </div>
|
19
15
|
class Quote < JekyllSupport::JekyllBlock
|
16
|
+
PLUGIN_NAME = 'quote'.freeze
|
17
|
+
|
20
18
|
attr_accessor :cite, :url
|
21
19
|
|
22
20
|
include JekyllQuoteVersion
|
@@ -28,6 +26,10 @@ module Jekyll
|
|
28
26
|
@by = @helper.parameter_specified? 'by'
|
29
27
|
@cite = @helper.parameter_specified? 'cite'
|
30
28
|
@class = @helper.parameter_specified? 'class'
|
29
|
+
|
30
|
+
@id = @helper.parameter_specified? 'id'
|
31
|
+
@id = " id='#{@id}'" if @id
|
32
|
+
|
31
33
|
@noprep = @helper.parameter_specified? 'noprep'
|
32
34
|
@style = @helper.parameter_specified? 'style'
|
33
35
|
@url = @helper.parameter_specified? 'url'
|
@@ -51,13 +53,13 @@ module Jekyll
|
|
51
53
|
klass = "#{@class} " if @class
|
52
54
|
styling = " style='#{@style}'" if @style
|
53
55
|
<<~END_HERE
|
54
|
-
<div class='#{klass}quote'#{styling}>
|
56
|
+
<div#{@id} class='#{klass}quote'#{styling}>
|
55
57
|
#{@text}#{@cite_markup}
|
56
58
|
#{@helper.attribute if @helper.attribution}
|
57
59
|
</div>
|
58
60
|
END_HERE
|
59
61
|
end
|
60
62
|
|
61
|
-
JekyllPluginHelper.register(self,
|
63
|
+
JekyllSupport::JekyllPluginHelper.register(self, PLUGIN_NAME)
|
62
64
|
end
|
63
65
|
end
|
data/spec/jekyll_quote_spec.rb
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
-------------------------------- | ------ | --------------- |
|
3
|
+
./spec/jekyll_quote_spec.rb[1:1] | failed | 0.00015 seconds |
|
4
|
+
./spec/jekyll_quote_spec.rb[1:2] | failed | 0.00006 seconds |
|
5
|
+
./spec/jekyll_quote_spec.rb[1:3] | failed | 0.00006 seconds |
|
6
|
+
./spec/jekyll_quote_spec.rb[1:4] | failed | 0.00005 seconds |
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_quote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: jekyll
|
@@ -30,15 +29,14 @@ dependencies:
|
|
30
29
|
requirements:
|
31
30
|
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
32
|
+
version: 1.0.0
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - ">="
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
41
|
-
description:
|
39
|
+
version: 1.0.0
|
42
40
|
email:
|
43
41
|
- mslinn@mslinn.com
|
44
42
|
executables: []
|
@@ -55,6 +53,7 @@ files:
|
|
55
53
|
- lib/jekyll_quote/version.rb
|
56
54
|
- spec/jekyll_quote_spec.rb
|
57
55
|
- spec/spec_helper.rb
|
56
|
+
- spec/status_persistence.txt
|
58
57
|
homepage: https://www.mslinn.com/jekyll_plugins/jekyll_quote.html
|
59
58
|
licenses:
|
60
59
|
- MIT
|
@@ -82,11 +81,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
81
|
- !ruby/object:Gem::Version
|
83
82
|
version: '0'
|
84
83
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
86
|
-
signing_key:
|
84
|
+
rubygems_version: 3.6.2
|
87
85
|
specification_version: 4
|
88
86
|
summary: Provides a Jekyll filter that creates formatted quotes.
|
89
87
|
test_files:
|
90
88
|
- spec/jekyll_quote_spec.rb
|
91
89
|
- spec/spec_helper.rb
|
90
|
+
- spec/status_persistence.txt
|
92
91
|
...
|