jekyll_quote 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -2
- data/jekyll_quote.gemspec +10 -9
- data/lib/jekyll_quote/version.rb +1 -1
- data/lib/jekyll_quote.rb +5 -1
- metadata +3 -6
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/CHANGELOG.md
CHANGED
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/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,17 +15,18 @@ 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
32
|
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
data/lib/jekyll_quote/version.rb
CHANGED
data/lib/jekyll_quote.rb
CHANGED
@@ -26,6 +26,10 @@ module Jekyll
|
|
26
26
|
@by = @helper.parameter_specified? 'by'
|
27
27
|
@cite = @helper.parameter_specified? 'cite'
|
28
28
|
@class = @helper.parameter_specified? 'class'
|
29
|
+
|
30
|
+
@id = @helper.parameter_specified? 'id'
|
31
|
+
@id = " id='#{@id}'" if @id
|
32
|
+
|
29
33
|
@noprep = @helper.parameter_specified? 'noprep'
|
30
34
|
@style = @helper.parameter_specified? 'style'
|
31
35
|
@url = @helper.parameter_specified? 'url'
|
@@ -49,7 +53,7 @@ module Jekyll
|
|
49
53
|
klass = "#{@class} " if @class
|
50
54
|
styling = " style='#{@style}'" if @style
|
51
55
|
<<~END_HERE
|
52
|
-
<div class='#{klass}quote'#{styling}>
|
56
|
+
<div#{@id} class='#{klass}quote'#{styling}>
|
53
57
|
#{@text}#{@cite_markup}
|
54
58
|
#{@helper.attribute if @helper.attribution}
|
55
59
|
</div>
|
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
|
@@ -38,7 +37,6 @@ dependencies:
|
|
38
37
|
- - ">="
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: 1.0.0
|
41
|
-
description:
|
42
40
|
email:
|
43
41
|
- mslinn@mslinn.com
|
44
42
|
executables: []
|
@@ -83,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
81
|
- !ruby/object:Gem::Version
|
84
82
|
version: '0'
|
85
83
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
-
signing_key:
|
84
|
+
rubygems_version: 3.6.2
|
88
85
|
specification_version: 4
|
89
86
|
summary: Provides a Jekyll filter that creates formatted quotes.
|
90
87
|
test_files:
|