jekyll-koziolekweb-tags 0.4.2 → 0.4.3

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: b763c63bdd434a2eae4fa1329a7ce27925cee6aa4efedb472962a900080e1819
4
- data.tar.gz: 11c05ca54e35b8d64e619c199930f0c98c92da27f6bc78593c72dbbd78d1fa0a
3
+ metadata.gz: 68be660e0e952fcf86e2b702d84f26c8c9e3cbfba90580a34eb108540ac8d52c
4
+ data.tar.gz: 510e07d20ac6f9f9be165ada31ad563ba936adab949738ab6dce861ad15c209b
5
5
  SHA512:
6
- metadata.gz: 21edae40a9c3e8d97c2a67900dba5683011e70d66f1506021a70b89f6bc158cad244a8e43e11a49625b3ad2f5ffaecac8fb2a9d6a7ee34cfd4dc912939db92f2
7
- data.tar.gz: aab6832139fe8016bc9a2ca565f055d0fe01343e1404e93041bcd8b5e8825b82b5720f7d5af5937b053178506eda8235b8b02aaa773a354bea7f02d6e1456ea1
6
+ metadata.gz: ee37cbb3a2abd8ba746aa44d5297750c26485ef2cd49bba993c5c2f6eca2b91931f42efab42652cdc910632bc3b8537c86e687fcb479af7d7da81ffcbeb36291
7
+ data.tar.gz: d4df007d493c1c405cdeedbc5927546831646f824d5b391d5704d9109d5a4b9cca8d5aef982e45942d6af1fe9ff041502c551b46f6925f043dfa680cf30587af
data/CHANGELOG.md CHANGED
@@ -17,4 +17,23 @@ yt_video
17
17
 
18
18
  ## 0.1.0
19
19
 
20
- New project were born…
20
+ New project were born…
21
+ ## 2025-05-17
22
+ - 0e89167 [2025-05-17] update rake stuff (Koziolek)
23
+ - 67f3ca1 [2025-05-17] update rake stuff (Koziolek)
24
+ - 2492798 [2025-05-17] release v.0.4.1 (Koziolek)
25
+ - 732616c [2025-05-16] release v.0.4.0 (Koziolek)
26
+ - 8dfc876 [2025-05-16] Refactor and tests (Koziolek)
27
+ - 4822571 [2025-05-15] fix title (Koziolek)
28
+ - 4aa037f [2024-10-14] yt_video (Koziolek)
29
+ - cab336e [2024-10-11] init (Koziolek)
30
+
31
+ ## 2025-05-17
32
+ - 0e89167 [2025-05-17] update rake stuff (Koziolek)
33
+ - 67f3ca1 [2025-05-17] update rake stuff (Koziolek)
34
+ - 2492798 [2025-05-17] release v.0.4.1 (Koziolek)
35
+ - 732616c [2025-05-16] release v.0.4.0 (Koziolek)
36
+ - 8dfc876 [2025-05-16] Refactor and tests (Koziolek)
37
+ - 4822571 [2025-05-15] fix title (Koziolek)
38
+ - 4aa037f [2024-10-14] yt_video (Koziolek)
39
+ - cab336e [2024-10-11] init (Koziolek)
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Rake::TestTask.new do |t|
11
11
  end
12
12
 
13
13
  desc "Stwórz gem, wygeneruj changelog, utwórz tag i wypchnij"
14
- task :release do
14
+ task :myrelease do
15
15
  # Sprawdzenie obecności pliku .gemspec
16
16
  gemspec_filename = Dir.glob("*.gemspec").first
17
17
  abort("Brak pliku .gemspec!") unless gemspec_filename
@@ -22,22 +22,22 @@ task :release do
22
22
  gem_version = gemspec.version.to_s
23
23
 
24
24
  # 1. Wygeneruj gem
25
- # Rake::Task[:build_gem].invoke
25
+ Rake::Task[:build_gem].invoke
26
26
 
27
27
  # 2. Wygeneruj changelog
28
28
  Rake::Task[:generate_changelog].invoke
29
29
 
30
30
  # 3. Utwórz tag gita
31
- # Rake::Task[:create_git_tag].invoke
31
+ Rake::Task[:create_git_tag].invoke
32
32
 
33
33
  # 4. Wypchnij tag na zdalny repozytorium
34
- # Rake::Task[:push_git_tag].invoke
34
+ Rake::Task[:push_git_tag].invoke
35
35
 
36
36
  # 5. Wypchnij gem na RubyGems
37
- # Rake::Task[:push_gem].invoke
37
+ Rake::Task[:push_gem].invoke
38
38
 
