jekyll_quote 0.3.0 → 0.3.1

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: 9cbfed4188300ddb73dc023ece7c80e583d1fd9ed0f75e48304d64196441f7c5
4
- data.tar.gz: e907bb7aa7569a6bb54e96f581b7380391ae70949bf33f58fb5934b844fc3d39
3
+ metadata.gz: afc4a37f219d4ecfd2f919358ec53917d0264722ce1160aecf78613317aad1a7
4
+ data.tar.gz: 140b6715538149403c372cc505b7613e9270c39c04989a6cef854759d9a9edf2
5
5
  SHA512:
6
- metadata.gz: 25679145652ff7d0aab9278339ae235c6b4dcaaf50efc887999dfd3c9f58f9fa9043705a87e604a9bb38d6f1f56e19a47ad7dd180bdaa48275c64a7b78472b27
7
- data.tar.gz: 25870ef2184b6faa36355909288b7e1ae1c7fb0a5df71860f494f6b32d025b70477c5ea1808283f313ab6f03b8e0bdef0476c28d54904eb61afe7d79dc4bbdc9
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
- - vendor/**/*
4
- - exe/**/*
5
- - Gemfile*
6
- - Rakefile
7
- - '*.gemspec'
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
- Layout/HashAlignment:
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
@@ -1,8 +1,11 @@
1
- ## 0.1.0 / 2023-01-12
2
- * Initial version
1
+ ## 0.3.1 / 2023-03-15
2
+ * Added CSS class: `clearfix`
3
+
4
+ ## 0.3.0 / 2023-01-14
5
+ * Added CSS classes: `quoteAttribution` and `quoteText`
3
6
 
4
7
  ## 0.2.0 / 2023-01-14
5
8
  * Added options: `break`, `by`, and `noprep`
6
9
 
7
- ## 0.3.0 / 2023-01-14
8
- * Added CSS classes: `quoteAttribution` and `quoteText`
10
+ ## 0.1.0 / 2023-01-12
11
+ * Initial version
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'bundler/gem_tasks'
4
2
  require 'rspec/core/rake_task'
5
3
 
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'
@@ -32,14 +29,5 @@ Gem::Specification.new do |spec|
32
29
  spec.version = JekyllQuoteVersion::VERSION
33
30
 
34
31
  spec.add_dependency 'jekyll', '>= 3.5.0'
35
-
36
- spec.add_development_dependency 'debase'
37
- spec.add_development_dependency 'jekyll_plugin_support'
38
- spec.add_development_dependency 'rspec-match_ignoring_whitespace'
39
- spec.add_development_dependency 'rubocop'
40
- # spec.add_development_dependency 'rubocop-jekyll'
41
- spec.add_development_dependency 'rubocop-rake'
42
- spec.add_development_dependency 'rubocop-rspec'
43
- spec.add_development_dependency 'ruby-debug-ide'
32
+ spec.add_dependency 'jekyll_plugin_support', '~> 0.5.1'
44
33
  end
45
- # rubocop:enable Metrics/BlockLength
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module JekyllQuoteVersion
4
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'.freeze
5
3
  end
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'
@@ -39,7 +39,7 @@ module Jekyll
39
39
  end
40
40
  tag = @break ? 'div' : 'span'
41
41
  attribution = "<#{tag} class='quoteAttribution'> &nbsp;&ndash; #{preposition} #{attribution}</#{tag}>\n"
42
- text = "<div class='quoteText'>#{text}</div>" if @break
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)
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'jekyll'
4
2
  require 'jekyll_plugin_logger'
5
3
  require 'rspec/match_ignoring_whitespace'
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'jekyll'
4
2
  require_relative '../lib/jekyll_quote'
5
3
 
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.3.0
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-01-19 00:00:00.000000000 Z
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: '0'
76
- type: :development
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: '0'
40
+ version: 0.5.1
125
41
  description:
126
42
  email:
127
43
  - mslinn@mslinn.com