sawmill 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/lib/sawmill/logger.rb +0 -2
- data/lib/sawmill/rotater.rb +3 -5
- data/lib/sawmill/version.rb +1 -1
- metadata +2 -2
data/History.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.0.7 / 2009-12-09
|
2
|
+
|
3
|
+
* The rotater crashed when obtaining an IO handle under Ruby 1.9. Fixed.
|
4
|
+
|
1
5
|
=== 0.0.6 / 2009-11-23
|
2
6
|
|
3
7
|
* 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.
|
data/lib/sawmill/logger.rb
CHANGED
@@ -217,7 +217,6 @@ module Sawmill
|
|
217
217
|
|
218
218
|
# Emits a set-attribute log entry in the current record.
|
219
219
|
# You must specify a key and a value as strings.
|
220
|
-
|
221
220
|
|
222
221
|
def set_attribute(key_, value_)
|
223
222
|
attribute(key_, value_, :set)
|
@@ -226,7 +225,6 @@ module Sawmill
|
|
226
225
|
|
227
226
|
# Emits an append-attribute log entry in the current record.
|
228
227
|
# You must specify a key and a value as strings.
|
229
|
-
|
230
228
|
|
231
229
|
def append_attribute(key_, value_)
|
232
230
|
attribute(key_, value_, :append)
|
data/lib/sawmill/rotater.rb
CHANGED
@@ -146,11 +146,9 @@ module Sawmill
|
|
146
146
|
io_ = @io_manager.open_handle(handle_)
|
147
147
|
unless @omit_directives
|
148
148
|
_write_to_stream(io_, "# sawmill_format: version=1\n")
|
149
|
-
if
|
150
|
-
encoding_ =
|
151
|
-
|
152
|
-
_write_to_stream(io_, "# sawmill_format: encoding=#{encoding_.name}\n")
|
153
|
-
end
|
149
|
+
if SUPPORTS_ENCODING
|
150
|
+
encoding_ = @encoding || ::Encoding.default_external
|
151
|
+
_write_to_stream(io_, "# sawmill_format: encoding=#{@encoding.name}\n")
|
154
152
|
end
|
155
153
|
end
|
156
154
|
@handles[handle_] = [handle_, io_, 1]
|
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.7'.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.
|
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.7
|
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-
|
12
|
+
date: 2009-12-09 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|