lumberjack 1.0.2 → 1.0.3

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/Rakefile CHANGED
@@ -37,10 +37,4 @@ if File.exist?(spec_file)
37
37
  p.gem_spec = spec
38
38
  end
39
39
  Rake.application["package"].prerequisites.unshift("rbx:delete_rbc_files")
40
-
41
- desc "Release to rubygems.org"
42
- task :release => :package do
43
- Rake::Gemcutter::Tasks.new(spec).define
44
- Rake::Task['gem:push'].invoke
45
- end
46
40
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -11,7 +11,7 @@ module Lumberjack
11
11
 
12
12
  # Subclasses must implement this method to write a LogEntry.
13
13
  def write(entry)
14
- raise NotImpelementedError
14
+ raise NotImplementedError
15
15
  end
16
16
 
17
17
  # Subclasses may implement this method to close the device.
@@ -11,7 +11,7 @@ module Lumberjack
11
11
  def initialize(path, options = {})
12
12
  @path = File.expand_path(path)
13
13
  FileUtils.mkdir_p(File.dirname(@path))
14
- super(File.new(@path, 'a'), options)
14
+ super(File.new(@path, 'a', :encoding => "ascii-8bit"), options)
15
15
  end
16
16
  end
17
17
  end
@@ -103,7 +103,7 @@ module Lumberjack
103
103
  # Execute only if the file we locked is still the same one that needed to be rolled
104
104
  yield if verify && verify.ino == @file_inode && verify.size > 0
105
105
  ensure
106
- stream.flock(File::LOCK_UN) rescue nil
106
+ file.flock(File::LOCK_UN) rescue nil
107
107
  end
108
108
  end
109
109
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumberjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-15 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple, powerful, and very fast logging utility that can be a drop
15
15
  in replacement for Logger or ActiveSupport::BufferedLogger. Provides support for
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 1.8.10
89
+ rubygems_version: 1.8.25
90
90
  signing_key:
91
91
  specification_version: 3
92
92
  summary: A simple, powerful, and very fast logging utility that can be a drop in replacement