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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a795c8b72d5a01390d1fc1207f591907122770a381b87ce678e07536176e1b84
4
- data.tar.gz: 334ae45c5f9d92401b5277a72eab418cd520b7b9cc0f867a6f22b944221ccefb
3
+ metadata.gz: 75a424457999e15e194c8f3554ee093a6c167b43b6e92e8d278761581b223a5c
4
+ data.tar.gz: 7df3dceb9b56809423b686cabed730e7364b9969a631d16f607360814393b34b
5
5
  SHA512:
6
- metadata.gz: e9dcc2d5a72046d5250db9483057e6b64e2ead1ea5ceaea0a4e262cd54612698cd2314a19a5bd1ca52c8c1a22c947f1feddef9fe9fb5aa654b32d56ba169610e
7
- data.tar.gz: b4d645c500657c30390a4c7cca1f75c73642cc45ef2e0bc88dc05a65bb7b2de58cdca362b848036b959c040a8f5d464638adcbcd3de0b5ff5d1802a6744be6f8
6
+ metadata.gz: 99d9987e8a238e0f4d296b63c279e407affd095554e4cd70298ebe4b0e1938654ba66647b5d23ab59d5bdb3f645349315f0d58172f6c563610949dab630b348e
7
+ data.tar.gz: c9af1e3c5fa769f91da03968b73ad28daba8d42af491ae1489d9693af3bfdeb8233a2d0a4e7d7adb54daf011fb11958c455db2d00dce34104b7abaf25797cd2a
@@ -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
- [ File.basename(name), File.extname(name) ],
59
+ [File.basename(name), File.extname(name)],
60
60
  mkdir_p(tmpdir).last
61
61
  )
62
62
  file.write(content)
@@ -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.exit_status == 1
27
- if r.stderr =~ /No such file or directory/
28
- raise Nanoc::Tidy::Error, "The #{exe} executable was not found"
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,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module Tidy
5
- VERSION = "0.8.3"
5
+ VERSION = "0.8.4"
6
6
  end
7
7
  end
@@ -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.3"
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.3
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-15 00:00:00.000000000 Z
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.3
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.3
40
+ version: 0.12.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yard
43
43
  requirement: !ruby/object:Gem::Requirement