gat 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
- == 0.2.11 2010-03-22
1
+ == 0.2.12 2010-03-30
2
+ * Bugfix release
3
+ * Fix bug at get_reference_backups. Condition was name.include?('1.dar') so xxx.11.dar was also include. change to .include?('.1.dar')
4
+ * Changed some syntax that doesnt work with ruby <= 1.8.7
5
+
6
+ == 0.2.11 2010-03-23
2
7
  * Bugfix release
3
8
  * Bug in reinterpreter_output_and_error was wrong and cutted up to last line whole ouput
4
9
  * set_backups_to_delete crashed when no system backups must be deleted
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Gat
19
19
 
20
- VERSION = '0.2.11'
20
+ VERSION = '0.2.12'
21
21
 
22
22
  end
@@ -254,10 +254,10 @@ class GatgetDarBackup < Gat::Base
254
254
  backups_folder = get_dependence_value("folders", "backups_folder_data_local")
255
255
 
256
256
  # get all complete folders backups, in reverse order, olders as first
257
- complete_backup_folders = SystemBackup.find(:all, backups_folder, { :type => 'complet' }).map(&:folder).sort.reverse || []
257
+ complete_backup_folders = SystemBackup.find(:all, backups_folder, { :type => 'complet' }).map{|f| f.folder}.sort.reverse || []
258
258
 
259
259
  if complete_backup_folders.any?
260
- delete_complete_folders = complete_backup_folders[number_stored_backups..complete_backup_folders.count] || []
260
+ delete_complete_folders = complete_backup_folders[number_stored_backups..complete_backup_folders.size] || []
261
261
  set_dependence_variable("backup_folders_to_delete", delete_complete_folders)
262
262
  set_flag("delete_system_backups_if_any", delete_complete_folders.any?)
263
263
  else
@@ -125,7 +125,7 @@ class SystemBackup
125
125
 
126
126
  # reference file is the first slice of backup. No isolate, no dump
127
127
  def self.is_reference_backup_file?(name)
128
- name.include?('1.dar') and not name.include?('_isolate') and not name.include?('_dump')
128
+ name.include?('.1.dar') and not name.include?('_isolate') and not name.include?('_dump')
129
129
  end
130
130
 
131
131
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - gnoxys
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-22 00:00:00 +01:00
12
+ date: 2010-04-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency