autoshell 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/lib/autoshell/log.rb +3 -3
- data/lib/autoshell/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70c642425dc9eb229687e8731d4dc17f01305bde
|
4
|
+
data.tar.gz: 75627bef1cd84e2199c41ede120dfdc3524aed7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 614415f8a68cf48d6e8037f15e720f53083b7ff99939f14b5dcff41aafbe07c9faeb8081c041d853ef1cc142038f0ad1b2d3fb22b1f51dac79481dd9b27e46b5
|
7
|
+
data.tar.gz: ecfc40a4d5ae3466200c3f859a5d49b9b10b66faa80e41dd0ff56faa597a2bd3387ba78205efdaef3ec433cca2ae8360c27b8a8812484aba14820af54bfe2fe1
|
data/lib/autoshell/log.rb
CHANGED
@@ -14,7 +14,7 @@ module Autoshell
|
|
14
14
|
#
|
15
15
|
# @return [Logger] logger instance
|
16
16
|
def logger
|
17
|
-
return @logger if @logger
|
17
|
+
return @logger if defined? @logger
|
18
18
|
|
19
19
|
@log_device = StringIO.new
|
20
20
|
@logger = Logger.new(@log_device)
|
@@ -27,7 +27,7 @@ module Autoshell
|
|
27
27
|
# Get the complete output of the log
|
28
28
|
# @return [String] log contents
|
29
29
|
def log_output(color: false)
|
30
|
-
return unless @log_device
|
30
|
+
return unless defined? @log_device
|
31
31
|
if color
|
32
32
|
@log_device.string
|
33
33
|
else
|
@@ -38,7 +38,7 @@ module Autoshell
|
|
38
38
|
# Reset the log contents
|
39
39
|
# @return self
|
40
40
|
def log_reset
|
41
|
-
@log_device.truncate(0) if @log_device
|
41
|
+
@log_device.truncate(0) if defined? @log_device
|
42
42
|
self
|
43
43
|
end
|
44
44
|
end
|
data/lib/autoshell/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoshell
|
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
|
- Ryan Mark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|