jekyll-glossary_tooltip 1.3.0 → 1.3.1
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/.github/dependabot.yml +1 -0
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +3 -2
- data/jekyll-glossary_tooltip.gemspec +2 -2
- data/lib/jekyll-glossary_tooltip/options_parser.rb +4 -1
- data/lib/jekyll-glossary_tooltip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09c7f3e8d1674d97b97e0b2f61a9aec54c9f63887ef44e186bb98cb17f1e316e'
|
|
4
|
+
data.tar.gz: a04e4f54354a67f7133f9bbb49fa6a141464fdb1796caffe81d1e5253e781619
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c4fa0607b999dc875677218c0c12392fd699d5f647b37dfc0802ff1b0612bf06e9ccf564a9c562e5d5b5a4ece98b010864b1933693e3cf173446feef17ba9bb
|
|
7
|
+
data.tar.gz: 10a488c7d5dce9facceac915de46887d76142b0a59686c21c5a484bc116555dee5fe8cc90bd1fecea2cbeb29399f356bfc48e78d84faf42f91dfa8ed5e18454d
|
data/.github/dependabot.yml
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -5,6 +5,10 @@ require:
|
|
|
5
5
|
- rubocop-rake
|
|
6
6
|
- rubocop-rspec
|
|
7
7
|
|
|
8
|
+
inherit_mode:
|
|
9
|
+
merge:
|
|
10
|
+
- Exclude # Merge my AllCops.Excllude with default exludes from https://github.com/rubocop/rubocop/blob/master/config/default.yml
|
|
11
|
+
|
|
8
12
|
AllCops:
|
|
9
13
|
TargetRubyVersion: 3.0
|
|
10
14
|
Include:
|
|
@@ -70,7 +74,6 @@ Lint/UselessAccessModifier:
|
|
|
70
74
|
|
|
71
75
|
Metrics/AbcSize:
|
|
72
76
|
Enabled: true
|
|
73
|
-
Max: 25
|
|
74
77
|
Metrics/BlockLength:
|
|
75
78
|
Enabled: true
|
|
76
79
|
Max: 100
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -12,10 +12,11 @@ gemspec
|
|
|
12
12
|
# Reference: https://github.com/rubygems/bundler/pull/7222
|
|
13
13
|
# However there's an argument for using gemspec too: https://bundler.io/guides/creating_gem.html#testing-our-gem
|
|
14
14
|
group :development, :test do
|
|
15
|
-
gem "rake", "~> 13.0", require: false
|
|
16
|
-
gem "travis", "~> 1.0", require: false
|
|
17
15
|
gem "appraisal", "~> 2.4", require: false
|
|
18
16
|
gem "gem-release", "~> 2.0", require: false
|
|
17
|
+
gem "rake", "~> 13.0", require: false
|
|
18
|
+
gem "solargraph", require: false
|
|
19
|
+
gem "travis", "~> 1.0", require: false
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
group :test do
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = "This plugin simplifies for your readers and you by making it easy to define terms or abbreviations that needs an explanation. Define a common dictionary of terms and their definition in a YAML file. Then inside markdown files you can use the provided glossary liquid tag to insert a tooltip for a defined word from the dictionary. The tooltip will show the term definition on mouse hover."
|
|
13
13
|
spec.homepage = "https://github.com/erikw/jekyll-glossary_tooltip/"
|
|
14
14
|
spec.license = "MIT"
|
|
15
|
-
spec.required_ruby_version = ">= 2.7", "< 4"
|
|
15
|
+
spec.required_ruby_version = [">= 2.7", "< 4"]
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/erikw/jekyll-glossary_tooltip/"
|
|
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
28
28
|
spec.require_paths = ["lib"]
|
|
29
29
|
|
|
30
|
-
spec.add_dependency "jekyll", ">= 3.7", "< 5.0"
|
|
30
|
+
spec.add_dependency "jekyll", [">= 3.7", "< 5.0"]
|
|
31
31
|
end
|
|
@@ -23,7 +23,11 @@ module Jekyll
|
|
|
23
23
|
|
|
24
24
|
options[:term_query] = opt_segments[0]
|
|
25
25
|
opt_segments.shift
|
|
26
|
+
parse_segments(options, opt_segments)
|
|
27
|
+
options
|
|
28
|
+
end
|
|
26
29
|
|
|
30
|
+
def parse_segments(options, opt_segments)
|
|
27
31
|
opt_segments.each do |opt_segment|
|
|
28
32
|
raise Errors::OptionsBadTagArgumentFormat, options[:term_name] unless opt_segment =~ ARGS_PATTERN
|
|
29
33
|
|
|
@@ -33,7 +37,6 @@ module Jekyll
|
|
|
33
37
|
|
|
34
38
|
options[arg_name.to_sym] = arg_value
|
|
35
39
|
end
|
|
36
|
-
options
|
|
37
40
|
end
|
|
38
41
|
end
|
|
39
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-glossary_tooltip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Westrup
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08-
|
|
11
|
+
date: 2021-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|