39
39
  # 6. Zwiększ wersję w pliku VERSION
40
- # Rake::Task[:bump_version].invoke
40
+ Rake::Task[:bump_version].invoke
41
41
 
42
42
  puts "Wersja #{gem_name} #{gem_version} została zbudowana i wydana!"
43
43
  end
@@ -3,7 +3,7 @@
3
3
  module Jekyll
4
4
  module Koziolekweb
5
5
  module Tags
6
- VERSION = "0.4.2"
6
+ VERSION = "0.4.3"
7
7
  end
8
8
  end
9
9
  end
@@ -45,9 +45,9 @@ module Koziolekweb
45
45
  code_html = markdown_converter.convert(markdown_code).strip
46
46
 
47
47
  <<~HTML
48
- <p class='listing'> Listing #{listing_number}. #{title_html}</p>
49
- #{code_html}
50
- HTML
48
+ <p class='listing'> Listing #{listing_number}. #{title_html}</p>
49
+ #{code_html}
50
+ HTML
51
51
  end
52
52
  end
53
53
 
@@ -109,14 +109,34 @@ module Koziolekweb
109
109
 
110
110
  end
111
111
 
112
+ # A tag that displays book information with cover image in a structured format.
113
+ #
114
+ # Usage:
115
+ # {% book "Title" "Author" "2024" "1234567890" "https://example.com/cover.jpg" %}
116
+ #
117
+ # Optional language parameter:
118
+ # {% book "Title" "Author" "2024" "1234567890" "https://example.com/cover.jpg" lang:pl %}
119
+ #
120
+ # The tag requires:
121
+ # - Title (in quotes)
122
+ # - Author (in quotes)
123
+ # - Publication year (4 digits)
124
+ # - ISBN (can be empty string)
125
+ # - Cover image URL
126
+ #
127
+ # Language support:
128
+ # - Default language is 'en'
129
+ # - Language files should be in _data/lang/[lang_code].yml
130
+ # - Language codes must be 2 letters (e.g. en, pl, de)
112
131
  class Book < Liquid::Tag
132
+ # Minimum number of required arguments (title, author, year, isbn, cover_url)
113
133
  MIN_ARGS = 5
114
134
 
115
135
  def initialize(tag_name, markup, tokens)
116
136
  super
117
137
 
118
138
  args = Shellwords.split(markup)
119
- raise Liquid::SyntaxError, "Invalid usage" if args.size < self::MIN_ARGS
139
+ raise Liquid::SyntaxError, "Invalid usage" if args.size < MIN_ARGS
120
140
 
121
141
  @title, @author, @year, @isbn, @cover_url = args[0..4].map { _1.delete('"') }
122
142
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-koziolekweb-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koziolek
@@ -42,7 +42,6 @@ files:
42
42
  - Gemfile
43
43
  - README.md
44
44
  - Rakefile
45
- - jekyll-koziolekweb-tags.gemspec
46
45
  - lib/jekyll/koziolekweb/tags.rb
47
46
  - lib/jekyll/koziolekweb/tags/version.rb
48
47
  - sig/jekyll/koziolekweb/tags.rbs
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/jekyll/koziolekweb/tags/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "jekyll-koziolekweb-tags"
7
- spec.version = Jekyll::Koziolekweb::Tags::VERSION
8
- spec.authors = ["Koziolek"]
9
- spec.email = ["bjkuczynski@gmail.com"]
10
-
11
- spec.summary = "Set of structural tags that helps to organise article."
12
- spec.description = "Here you will find a set of tags that allow you to create code listings with numbering, notes using the <aside> element and more."
13
- spec.homepage = "https://github.com/Koziolek/jekyll-koziolekweb-tags"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.4.0"
16
- spec.add_dependency "jekyll", ">= 3.7", "< 5.0"
17
-
18
- # Specify which files should be added to the gem when it is released.
19
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
- spec.files = Dir.chdir(__dir__) do
21
- `git ls-files -z`.split("\x0").reject do |f|
22
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
23
- end
24
- end
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
-
28
- spec.metadata["source_code_uri"] = "https://github.com/Koziolek/jekyll-koziolekweb-tags"
29
- spec.metadata["changelog_uri"] = "https://github.com/Koziolek/jekyll-koziolekweb-tags/CHANGELOG.md"
30
-
31
-
32
- spec.require_paths = ["lib"]
33
-
34
- # Uncomment to register a new dependency of your gem
35
- # spec.add_dependency "example-gem", "~> 1.0"
36
-
37
- # For more information and examples about making a new gem, check out our
38
- # guide at: https://bundler.io/guides/creating_gem.html
39
- end