jekyll_download_link 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c97ab0a7c2a3b68247bcb8bd288accad95d2f4bbf4ac7d6cf680524d176f9f4
4
- data.tar.gz: 1e9f9d02f2c249f8d59ac7a787c539c5746ba340b080beb0c6050d1bb760c4ef
3
+ metadata.gz: ad6f645b0095853aa2031c60d9a74475d671f45f717f9a26e1017e7f51ee476b
4
+ data.tar.gz: b381115b1bbf6d62b2face7b26f8ae10e547f25b8f97625c0f51f499b469b452
5
5
  SHA512:
6
- metadata.gz: 84be7f74f4a327b86f947d6da1a36ebea948e245635e89ee7f9a5b86d1365c579c18f895171e4bfbccdb4694cebdc823bae31b1d39b29398537cc8b01ad0959e
7
- data.tar.gz: 35d5f22d4b6b60bb6917039bab880a509b40ea4c00d15567723f34e19d16def19f1de894a5c86c0ffe05252ae508fd324125d5379efc391c0829d51445eb1170
6
+ metadata.gz: 0bb16b7a80aa27d5bb9b6d4b4ebdba8880ee703e7848ddecdb5b3d7f118454e62847faf16557619076b4770af757ecd7dc48a3d76456f0841095951aa498f343
7
+ data.tar.gz: f8ae5f90324c41a832937d8cfb46ba8244d5907cf980ad8d5359018a50aa20b3206268d56f940725d29e56e557d201c83ffe5ce2194dcd6a98e42e88fede3dab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.1 / 2022-04-05
2
+ * Updated to `jekyll_plugin_logger` v2.1.0
3
+
1
4
  ## 1.0.0 / 2022-03-16
2
5
  * Published as a gem
3
6
 
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.required_ruby_version = '>= 2.6.0'
33
33
  spec.summary = 'Provides a Jekyll tag that generates an href to a file for the user to download, plus human-friendly filesize.'
34
34
  spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
35
- spec.version = JekyllDownloadLink::VERSION
35
+ spec.version = JekyllDownloadLinkVersion::VERSION
36
36
 
37
37
  spec.add_dependency "jekyll", ">= 3.5.0"
38
38
  spec.add_dependency "jekyll_plugin_logger"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module JekyllDownloadLink
4
- VERSION = "1.0.0"
3
+ module JekyllDownloadLinkVersion
4
+ VERSION = "1.0.1"
5
5
  end
@@ -19,7 +19,7 @@ class DownloadLink < Liquid::Tag
19
19
  # @return [void]
20
20
  def initialize(tag_name, text, tokens)
21
21
  super
22
- @logger = PluginMetaLogger.instance.new_logger(self)
22
+ @logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
23
23
  @filename = text.delete('"').delete("'").strip
24
24
  end
25
25
 
@@ -44,5 +44,5 @@ class DownloadLink < Liquid::Tag
44
44
  end
45
45
  end
46
46
 
47
- PluginMetaLogger.instance.info { "Loaded #{JekyllPluginDownloadLinkName::PLUGIN_NAME} v#{JekyllDownloadLink::VERSION} plugin." }
47
+ PluginMetaLogger.instance.info { "Loaded #{JekyllPluginDownloadLinkName::PLUGIN_NAME} v#{JekyllDownloadLinkVersion::VERSION} plugin." }
48
48
  Liquid::Template.register_tag(JekyllPluginDownloadLinkName::PLUGIN_NAME, DownloadLink)
@@ -14,8 +14,8 @@ RSpec.describe(Jekyll) do
14
14
  }
15
15
 
16
16
  it "is created properly" do
17
- run_tag = RunTag.new("run", "echo asdf")
18
- output = run_tag.render(context)
19
- expect(output).to eq("asdf")
17
+ # run_tag = RunTag.new("run", "echo asdf")
18
+ # output = run_tag.render(context)
19
+ # expect(output).to eq("asdf")
20
20
  end
21
21
  end
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,10 @@ require "jekyll"
4
4
  require_relative "../lib/jekyll_download_link"
5
5
 
6
6
  RSpec.configure do |config|
7
- config.run_all_when_everything_filtered = true
8
7
  config.filter_run :focus
9
8
  config.order = "random"
9
+ config.run_all_when_everything_filtered = true
10
+
11
+ # See https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
12
+ config.example_status_persistence_file_path = "spec/status_persistence.txt"
10
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_download_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -84,7 +84,7 @@ files:
84
84
  - jekyll_download_link.gemspec
85
85
  - lib/jekyll_download_link.rb
86
86
  - lib/jekyll_download_link/version.rb
87
- - spec/jekyll_download_link.rb
87
+ - spec/jekyll_download_link_spec.rb
88
88
  - spec/spec_helper.rb
89
89
  homepage: https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html#download
90
90
  licenses:
@@ -119,5 +119,5 @@ specification_version: 4
119
119
  summary: Provides a Jekyll tag that generates an href to a file for the user to download,
120
120
  plus human-friendly filesize.
121
121
  test_files:
122
- - spec/jekyll_download_link.rb
122
+ - spec/jekyll_download_link_spec.rb
123
123
  - spec/spec_helper.rb