nanoc-external 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +6 -0
- data/lib/nanoc/external/filter.rb +10 -8
- data/lib/nanoc/external/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '049a777f7ca72efd1fd09087670fbd579a93162f2d907f160c54b3c1997824ac'
|
4
|
+
data.tar.gz: b2e19796f8c8725a9ca3d94e3eec8f252fcb3ed4698d291af692c4f1b8a1048f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cdda9607fbb01d71358655a5ec035ca8e8fe98f6255299ca4f7dd7e0399b74ef545cd61e17f41ef4f07c6b775662e2677de7714c11a915477d4e758db00b59e
|
7
|
+
data.tar.gz: 856b23c541b23eb0b3b347e3d0f5796476370ebda9402e58a3a3547fb3d066d478bc75bc227b9c11767afc7c97b003ff521372d516358745d5b6f1a19546049b
|
data/NEWS.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module Nanoc
|
4
|
-
|
5
|
-
|
3
|
+
module Nanoc
|
4
|
+
module External
|
5
|
+
class Filter < Nanoc::Filter
|
6
|
+
identifier :external
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
def run(content, params = {})
|
9
|
+
cmd = params.fetch(:exec)
|
10
|
+
opts = params.fetch(:options, [])
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
command = TTY::Command.new(printer: :null)
|
13
|
+
command.run(cmd, *opts, input: content).out
|
14
|
+
end
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-external
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: nanoc
|
14
|
+
name: nanoc-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.11'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.11.
|
22
|
+
version: 4.11.14
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.11'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.11.
|
32
|
+
version: 4.11.14
|
33
33
|
description: Provides an :external filter for Nanoc
|
34
34
|
email: denis+rubygems@denis.ws
|
35
35
|
executables: []
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
64
|
+
rubygems_version: 3.1.2
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: External filter for Nanoc
|