sawmill 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +4 -0
- data/lib/sawmill/logger.rb +2 -2
- data/lib/sawmill/version.rb +1 -1
- data/tests/tc_logger.rb +1 -0
- metadata +2 -2
data/History.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.0.6 / 2009-11-23
|
2
|
+
|
3
|
+
* In some cases (notably under Ruby 1.9), the default record ID generator created UUIDs that were twice as long as they should have been. Fixed.
|
4
|
+
|
1
5
|
=== 0.0.5 / 2009-11-08
|
2
6
|
|
3
7
|
* API CHANGE: Reworked how string encoding is specified. Default encoding for both reading and writing is now ASCII-8BIT unless specified in the API or within the file as a parser directive.
|
data/lib/sawmill/logger.rb
CHANGED
@@ -345,11 +345,11 @@ module Sawmill
|
|
345
345
|
unless @_default_generator
|
346
346
|
if defined?(::SecureRandom)
|
347
347
|
def self._random_hex32
|
348
|
-
::SecureRandom.hex(
|
348
|
+
::SecureRandom.hex(16)
|
349
349
|
end
|
350
350
|
elsif defined?(::ActiveSupport::SecureRandom)
|
351
351
|
def self._random_hex32
|
352
|
-
::ActiveSupport::SecureRandom.hex(
|
352
|
+
::ActiveSupport::SecureRandom.hex(16)
|
353
353
|
end
|
354
354
|
else
|
355
355
|
def self._random_hex32
|
data/lib/sawmill/version.rb
CHANGED
@@ -43,7 +43,7 @@ end
|
|
43
43
|
module Sawmill
|
44
44
|
|
45
45
|
# Current gem version, as a frozen string.
|
46
|
-
VERSION_STRING = '0.0.
|
46
|
+
VERSION_STRING = '0.0.6'.freeze
|
47
47
|
|
48
48
|
# Current gem version, as a Versionomy::Value if the versionomy library
|
49
49
|
# is available, or as a frozen string if not.
|
data/tests/tc_logger.rb
CHANGED
@@ -185,6 +185,7 @@ module Sawmill
|
|
185
185
|
|
186
186
|
def test_record_delimiters_auto_id
|
187
187
|
id_ = @logger.begin_record
|
188
|
+
assert_match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/, id_)
|
188
189
|
@logger.info('Hello 1')
|
189
190
|
@logger.end_record
|
190
191
|
entry_ = @entries.dequeue
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sawmill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-23 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|