GunnyLog 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/GunnyLog.rb +9 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e0a9552a9122c3e7e8df9613d86e18c32da0c53
4
- data.tar.gz: 49c3b8b2a41fdc6347a53b5c2e8b1e115a846920
3
+ metadata.gz: 9d78492939a8c7c6f91db7d2c08812464637bafa
4
+ data.tar.gz: 2ab0049b6a262bb5a261da6f7f8529671dac7f1b
5
5
  SHA512:
6
- metadata.gz: 1ee7985e662a78cda0dc368da3bfa4420725561df4488fae52ef37a2e375341de13c7a0d6f4625ad81b2168517e02ec010fc9a1d0bf5cef0fef2b50b37463225
7
- data.tar.gz: b955e24724e54838afb47e7decb521c95165d4ebd9fdeeb359abaeee3d5fc1038d7eb3dc3c7a5447a0320bb82e6307dd975d1a604a17b821561c90a1e5f38c7e
6
+ metadata.gz: 7e8bd6bbe3560c687b65a5c3e2fd09d5c2c130a52f29db43ed2e70d7c5546b1f7c2853422fd16e53ef31ae5172ddaa74968ebd7297a16b864d54cb2b441e8904
7
+ data.tar.gz: 4fb2adbfac7a78993fd58a4a5cf3dc9519d733c8606191a5dc7e43f8382466891d430214bb17b5c8584e22dbf649078d0923cbad95dab44740c1fd194bfd2fb9
@@ -1,5 +1,4 @@
1
- # GunnyLog logs messages to stdout
2
- # GunnyLogFile logs messages to a file
1
+ # GunnyLog and GunnyLogFile classes
3
2
  require 'singleton'
4
3
  require 'date'
5
4
 
@@ -9,23 +8,26 @@ class GunnyLog
9
8
 
10
9
  include Singleton
11
10
 
11
+ # logging off and on flag
12
12
  class << self;
13
13
  attr_accessor :onoffswitch
14
14
  end
15
15
  @onoffswitch = true
16
16
 
17
+ # location message was logged from
17
18
  class << self;
18
19
  attr_accessor :location
19
20
  end
20
21
  @location = 'MainMethod'
21
22
 
22
-
23
- # @param [bool] switch - logging on and off
23
+ # set logging on and off
24
+ # @param [bool] switch
24
25
  def set_switch(switch)
25
26
  @onoffswitch = switch
26
27
  end
27
28
 
28
- # @param [string] name - set message location
29
+ # set location message was logged from
30
+ # @param [string] name
29
31
  def set_location(name)
30
32
  @location = name
31
33
  end
@@ -72,11 +74,12 @@ class GunnyLog
72
74
  end
73
75
 
74
76
  end
75
-
77
+
76
78
 
77
79
  # GunnyLogFile logs messages to a file
78
80
  class GunnyLogFile < GunnyLog
79
81
 
82
+ # is file open flag
80
83
  class << self;
81
84
  attr_accessor :_is_file_open
82
85
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GunnyLog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GunnyHwy