backup 3.7.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eee6bab50e1788fc4d4095ee5dee8fad3f1d5b0c
4
- data.tar.gz: 4c6c6f7cab298371726c8c33faab6e46f0aaa675
3
+ metadata.gz: 93775387e1720ff604cd8bf482de58f704308a53
4
+ data.tar.gz: ee20cb5cba4ec017ed44d47bc26eae7d81a63826
5
5
  SHA512:
6
- metadata.gz: f401dc3a3f4a50747c3f13cc819292a6196f6d0c3913e31d079b2384f7185f7f6348f2202489a0f2341739dc96c7544478ad45ab96c1b2afaee72ddb0a0ca1c4
7
- data.tar.gz: a867d269512d8ca5eb4b19bba111e13555a1a9167d689d7d16da730ddddeaf8d4e7b125571d65298adee9eb56548ac58c79be5b320ee870f69e6233bf05bc841
6
+ metadata.gz: 6dac8ff95f57d05701bc3d877845c9480e8898aba9f158945c7f242fc4cb0ef9a2e3f6b8b6c94c225febd7a6febedb9c33cff5459714ae64df2d29f65663a12a
7
+ data.tar.gz: a37cd8af5be97b41daaa6400e1669add245f0e67ec66a002cbb4e22ff0199d883dea1b8698929dede51c31ad8bfd6a0a3c870da14cc977da35ac16d536c8e7e8
@@ -108,7 +108,7 @@ module Backup
108
108
  def log(message)
109
109
  level = @options.send(message.level)
110
110
  ::Syslog.open(@options.ident, @options.options, @options.facility) do |s|
111
- message.lines.each {|line| s.log(level, line) }
111
+ message.lines.each {|line| s.log(level, '%s', line) }
112
112
  end
113
113
  end
114
114
  end
@@ -273,14 +273,20 @@ module Backup
273
273
 
274
274
  syncers.each(&:perform!)
275
275
 
276
+ rescue Interrupt
277
+ @interrupted = true
278
+ raise
279
+
276
280
  rescue Exception => err
277
281
  @exception = err
278
282
 
279
283
  ensure
280
- set_exit_status
281
- @finished_at = Time.now.utc
282
- log!(:finished)
283
- after_hook
284
+ unless @interrupted
285
+ set_exit_status
286
+ @finished_at = Time.now.utc
287
+ log!(:finished)
288
+ after_hook
289
+ end
284
290
  end
285
291
 
286
292
  ##
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backup
4
- VERSION = '3.7.0'
4
+ VERSION = '3.7.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van Rooijen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-23 00:00:00.000000000 Z
11
+ date: 2013-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder