nanolog 0.1.1b → 0.1.1c
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/nanolog.rb +9 -0
- 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: a00177c38a17a4e5cdfd8fbcea1394ddaf21d5a3
|
4
|
+
data.tar.gz: 65988594aa81cceea0d02a117a00ced729fb992d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41b639cbf1909b053a447405e674e59a32d1a8119bd89ff626473cb3031b9009f0c01ac3081793e7b2516b3160ef52aa8600c59e6d282e0817b017ea80fd5ed8
|
7
|
+
data.tar.gz: e470a7d9fb019789f4f205b92e4683ab07613564c6c40947a4d9d99d0bb093f70bc2dc13c74ed919624462c0728e8879628a3c3d7fcfea00394afda5c58a4930
|
data/README.md
CHANGED
@@ -19,10 +19,10 @@ Install the gem like so:
|
|
19
19
|
|
20
20
|
or add the following line to your `Gemfile`:
|
21
21
|
|
22
|
-
`gem 'nanolog', '~> 0.1.
|
22
|
+
`gem 'nanolog', '~> 0.1.1b'`
|
23
23
|
|
24
24
|
## Documentation
|
25
|
-
Available [here](http://www.rubydoc.info/gems/nanolog/0.1.
|
25
|
+
Available [here](http://www.rubydoc.info/gems/nanolog/0.1.1b)
|
26
26
|
|
27
27
|
## Authors
|
28
28
|
- Carter Brainerd (cbrnrd) - [GitHub](https://github.com/cbrnrd)
|
data/lib/nanolog.rb
CHANGED
@@ -65,6 +65,15 @@ module NanoLog
|
|
65
65
|
@logfile.rewind
|
66
66
|
end
|
67
67
|
|
68
|
+
#
|
69
|
+
# Write a message with no category to the log file
|
70
|
+
# @param message [String] the message to log
|
71
|
+
#
|
72
|
+
def none(message='')
|
73
|
+
@logfile.write("#{Time.now} #{message}\n")
|
74
|
+
@logfile.rewind
|
75
|
+
end
|
76
|
+
|
68
77
|
end
|
69
78
|
|
70
79
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanolog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1c
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carter Brainerd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: cbawsome77@gmail.com
|