noddy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/noddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Noddy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/noddy.rb CHANGED
@@ -8,11 +8,7 @@ module Noddy
8
8
  @level = level
9
9
  end
10
10
 
11
- def log_message( msg )
12
- level = @level || DEFAULT_LEVEL
13
- end
14
-
15
- def self.debug( msg )
11
+ def debug( msg )
16
12
  log_message( msg, DEBUG )
17
13
  end
18
14
 
@@ -48,7 +44,7 @@ module Noddy
48
44
 
49
45
  msg.timestamp! if @timestamp || TIMESTAMP_DEFAULT
50
46
 
51
- puts msg if level <= @level
47
+ puts msg if level <= (@level || DEFAULT_LEVEL )
52
48
  end
53
49
  end
54
50
  end
data/noddy.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Dave Avent"]
10
10
  spec.email = ["davent@lumux.co.uk"]
11
11
  spec.summary = %q{Noddy Logger logging library.}
12
- spec.description = %q{Noddy Logger is a very simple library to quickly output logs from your scripts and applications using colours, timestamps etc.}
12
+ spec.description = %q{Handles logging to stdout, stderr and file as well as log levels, timestamping and compression.}
13
13
  spec.homepage = "https://github.com/davent/noddy"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-10 00:00:00.000000000 Z
12
+ date: 2014-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -43,8 +43,8 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Noddy Logger is a very simple library to quickly output logs from your
47
- scripts and applications using colours, timestamps etc.
46
+ description: Handles logging to stdout, stderr and file as well as log levels, timestamping
47
+ and compression.
48
48
  email:
49
49
  - davent@lumux.co.uk
50
50
  executables: []