libis-tools 0.9.46 → 0.9.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/tools/version.rb +1 -1
- data/spec/command_spec.rb +1 -1
- data/spec/logger_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83ad76b9425c2c4bb8d5714b0ea6b76fd664cc59
|
4
|
+
data.tar.gz: 4a29e2c39a8665237ddc33f7b5a88b189eeea702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff20d7930fe99c0c889f1e46ab81fa4fe0254f7d53d516b17f3a44d24d5c90ed2720bef69105fbfd6828c3751e06dc9c771fdcba7ce99b8ce89c864a07205a99
|
7
|
+
data.tar.gz: 533cd767b9bddff002b74b4148418e8b1700c81dd19b7795abcbca85f7e3f245ac8b95fdd39743dcb9efada17dca6bf91bc4c8565e0191916bab15783d0899c4
|
data/lib/libis/tools/version.rb
CHANGED
data/spec/command_spec.rb
CHANGED
@@ -56,7 +56,7 @@ describe 'Command' do
|
|
56
56
|
result = Libis::Tools::Command.run('ls', 'abc')
|
57
57
|
expect(result[:out]).to eq []
|
58
58
|
expect(result[:err].size).to eq 1
|
59
|
-
expect(result[:err][0]).to match /ls: cannot access abc
|
59
|
+
expect(result[:err][0]).to match /ls: cannot access '?abc'?: No such file or directory/
|
60
60
|
expect(result[:status]).to eq 2
|
61
61
|
|
62
62
|
end
|
data/spec/logger_spec.rb
CHANGED
@@ -51,7 +51,7 @@ describe 'Logger' do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it 'should log fatal output' do
|
54
|
-
test_logger.
|
54
|
+
test_logger.fatal_error 'Fatal message'
|
55
55
|
output = logoutput.string.lines.map(&:chomp)
|
56
56
|
expect(output.size).to eq 1
|
57
57
|
expect(output.last).to match /^F, #{timestamp_regex} FATAL : Fatal message$/
|
@@ -80,7 +80,7 @@ describe 'Logger' do
|
|
80
80
|
# noinspection RubyResolve
|
81
81
|
expect(output).not_to be_empty
|
82
82
|
|
83
|
-
test_logger.
|
83
|
+
test_logger.fatal_error 'Fatal message'
|
84
84
|
output = logoutput.string.lines.map(&:chomp)
|
85
85
|
# noinspection RubyResolve
|
86
86
|
expect(output).not_to be_empty
|