RUL 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +1 -0
  2. data/lib/rul.rb +1 -0
  3. data/lib/rul/rul.rb +2 -1
  4. data/rul.gemspec +1 -1
  5. metadata +1 -1
data/Gemfile CHANGED
@@ -1 +1,2 @@
1
1
  source :rubygems
2
+ gem 'uuid'
data/lib/rul.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'active_support'
2
+ require 'uuid'
2
3
  require 'rul/rul'
3
4
 
4
5
  module RUL
@@ -1,5 +1,6 @@
1
1
  module RUL
2
2
  module Logging
3
+ @@uuid = UUID.new
3
4
 
4
5
  def self.included(base)
5
6
  base.class_eval do
@@ -8,7 +9,7 @@ module RUL
8
9
  end
9
10
 
10
11
  def add_with_uuid_info severity, message=nil, progname=nil, &block
11
- uuid = session['session_id']
12
+ uuid = (Thread.current[:uuid] ||= @@uuid.generate)
12
13
  unless message.include?(uuid)
13
14
  message = "#{uuid} - #{message}"
14
15
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "RUL"
6
- s.version = "0.0.4"
6
+ s.version = "0.0.5"
7
7
  s.authors = ["Jason Rogers"]
8
8
  s.email = ["jacaetevha@gmail.com"]
9
9
  s.homepage = "https://github.com/jacaetevha/RUL"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RUL
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: