mini_logger 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mini_logger.rb +2 -10
  2. data/lib/version.rb +2 -2
  3. metadata +1 -1
data/lib/mini_logger.rb CHANGED
@@ -11,15 +11,9 @@ module MiniLogger
11
11
  def method_missing( method, *arguments, &block )
12
12
 
13
13
  self.configure unless @logger
14
-
15
- if VALID_METHODS.include?( method )
16
-
17
- @logger.send( method, arguments.length == 1 ? arguments[0] : arguments )
18
- end
14
+ @logger.send( method, arguments.length == 1 ? arguments[0] : arguments ) if VALID_METHODS.include?( method )
19
15
  end
20
16
 
21
-
22
- #def configure( options=DEFAULT_CONFIGURATION )
23
17
  def configure( atts = DEFAULT_CONFIGURATION )
24
18
 
25
19
  @logger ||= Logger.new( atts[:log_channel] )
@@ -28,6 +22,4 @@ module MiniLogger
28
22
  self
29
23
  end
30
24
  end
31
- end
32
-
33
- MiniLogger.fatal( "Yeah!!")
25
+ end
data/lib/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Version
2
2
  module Info
3
3
  MAJOR = 0
4
- MINOR = 1
5
- PATCH = 3
4
+ MINOR = 1
5
+ PATCH = 4
6
6
  end
7
7
 
8
8
  NAME = 'mini_logger'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mini_logger
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Javier Juarez