jekyll-validator 0.1.2 → 0.2.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: 742c5a6e91c774a7b2831e499ab9273cb35eeca4873c07f0a9393bb7ef0f4621
4
- data.tar.gz: 35f94686ef8f7a9eb985047158fb86f2ab60e72bb52412d0e28c8ad1a57201a8
3
+ metadata.gz: 72e72ee4c1b81557dfdac80e1a1217548d435fcb66d7e439831ee43237a781c2
4
+ data.tar.gz: 65e7e91ef7985b0c5ab614f91275830d774474f1aecaa0ba7a05c2972bb7c9df
5
5
  SHA512:
6
- metadata.gz: b0998ad55fa4042d8d1fbef63864023a99622ff46fc9c021d03cac8566a1ca0e590e8c1c921e98310a8c9c07b424969911c0f1b3e4697ea854660ab3db1ae2d3
7
- data.tar.gz: 7f8553e8a6c21312586e9a57d5b15ae49b94d6a4cef68bc6f6818c2e4c25bdfae7ee548f4a5eeec9b9fe8f98e359bc150d71e99d735952fef54de5322b54c847
6
+ metadata.gz: 66231c87dd38f331cf828cfc9261822b51e713348b3be4cab47f2efc6a45f8d094bb9437770258f84fc698856d0886e3e73e005429723b53f1ac96d035adb384
7
+ data.tar.gz: dfafd0f112c0c2297cf6ddc652368041052f497b0f5d8d6ba5db74ccbb5b9f00b4deab38878d2e98022d101a116d9c56763dfa97d7a055d73b4b64ec30feeb62
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## [Unreleased]
1
+ ## [0.2.0]
2
+
3
+ - Doesn't run when JEKYLL_ENV is production
4
+ - Works without any configuration
2
5
 
3
6
  ## [0.1.0] - 2023-04-19
4
7
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-validator (0.1.2)
4
+ jekyll-validator (0.2.1)
5
5
  jekyll (>= 3.0, < 5.0)
6
6
  rainbow (>= 3.0, < 4.0)
7
7
  w3c_validators (>= 1.0, < 2.0)
@@ -113,6 +113,8 @@ GEM
113
113
  sass-embedded (1.62.0)
114
114
  google-protobuf (~> 3.21)
115
115
  rake (>= 10.0.0)
116
+ sass-embedded (1.62.0-arm64-darwin)
117
+ google-protobuf (~> 3.21)
116
118
  terminal-table (3.0.2)
117
119
  unicode-display_width (>= 1.1.1, < 3)
118
120
  unicode-display_width (2.4.2)
@@ -141,4 +143,4 @@ DEPENDENCIES
141
143
  webmock (~> 3.18)
142
144
 
143
145
  BUNDLED WITH
144
- 2.4.12
146
+ 2.4.13
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # JekyllValidator
2
2
 
3
- JekyllValidator is a gem that helps you validate the output of your Jekyll website every time it's generated. I got the idea from my blog post ["Automating HTML Validation for a Happier Life"], which includes a simple bash script to automate the process. I created this plugin to enhance the platform I use with better functionality. I incorporated CSS Validation to achieve this, using a language that I adore.
3
+ JekyllValidator is a gem that helps you validate the output of your Jekyll website every time it's generated. I got the idea from my blog post ["Automating HTML Validation for a Happier Life"](https://seoengr.net/2023/04/20/automating-html-validation.html "Automating HTML Validation for a Happier Life"), which includes a simple bash script to automate the process. I created this plugin to enhance the platform I use with better functionality. I incorporated CSS Validation to achieve this, using the language that I adore.
4
4
 
5
5
  ## Usage
6
6
 
@@ -28,4 +28,4 @@ It is possible to exclude files from the validation process:
28
28
 
29
29
  ## Code of Conduct
30
30
 
31
- Everyone interacting in the Jekyll::Validator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jekyll-validator/blob/main/CODE_OF_CONDUCT.md).
31
+ Everyone interacting in the JekyllValidator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jekyll-validator/blob/main/CODE_OF_CONDUCT.md).
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  class Validator
5
- VERSION = "0.1.2"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
@@ -40,12 +40,14 @@ module Jekyll
40
40
  end
41
41
 
42
42
  Jekyll::Hooks.register [:site], :post_write do |site|
43
- excluded = site.config["validator"]["exclude"]
43
+ break if ENV["JEKYLL_ENV"] == "production"
44
+
45
+ excluded = site.config.dig("validator", "exclude")
44
46
 
45
47
  Dir.glob(File.join("_site", "**/*")).each do |file|
46
48
  next if File.directory?(file)
47
49
  next unless File.extname(file) =~ /.css|.html/
48
50
 
49
- Jekyll::Validator.call(file) unless excluded.any? { |path| file.include?(path) }
51
+ Jekyll::Validator.call(file) unless excluded&.any? { |path| file.include?(path) }
50
52
  end
51
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Wieland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll