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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 078776e8a9e1fa00a4c906739c8a9b5bafbe807c
4
- data.tar.gz: b11cd46194ba0eb870485b14b6c7dfc459c056ca
3
+ metadata.gz: 70c642425dc9eb229687e8731d4dc17f01305bde
4
+ data.tar.gz: 75627bef1cd84e2199c41ede120dfdc3524aed7d
5
5
  SHA512:
6
- metadata.gz: ead3c6f6964c51cca53d41f42840a364b5173bb1395ba89b16ac411aac1500c6c08d40b3840c4e8e70ac5ee20415e5a27812c98d9d130facfe34c044dc107eb8
7
- data.tar.gz: 94a4a591242b203bd072ba8f63a73791dfd6b6a86ad454603a1baad1c77346464ac23c134d6ff6266e0429829f67e749786e5c6878619c209d5f6f72be5b5ace
6
+ metadata.gz: 614415f8a68cf48d6e8037f15e720f53083b7ff99939f14b5dcff41aafbe07c9faeb8081c041d853ef1cc142038f0ad1b2d3fb22b1f51dac79481dd9b27e46b5
7
+ data.tar.gz: ecfc40a4d5ae3466200c3f859a5d49b9b10b66faa80e41dd0ff56faa597a2bd3387ba78205efdaef3ec433cca2ae8360c27b8a8812484aba14820af54bfe2fe1
@@ -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
@@ -1,4 +1,4 @@
1
1
  # Version info
2
2
  module Autoshell
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
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.3
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-15 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types