outback 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/outback/configuration.rb +9 -9
  3. metadata +34 -24
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -34,6 +34,15 @@ module Outback
34
34
  self.class.add(self)
35
35
  end
36
36
 
37
+ def valid?
38
+ errors.clear
39
+ return error('no targets specified') if targets.empty?
40
+ moving_targets = targets.select { |t| t.is_a?(DirectoryTarget) && t.move }
41
+ return error('cannot define more than one moving target') if moving_targets.size > 1
42
+ return error('moving target must be defined last') if moving_targets.first && moving_targets.first != targets.last
43
+ true
44
+ end
45
+
37
46
  protected
38
47
 
39
48
  def source(type, *args, &block)
@@ -44,15 +53,6 @@ module Outback
44
53
  "Outback::#{type.to_s.classify}Target".constantize.configure(*args, &block).tap { |instance| targets << instance }
45
54
  end
46
55
 
47
- def valid?
48
- errors.clear
49
- return error('no targets specified') if targets.empty?
50
- moving_targets = targets.select { |t| t.is_a?(DirectoryTarget) && t.move }
51
- return error('cannot define more than one moving target') if moving_targets.size > 1
52
- return error('moving target must be defined last') if moving_targets.first && moving_targets.first != targets.last
53
- true
54
- end
55
-
56
56
  def error(message)
57
57
  errors << ConfigurationError.new(message)
58
58
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-16 00:00:00.000000000 Z
13
+ date: 2013-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: s3
17
- requirement: &2151919700 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2151919700
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: activesupport
28
- requirement: &2151919020 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,7 +38,12 @@ dependencies:
33
38
  version: 3.0.0
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2151919020
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 3.0.0
37
47
  description: A Ruby backup tool
38
48
  email: admin@onrooby.com
39
49
  executables:
@@ -41,29 +51,29 @@ executables:
41
51
  extensions: []
42
52
  extra_rdoc_files: []
43
53
  files:
44
- - lib/outback/archive.rb
45
- - lib/outback/backup.rb
46
- - lib/outback/cli.rb
47
- - lib/outback/configuration.rb
48
- - lib/outback/configuration_error.rb
49
54
  - lib/outback/directory_archive.rb
50
- - lib/outback/directory_source.rb
51
- - lib/outback/directory_target.rb
52
55
  - lib/outback/local_archive.rb
53
- - lib/outback/mysql_source.rb
54
56
  - lib/outback/s3_archive.rb
55
- - lib/outback/s3_target.rb
56
- - lib/outback/source.rb
57
- - lib/outback/support/attr_setter.rb
58
- - lib/outback/support/configurable.rb
57
+ - lib/outback/directory_target.rb
58
+ - lib/outback/mysql_source.rb
59
+ - lib/outback/configuration.rb
60
+ - lib/outback/configuration_error.rb
61
+ - lib/outback/backup.rb
59
62
  - lib/outback/support/mysql_ext.rb
60
- - lib/outback/support/pathname_ext.rb
61
63
  - lib/outback/support/returning.rb
62
- - lib/outback/target.rb
63
- - lib/outback/temp_archive.rb
64
- - lib/outback/vendor/metaclass.rb
65
- - lib/outback/vendor/methodphitamine.rb
64
+ - lib/outback/support/pathname_ext.rb
65
+ - lib/outback/support/attr_setter.rb
66
+ - lib/outback/support/configurable.rb
67
+ - lib/outback/cli.rb
68
+ - lib/outback/archive.rb
69
+ - lib/outback/source.rb
70
+ - lib/outback/directory_source.rb
66
71
  - lib/outback/vendor/mysql.rb
72
+ - lib/outback/vendor/methodphitamine.rb
73
+ - lib/outback/vendor/metaclass.rb
74
+ - lib/outback/temp_archive.rb
75
+ - lib/outback/s3_target.rb
76
+ - lib/outback/target.rb
67
77
  - lib/outback.rb
68
78
  - bin/outback
69
79
  - MIT-LICENSE
@@ -90,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
100
  version: '0'
91
101
  requirements: []
92
102
  rubyforge_project:
93
- rubygems_version: 1.8.11
103
+ rubygems_version: 1.8.23
94
104
  signing_key:
95
105
  specification_version: 3
96
106
  summary: Ruby Backup Tool