nanoc-tidy.rb 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nanoc/tidy/filter.rb +1 -1
- data/lib/nanoc/tidy/spawn.rb +3 -7
- data/lib/nanoc/tidy/version.rb +1 -1
- data/nanoc-tidy.rb.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a424457999e15e194c8f3554ee093a6c167b43b6e92e8d278761581b223a5c
|
4
|
+
data.tar.gz: 7df3dceb9b56809423b686cabed730e7364b9969a631d16f607360814393b34b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99d9987e8a238e0f4d296b63c279e407affd095554e4cd70298ebe4b0e1938654ba66647b5d23ab59d5bdb3f645349315f0d58172f6c563610949dab630b348e
|
7
|
+
data.tar.gz: c9af1e3c5fa769f91da03968b73ad28daba8d42af491ae1489d9693af3bfdeb8233a2d0a4e7d7adb54daf011fb11958c455db2d00dce34104b7abaf25797cd2a
|
data/lib/nanoc/tidy/filter.rb
CHANGED
@@ -56,7 +56,7 @@ module Nanoc::Tidy
|
|
56
56
|
tmpdir = File.join(Dir.getwd, "tmp", "tidy")
|
57
57
|
name = item.identifier.to_s
|
58
58
|
file = Tempfile.new(
|
59
|
-
[
|
59
|
+
[File.basename(name), File.extname(name)],
|
60
60
|
mkdir_p(tmpdir).last
|
61
61
|
)
|
62
62
|
file.write(content)
|
data/lib/nanoc/tidy/spawn.rb
CHANGED
@@ -23,13 +23,9 @@ module Nanoc::Tidy
|
|
23
23
|
# * 0: no warnings, no errors
|
24
24
|
# * 1: has warnings
|
25
25
|
# * 2: has errors
|
26
|
-
if r.
|
27
|
-
|
28
|
-
|
29
|
-
else
|
30
|
-
r.exit_status
|
31
|
-
end
|
32
|
-
elsif r.exit_status == 0
|
26
|
+
if r.not_found?
|
27
|
+
raise Nanoc::Tidy::Error, "The #{exe} executable was not found"
|
28
|
+
elsif [0, 1].include?(r.exit_status)
|
33
29
|
r.exit_status
|
34
30
|
else
|
35
31
|
raise Nanoc::Tidy::Error,
|
data/lib/nanoc/tidy/version.rb
CHANGED
data/nanoc-tidy.rb.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.summary = "nanoc-tidy.rb = nanoc + tidy-html5"
|
14
14
|
gem.description = gem.summary
|
15
15
|
gem.add_runtime_dependency "ryo.rb", "~> 0.5"
|
16
|
-
gem.add_runtime_dependency "test-cmd.rb", "~> 0.12.
|
16
|
+
gem.add_runtime_dependency "test-cmd.rb", "~> 0.12.4"
|
17
17
|
gem.add_development_dependency "yard", "~> 0.9"
|
18
18
|
gem.add_development_dependency "redcarpet", "~> 3.5"
|
19
19
|
gem.add_development_dependency "test-unit", "~> 3.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-tidy.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '0x1eef'
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ryo.rb
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.12.
|
33
|
+
version: 0.12.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.12.
|
40
|
+
version: 0.12.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: yard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|