sappho-basics 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module Sappho
27
27
  def initialize
28
28
  @mutex = Mutex.new
29
29
  filename = ENV['application.log.filename']
30
- @log = Logger.new(filename ? open(filename, 'a') : $stdout)
30
+ @log = Logger.new(filename ? File.open(filename, 'a') : $stdout)
31
31
  level = ENV['application.log.level']
32
32
  @log.level = LOG_LEVELS.has_key?(level) ? LOG_LEVELS[level] : Logger::INFO
33
33
  detail = ENV['application.log.detail']
@@ -37,6 +37,7 @@ module Sappho
37
37
  begin
38
38
  yield mod
39
39
  rescue
40
+ # do nothing here - modules must report if they need to
40
41
  end
41
42
  end
42
43
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Sappho
7
7
  NAME = 'sappho-basics'
8
- VERSION = '0.0.4'
8
+ VERSION = '0.0.5'
9
9
  AUTHORS = ['Andrew Heald']
10
10
  EMAILS = ['andrew@heald.co.uk']
11
11
  HOMEPAGE = 'https://github.com/sappho/sappho-basics/wiki'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sappho-basics
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Heald