keepitsafe 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/keepitsafe.gemspec +1 -1
  3. data/lib/keepitsafe.rb +12 -11
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "keepitsafe"
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darwin"]
@@ -206,12 +206,13 @@ class Keepitsafe
206
206
  @log_buffer = StringIO.new
207
207
 
208
208
  @start_time = Time.now
209
- create_backups_dir
210
- @free_before = free_disk_space
211
- trigger('before_backup')
212
-
213
209
  begin
214
210
  STDCapture.capture(@log_buffer) do
211
+
212
+ create_backups_dir
213
+ @free_before = free_disk_space
214
+ trigger('before_backup')
215
+
215
216
  check_disk_left
216
217
  create_backup_target_dir
217
218
  create_pending_file
@@ -219,6 +220,13 @@ class Keepitsafe
219
220
  yield self
220
221
 
221
222
  remove_pending_file
223
+
224
+ upload_log
225
+
226
+ @end_time = Time.now
227
+ @free_after = free_disk_space
228
+ set_backup_size(backup_target_dir) unless @backup_size
229
+ trigger('after_backup')
222
230
  end
223
231
  rescue StandardError => e
224
232
  @error = e
@@ -232,13 +240,6 @@ class Keepitsafe
232
240
 
233
241
  trigger('on_error',{:error => e})
234
242
  end
235
-
236
- upload_log
237
-
238
- @end_time = Time.now
239
- @free_after = free_disk_space
240
- set_backup_size(backup_target_dir) unless @backup_size
241
- trigger('after_backup')
242
243
  end
243
244
 
244
245
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keepitsafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -242,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: '0'
243
243
  segments:
244
244
  - 0
245
- hash: -2292570467653710082
245
+ hash: 2548611139145139548
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  none: false
248
248
  requirements: