tiny_log 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_log.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b0c929818f43c13ea0abc76b487773fffaa9a41dfc9457260f39d5c53c42de5
4
- data.tar.gz: 782f6be926f8be3420ad06a90df545946a2e94ab5e09a079bbe04d86e6ef20f7
3
+ metadata.gz: 85cff9236f798df629886d40366c8a673ea208af89d7b37bea42038ea228e030
4
+ data.tar.gz: bf24cddc2ebf348ac713c0a066731fb1b2ce296db588eb77388ac920899c6a79
5
5
  SHA512:
6
- metadata.gz: e7fcaeb0db49141f2a37c1619146564541ff4457db10aebc1a68470865bf669d98d355e9194cada4c47614e0ee52c35063a92a2218b756c21cf6eb0cc16d7409
7
- data.tar.gz: 6893fd027e3d9b7443216385ab4e04169d1c55447af72ee8d7a64ec052356b2af336364859af47362e237f66ce73dc8b384c8e242ba405e954e555282af47fce
6
+ metadata.gz: 8a77fd0f56106ddedd77e036643cfeff75d3c5a36d7034255e8b766ecd419ece90e7611ef183606e43c2fd8ddd2b5eabd1122d8706ac52057543ef9d4729526c
7
+ data.tar.gz: 2be85ce2aa21c78ecf995b7853937ad1517b0468ff4c3b450b0fa9c1d3dd5ad0cc1efe8a86afadba97848c5f186bf4ceadc7e5ef4baa5aacc77c15616652b6a8
data/lib/tiny_log.rb CHANGED
@@ -17,7 +17,7 @@ class TinyLog
17
17
  # if unspecified, will default to $stdout
18
18
  # if specified, attempts to open a file with the specified name to append to
19
19
  def initialize(filename=nil)
20
- @io = filename ? File.open(filename, 'a') : $stdout
20
+ @io = filename.is_a?(String) ? File.open(filename, 'a') : $stdout
21
21
  end
22
22
 
23
23
  # the clever bit that annotates the log message with a log level and UTC
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt