releaseable 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/releaseable/extensions.rb +5 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.16
1
+ 0.0.17
@@ -46,6 +46,7 @@ class Logger
46
46
 
47
47
  # Execute with timeout and protection from exceptions
48
48
  def with_timeout out=5
49
+ # Something that should be interrupted if it takes too much time...
49
50
  Timeout::timeout(out) { yield }
50
51
  rescue Timeout::Error, Exception => e
51
52
  nil
@@ -102,9 +103,11 @@ class Logger
102
103
  def handler
103
104
  return @handler if @handler
104
105
 
105
- if @handle_fatal_errors
106
+ @handle_init_timeout ||= Time.now
107
+ if @handle_fatal_errors && @handle_init_timeout < Time.now
108
+ @handle_init_timeout = Time.now + 5 * 60 # Retry init in 5 minutes
109
+
106
110
  with_timeout do
107
- # Something that should be interrupted if it takes too much time...
108
111
  @handler = Logglier.new "#{@config[:domain]}/inputs/#{@config[:input]}",
109
112
  :failsafe => @config[:failsafe],
110
113
  :read_timeout => 10, # defaults to 120
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: releaseable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.16
5
+ version: 0.0.17
6
6
  platform: ruby
7
7
  authors:
8
8
  - arvicco
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-16 00:00:00 Z
13
+ date: 2012-02-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -79,7 +79,7 @@ dependencies:
79
79
  type: :development
80
80
  version_requirements: *id006
81
81
  description: Support for non-gem package releases for JRuby (pre-alpha!).
82
- email: arvitallian@gmail.com
82
+ email: arvicco@gmail.com
83
83
  executables: []
84
84
 
85
85
  extensions: []