nanoc-external 1.0.2 → 1.0.3

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: 0e06ea835b1ad1ab34524b31c62a74842038125a56d3f11c740044572b059f86
4
- data.tar.gz: af95f7457c1a766f40522d9823e59bfb73b48cd2408da305ee50726366a645c9
3
+ metadata.gz: f3f6b1c534100b134239172150dae874fc848a1f961b80270426c21ae8e57f1e
4
+ data.tar.gz: d8a409bae916ddd4c7cd83d2dba4d25b0e70d316814158389cec1ba3077aac76
5
5
  SHA512:
6
- metadata.gz: 50de96d91e8ea672376e1df8b3631077aa526837e1615a9abdf2f430572ac0e26a6afcacbfabd37e22734f3228eb613a3fa3b9058b2ed1904d31998d01475005
7
- data.tar.gz: 35fa93d19f6b80ce215a594231c8386ed9fcb088eb70a75ad6f8c820d698a4ef9e228685d7b1c6f03faa938d7ee2995d3f5da202e0dbcf34cf8b6185ad5c25ed
6
+ metadata.gz: 0a8beae7ae66e4d021388b8edbba6940ea0415ed9b2d9abc163f987e71a0ba7aeb4ecb40f3de07d7a87115aa553076868dee283544877960d173a63155e4fe73
7
+ data.tar.gz: c05270f8fdafb6faea1f62d58de562021bb7af476796dde2798d3e5f01e1596a639208d005caf480b9f26c8d3a7ad26af10c348d606daac59f002478e00b7a63
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # nanoc-external news
2
2
 
3
+ ## 1.0.3 (2019-04-28)
4
+
5
+ Fixes:
6
+
7
+ * Restored compatibility with latest version of Nanoc
8
+
3
9
  ## 1.0.2 (2017-12-03)
4
10
 
5
11
  * Dropped support for Ruby 2.2 and older
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # nanoc-external
2
2
 
3
- This provides a filter that allows [Nanoc](http://nanoc.ws) to process content by executing an external program.
3
+ This provides a filter that allows [Nanoc](https://nanoc.ws) to process content by executing an external program.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,11 +8,8 @@ module Nanoc::External
8
8
  cmd = params.fetch(:exec)
9
9
  opts = params.fetch(:options, [])
10
10
 
11
- cmd_with_opts = [cmd] + opts
12
- out = StringIO.new
13
- piper = Nanoc::Extra::Piper.new(stdout: out, stderr: $stderr)
14
- piper.run(cmd_with_opts, content)
15
- out.string
11
+ command = TTY::Command.new(printer: :null)
12
+ command.run(cmd, *opts, input: content).out
16
13
  end
17
14
  end
18
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module External
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-external
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-03 00:00:00.000000000 Z
11
+ date: 2019-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nanoc
@@ -16,15 +16,21 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.8'
19
+ version: '4.11'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 4.11.3
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '4.8'
27
- description: Provides an :external filter for nanoc
29
+ version: '4.11'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 4.11.3
33
+ description: Provides an :external filter for Nanoc
28
34
  email: denis+rubygems@denis.ws
29
35
  executables: []
30
36
  extensions: []
@@ -36,7 +42,7 @@ files:
36
42
  - lib/nanoc/external.rb
37
43
  - lib/nanoc/external/filter.rb
38
44
  - lib/nanoc/external/version.rb
39
- homepage: http://nanoc.ws/
45
+ homepage: https://nanoc.ws/
40
46
  licenses:
41
47
  - MIT
42
48
  metadata: {}
@@ -48,16 +54,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
54
  requirements:
49
55
  - - "~>"
50
56
  - !ruby/object:Gem::Version
51
- version: '2.3'
57
+ version: '2.4'
52
58
  required_rubygems_version: !ruby/object:Gem::Requirement
53
59
  requirements:
54
60
  - - ">="
55
61
  - !ruby/object:Gem::Version
56
62
  version: '0'
57
63
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.7.3
64
+ rubygems_version: 3.0.3
60
65
  signing_key:
61
66
  specification_version: 4
62
- summary: External filter for nanoc
67
+ summary: External filter for Nanoc
63
68
  test_files: []