lwes-logger 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.0.3 / 2011-01-20
2
+
3
+ * Bugfixes:
4
+
5
+ * Moved from UUIDTools to UUID
6
+
1
7
  === 1.0.2 / 2010-10-12
2
8
 
3
9
  * Bugfixes:
data/Rakefile CHANGED
@@ -6,8 +6,8 @@ require 'hoe'
6
6
  Hoe.spec 'lwes-logger' do
7
7
  developer('Jeremie Castagna', 'jcastagna@attinteractive.com')
8
8
 
9
- self.extra_deps << ['lwes', '~> 0.6']
10
- self.extra_deps << ['uuidtools', '~> 2']
9
+ self.extra_deps << ['lwes', '~> 0.6']
10
+ self.extra_deps << ['uuid', '~> 2']
11
11
 
12
12
  self.extra_dev_deps << ['flexmock', '>=0.8.7']
13
13
  end
data/lib/lwes_logger.rb CHANGED
@@ -3,14 +3,14 @@ require 'logger'
3
3
 
4
4
  require 'rubygems'
5
5
  require 'lwes'
6
- require 'uuidtools'
6
+ require 'uuid'
7
7
 
8
8
  ##
9
9
  # Lwes based ruby logger for real-time logging.
10
10
 
11
11
  class LwesLogger < Logger
12
12
 
13
- VERSION = '1.0.2'
13
+ VERSION = '1.0.3'
14
14
 
15
15
  HOSTNAME = Socket.gethostname
16
16
  FORMAT = "%s [%s#%d] %5s -- %s: %s\n"
@@ -122,8 +122,7 @@ class LwesLogger < Logger
122
122
  message ||= progname
123
123
 
124
124
  event_id =
125
- "#{@namespace}::#{severity.capitalize}-" +
126
- UUIDTools::UUID.timestamp_create.to_s
125
+ "#{@namespace}::#{severity.capitalize}-" + UUID.generate
127
126
 
128
127
  event_hash = @meta_event.merge \
129
128
  :message => message.to_s.gsub(/\e\[.*?m/, ''),
@@ -29,7 +29,7 @@ class TestLwesLogger < Test::Unit::TestCase
29
29
  @time = Time.now
30
30
  flexmock(Time).should_receive(:now).and_return(@time)
31
31
 
32
- flexmock(UUIDTools::UUID).should_receive(:timestamp_create).
32
+ flexmock(UUID).should_receive(:generate).
33
33
  and_return("uuid_timestamp")
34
34
  end
35
35
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lwes-logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremie Castagna
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-12 00:00:00 -07:00
18
+ date: 2011-01-20 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -34,7 +34,7 @@ dependencies:
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- name: uuidtools
37
+ name: uuid
38
38
  prerelease: false
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
40
  none: false