pretty_multitask 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pretty_multitask/run_callable.rb +4 -1
- data/lib/pretty_multitask/version.rb +1 -1
- data/pretty_multitask.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c58a03adda54da68bff9b757023abe28a195f574cae58e1feec8b0b35e482ca
|
4
|
+
data.tar.gz: 8333c5fc9ca9b40bbab1cb0befedeca89b87484b4069ec12d0ee39e9f374e92b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f7edda5153cdedaa928dd43a44997143d88f6e974379e44505dde9efbb79e48ab6780410d96d38f6baab7650b53cc8e8af1b2f92c6e0d3ed150212b26d10060
|
7
|
+
data.tar.gz: 805bc7e4e013800cb4e728d4c0fd570957bf43b3eb3dac045a8563fdb633b278a27f5dd3ddff57ea261acb956bccbde7d337174e96e9309e32e4e5b1ee5aa8df
|
@@ -3,6 +3,8 @@
|
|
3
3
|
module PrettyMultitask
|
4
4
|
# This class will run a callable, and wrap it's output adding nice format
|
5
5
|
class RunCallable
|
6
|
+
LOGGER ||= Logger.new $stderr
|
7
|
+
|
6
8
|
def initialize(opts = {})
|
7
9
|
@opts = opts
|
8
10
|
end
|
@@ -80,7 +82,8 @@ module PrettyMultitask
|
|
80
82
|
rescue StandardError => e
|
81
83
|
new_error = e.class.new(e.message)
|
82
84
|
new_error.set_backtrace e.backtrace
|
83
|
-
|
85
|
+
LOGGER.reopen STDERR
|
86
|
+
LOGGER.error new_error
|
84
87
|
obj = { result: nil, error: new_error }
|
85
88
|
socket_w.puts Marshal.dump(obj), 0
|
86
89
|
end
|
data/pretty_multitask.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretty_multitask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Lopo Da Silva
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tlopo-executor
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '13.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '13.0'
|
83
83
|
description: Multitask with pretty output for Rake
|
84
84
|
email:
|
85
85
|
- tiagolopo@yahoo.com.br
|
@@ -108,7 +108,7 @@ homepage: https://github.com/tlopo-ruby/tlopo-executor
|
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata: {}
|
111
|
-
post_install_message:
|
111
|
+
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|
114
114
|
- lib
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
-
signing_key:
|
126
|
+
rubygems_version: 3.4.10
|
127
|
+
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Multitask with pretty output for Rake
|
130
130
|
test_files: []
|