jekyll_quote 0.4.3 → 0.4.4

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: a8c0cf6ba4acc52426ba924726f71c6eaa05059dee13ad5650c0c001c99e2682
4
- data.tar.gz: d4ca9501acdbc08091c7b7cf6b692dc4973eb85ab1e6dee5598669d1b9fdfb8f
3
+ metadata.gz: 62882bd23a6fb0b53fc1c1f3a5ab33ed490b1b469efb47c67362aea34654022f
4
+ data.tar.gz: 41f840b8f1d17553f3a4d37e49e3f5e18927b94ec51d59222112ea2fec42994f
5
5
  SHA512:
6
- metadata.gz: adbed464deefcc300befebdfac0c49adcf1fd1a643d17ff0c1f5c42f53557fbc80e1cf901277e0b3846e249b99d08633896bbce2ed88e7d4d9ac6c910118c2b0
7
- data.tar.gz: 7e61341d90a5dce1fdb0efadc4f6372dde7ab21a50ec9cc31b6a83f25779e011c84e80684896d992d931705bafa1e1fdec16cb27447c2fa7d2f35ce653fa41d0
6
+ metadata.gz: 041be3a55f3f4229af2cad80fc5777198ebaf6239caeeebc750a09079c4e49a02fb209a81f8b7d70ba844df7b82af0d5b0f6780fa64aded1355cfaa97d7dd7d6
7
+ data.tar.gz: dcbab323d8cc7b6c6f096fdefa9b351c7ef45a0bd606059f62aed4d450cce748e67479bba1daa441e2b116bc3b6b7c27a807a17aacc678380b0b3ec502f3ae40
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.4 / 2025-01-11
4
+
5
+ * Added `id` option.
6
+
3
7
 
4
8
  ## 0.4.3 / 2024-07-22
5
9
 
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'. Ignored if `cite` was not specified.
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
- * `noprep` – Do not preface the citation with a preposition. Ignored if `cite` was not specified.
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 = ['Mike Slinn']
7
- spec.email = ['mslinn@mslinn.com']
8
- spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
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 = 'MIT'
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 = 'jekyll_quote'
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 = ['lib']
25
+ spec.require_paths = ['lib']
25
26
  spec.required_ruby_version = '>= 2.6.0'
26
- spec.summary = 'Provides a Jekyll filter that creates formatted quotes.'
27
- spec.test_files = spec.files.grep %r{^(test|spec|features)/}
28
- spec.version = JekyllQuoteVersion::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'
@@ -1,3 +1,3 @@
1
1
  module JekyllQuoteVersion
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.4.4'.freeze
3
3
  end
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.3
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: 2024-07-26 00:00:00.000000000 Z
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.5.16
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: