jlog-rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@ module Jlog
5
5
 
6
6
  def append
7
7
  messages = params[:message]
8
- messages = [message] unless messages.is_a? Array
8
+ messages = [messages] unless messages.is_a? Array
9
9
  messages.each do |message|
10
10
  level_pattern = /^(DEBUG|INFO|WARN|ERROR|FATAL)/
11
11
  level = message.match(level_pattern)[1]
12
- message = 'Client ' << message
12
+ message = "#{Time.now} Client " << message
13
13
 
14
14
  if ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'].include? level
15
15
  Rails.logger.send(level.downcase.to_sym, message)
data/lib/jlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jlog
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jlog-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: