jekyll 4.3.1 → 4.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blank_template/assets/css/main.scss +1 -1
- data/lib/jekyll/liquid_renderer/table.rb +1 -11
- data/lib/jekyll/profiler.rb +0 -4
- data/lib/jekyll/site.rb +3 -9
- data/lib/jekyll/stevenson.rb +2 -5
- data/lib/jekyll/version.rb +1 -1
- metadata +6 -6
- /data/lib/blank_template/_sass/{main.scss → base.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e948eccc3527c222a8b2b3bc78790dbc39889e4b39d684cdbb70b5d1f143617b
|
4
|
+
data.tar.gz: 80c5b4cd88511218c35e31a0c6b3d54bbe2cf3e97e51fbf2e18dcf5e52015da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f421aefc5168fb29ea81d17041bb3be987d117af9b82dd692955a3a7a97353ed0908f1ed632fb16d01c6c626771f57da19750ac6c386dfbf571718a1920f53
|
7
|
+
data.tar.gz: a3dba9cb03f11da5cc235e5bf03871c04461cc1c7c42205ff51adb84d47f7d08858f8aaf9cb367fda129e4aa4cfb58bab1be8e7aba4cd501920dbdd34933f2e0
|
@@ -15,16 +15,12 @@ module Jekyll
|
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
|
-
# rubocop:disable Metrics/AbcSize
|
19
18
|
def data_for_table(num_of_rows)
|
20
19
|
sorted = @stats.sort_by { |_, file_stats| -file_stats[:time] }
|
21
20
|
sorted = sorted.slice(0, num_of_rows)
|
22
21
|
|
23
22
|
table = [header_labels]
|
24
|
-
totals = Hash.new { |hash, key| hash[key] = 0 }
|
25
|
-
|
26
23
|
sorted.each do |filename, file_stats|
|
27
|
-
GAUGES.each { |gauge| totals[gauge] += file_stats[gauge] }
|
28
24
|
row = []
|
29
25
|
row << filename
|
30
26
|
row << file_stats[:count].to_s
|
@@ -33,14 +29,8 @@ module Jekyll
|
|
33
29
|
table << row
|
34
30
|
end
|
35
31
|
|
36
|
-
|
37
|
-
footer << "TOTAL (for #{sorted.size} files)"
|
38
|
-
footer << totals[:count].to_s
|
39
|
-
footer << format_bytes(totals[:bytes])
|
40
|
-
footer << format("%.3f", totals[:time])
|
41
|
-
table << footer
|
32
|
+
table
|
42
33
|
end
|
43
|
-
# rubocop:enable Metrics/AbcSize
|
44
34
|
|
45
35
|
def header_labels
|
46
36
|
GAUGES.map { |gauge| gauge.to_s.capitalize }.unshift("Filename")
|
data/lib/jekyll/profiler.rb
CHANGED
@@ -33,18 +33,14 @@ module Jekyll
|
|
33
33
|
|
34
34
|
def profile_process
|
35
35
|
profile_data = { "PHASE" => "TIME" }
|
36
|
-
total_time = 0
|
37
36
|
|
38
37
|
[:reset, :read, :generate, :render, :cleanup, :write].each do |method|
|
39
38
|
start_time = Time.now
|
40
39
|
@site.send(method)
|
41
40
|
end_time = (Time.now - start_time).round(4)
|
42
41
|
profile_data[method.to_s.upcase] = format("%.4f", end_time)
|
43
|
-
total_time += end_time
|
44
42
|
end
|
45
43
|
|
46
|
-
profile_data["TOTAL TIME"] = format("%.4f", total_time)
|
47
|
-
|
48
44
|
Jekyll.logger.info "\nBuild Process Summary:"
|
49
45
|
Jekyll.logger.info Profiler.tabulate(Array(profile_data))
|
50
46
|
|
data/lib/jekyll/site.rb
CHANGED
@@ -360,15 +360,9 @@ module Jekyll
|
|
360
360
|
end
|
361
361
|
|
362
362
|
def each_site_file
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
next if seen_files.include?(item)
|
367
|
-
|
368
|
-
yield item
|
369
|
-
seen_files << item
|
370
|
-
end
|
371
|
-
end
|
363
|
+
pages.each { |page| yield page }
|
364
|
+
static_files.each { |file| yield(file) if file.write? }
|
365
|
+
collections.each_value { |coll| coll.docs.each { |doc| yield(doc) if doc.write? } }
|
372
366
|
end
|
373
367
|
|
374
368
|
# Returns the FrontmatterDefaults or creates a new FrontmatterDefaults
|
data/lib/jekyll/stevenson.rb
CHANGED
@@ -3,13 +3,10 @@
|
|
3
3
|
module Jekyll
|
4
4
|
class Stevenson < ::Logger
|
5
5
|
def initialize
|
6
|
-
|
7
|
-
@level = DEBUG
|
8
|
-
@default_formatter = Formatter.new
|
9
|
-
@logdev = $stdout
|
10
|
-
@formatter = proc do |_, _, _, msg|
|
6
|
+
formatter = proc do |_, _, _, msg|
|
11
7
|
msg.to_s
|
12
8
|
end
|
9
|
+
super($stdout, :formatter => formatter)
|
13
10
|
end
|
14
11
|
|
15
12
|
def add(severity, message = nil, progname = nil)
|
data/lib/jekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
8
|
- Parker Moore
|
9
9
|
- Matt Rogers
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -268,7 +268,7 @@ files:
|
|
268
268
|
- exe/jekyll
|
269
269
|
- lib/blank_template/_config.yml
|
270
270
|
- lib/blank_template/_layouts/default.html
|
271
|
-
- lib/blank_template/_sass/
|
271
|
+
- lib/blank_template/_sass/base.scss
|
272
272
|
- lib/blank_template/assets/css/main.scss
|
273
273
|
- lib/blank_template/index.md
|
274
274
|
- lib/jekyll.rb
|
@@ -394,7 +394,7 @@ metadata:
|
|
394
394
|
bug_tracker_uri: https://github.com/jekyll/jekyll/issues
|
395
395
|
changelog_uri: https://github.com/jekyll/jekyll/releases
|
396
396
|
homepage_uri: https://jekyllrb.com
|
397
|
-
post_install_message:
|
397
|
+
post_install_message:
|
398
398
|
rdoc_options:
|
399
399
|
- "--charset=UTF-8"
|
400
400
|
require_paths:
|
@@ -411,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
411
411
|
version: 2.7.0
|
412
412
|
requirements: []
|
413
413
|
rubygems_version: 3.1.6
|
414
|
-
signing_key:
|
414
|
+
signing_key:
|
415
415
|
specification_version: 4
|
416
416
|
summary: A simple, blog aware, static site generator.
|
417
417
|
test_files: []
|
File without changes
|