rehabilitate 0.3.16 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ .DS_Store
2
+ test*
3
+ moo
4
+ *.swp
5
+ pkg
6
+ /.rvmrc
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'echoe', '4.3.1'
4
- gem 'commander', '4.0.3'
5
- gem 'pluginfactory', '1.0.7'
6
- gem 'log4r', '1.1.8'
7
- gem 'net-ssh', '2.0.23'
8
- gem 'net-scp', '1.0.4'
9
- gem 'fog', '0.3.25'
10
- gem 'excon', '0.4.0'
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,47 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rehabilitate (0.4.0)
5
+ commander
6
+ fog
7
+ log4r
8
+ net-scp
9
+ net-ssh
10
+ pluginfactory
11
+ rehabilitate
12
+
1
13
  GEM
2
14
  remote: http://rubygems.org/
3
15
  specs:
4
16
  builder (3.0.0)
5
17
  commander (4.0.3)
6
18
  highline (>= 1.5.0)
7
- echoe (4.3.1)
8
- gemcutter
9
- rubyforge
10
- excon (0.4.0)
11
- fog (0.3.25)
19
+ excon (0.5.6)
20
+ fog (0.6.0)
12
21
  builder
13
- excon (>= 0.2.4)
22
+ excon (>= 0.5.5)
14
23
  formatador (>= 0.0.16)
15
24
  json
16
25
  mime-types
17
- net-ssh (~> 2.0.23)
18
- nokogiri (~> 1.4.3.1)
26
+ net-ssh (>= 2.0.23)
27
+ nokogiri (>= 1.4.4)
19
28
  ruby-hmac
20
29
  formatador (0.0.16)
21
- gemcutter (0.6.1)
22
30
  highline (1.6.1)
23
31
  json (1.5.1)
24
- json_pure (1.5.1)
25
32
  log4r (1.1.8)
26
33
  mime-types (1.16)
27
34
  net-scp (1.0.4)
28
35
  net-ssh (>= 1.99.1)
29
36
  net-ssh (2.0.23)
30
- nokogiri (1.4.3.1)
37
+ nokogiri (1.4.4)
31
38
  pluginfactory (1.0.7)
32
39
  ruby-hmac (0.4.0)
33
- rubyforge (2.0.4)
34
- json_pure (>= 1.1.7)
35
40
 
36
41
  PLATFORMS
37
42
  ruby
38
43
 
39
44
  DEPENDENCIES
40
- commander (= 4.0.3)
41
- echoe (= 4.3.1)
42
- excon (= 0.4.0)
43
- fog (= 0.3.25)
44
- log4r (= 1.1.8)
45
- net-scp (= 1.0.4)
46
- net-ssh (= 2.0.23)
47
- pluginfactory (= 1.0.7)
45
+ rehabilitate!
data/Manifest CHANGED
@@ -11,4 +11,5 @@ lib/rehabilitate/plugins/postgresql.rb
11
11
  lib/rehabilitate/plugins/s3.rb
12
12
  lib/rehabilitate/plugins/scp.rb
13
13
  lib/rehabilitate/plugins/splitter.rb
14
+ lib/rehabilitate/version.rb
14
15
  rehabilitate.gemspec
data/Rakefile CHANGED
@@ -1,23 +1,2 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'echoe'
4
- require 'lib/rehabilitate.rb'
5
-
6
- Echoe.new('rehabilitate', Rehabilitate::VERSION) do |p|
7
- p.description = "Backup stuff"
8
- p.url = "https://github.com/fearoffish/rehabilitate"
9
- p.author = "Jamie van Dyke"
10
- p.email = "jamie@fearoffish.com"
11
- p.ignore_pattern = ["tmp/*", "script/*", "testing/*"]
12
- p.development_dependencies = []
13
- p.runtime_dependencies = [
14
- 'commander ~>4.0.3',
15
- 'pluginfactory ~>1.0.7',
16
- 'log4r ~>1.1.8',
17
- 'net-ssh ~>2.0.23',
18
- 'net-scp ~>1.0.4',
19
- 'fog ~>0.3.25',
20
- 'excon ~>0.4.0' ]
21
- end
22
-
23
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/bin/rehabilitate CHANGED
@@ -12,7 +12,6 @@
12
12
  #
13
13
  # example: rehabilitate save --driver postgresql --type scp --location user:pass@ftp.example.com
14
14
 
15
- require "rubygems"
16
15
  require "bundler/setup"
17
16
 
18
17
  $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
data/lib/rehabilitate.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  require 'rehabilitate/plugin'
2
2
  require 'rehabilitate/plugins/splitter'
3
3
 
4
- class Rehabilitate
5
- VERSION = "0.3.16"
6
-
4
+ class Rehabilitate
7
5
  def self.backup(options)
8
6
  driver = Plugin::create( options.driver )
9
7
  driver.backup(options)
data/rehabilitate.gemspec CHANGED
@@ -1,52 +1,29 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "rehabilitate/version"
2
4
 
3
5
  Gem::Specification.new do |s|
4
- s.name = %q{rehabilitate}
5
- s.version = "0.3.16"
6
+ s.name = "rehabilitate"
7
+ s.version = Rehabilitate::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jamie van Dyke"]
10
+ s.email = ["jamie@fearoffish.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Handle backups with a plugin based architecture}
13
+ s.description = %q{Handle backups with a plugin based architecture}
6
14
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Jamie van Dyke"]
9
- s.date = %q{2011-01-26}
10
- s.default_executable = %q{rehabilitate}
11
- s.description = %q{Backup stuff}
12
- s.email = %q{jamie@fearoffish.com}
13
- s.executables = ["rehabilitate"]
14
- s.extra_rdoc_files = ["README.mdown", "bin/rehabilitate", "lib/rehabilitate.rb", "lib/rehabilitate/plugin.rb", "lib/rehabilitate/plugins/lzop.rb", "lib/rehabilitate/plugins/postgresql.rb", "lib/rehabilitate/plugins/s3.rb", "lib/rehabilitate/plugins/scp.rb", "lib/rehabilitate/plugins/splitter.rb"]
15
- s.files = ["Gemfile", "Gemfile.lock", "Manifest", "README.mdown", "Rakefile", "bin/rehabilitate", "lib/rehabilitate.rb", "lib/rehabilitate/plugin.rb", "lib/rehabilitate/plugins/lzop.rb", "lib/rehabilitate/plugins/postgresql.rb", "lib/rehabilitate/plugins/s3.rb", "lib/rehabilitate/plugins/scp.rb", "lib/rehabilitate/plugins/splitter.rb", "rehabilitate.gemspec"]
16
- s.homepage = %q{https://github.com/fearoffish/rehabilitate}
17
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rehabilitate", "--main", "README.mdown"]
18
- s.require_paths = ["lib"]
19
- s.rubyforge_project = %q{rehabilitate}
20
- s.rubygems_version = %q{1.4.1}
21
- s.summary = %q{Backup stuff}
15
+ s.rubyforge_project = "rehabilitate"
22
16
 
23
- if s.respond_to? :specification_version then
24
- s.specification_version = 3
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
25
21
 
26
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<commander>, ["~> 4.0.3"])
28
- s.add_runtime_dependency(%q<pluginfactory>, ["~> 1.0.7"])
29
- s.add_runtime_dependency(%q<log4r>, ["~> 1.1.8"])
30
- s.add_runtime_dependency(%q<net-ssh>, ["~> 2.0.23"])
31
- s.add_runtime_dependency(%q<net-scp>, ["~> 1.0.4"])
32
- s.add_runtime_dependency(%q<fog>, ["~> 0.3.25"])
33
- s.add_runtime_dependency(%q<excon>, ["~> 0.4.0"])
34
- else
35
- s.add_dependency(%q<commander>, ["~> 4.0.3"])
36
- s.add_dependency(%q<pluginfactory>, ["~> 1.0.7"])
37
- s.add_dependency(%q<log4r>, ["~> 1.1.8"])
38
- s.add_dependency(%q<net-ssh>, ["~> 2.0.23"])
39
- s.add_dependency(%q<net-scp>, ["~> 1.0.4"])
40
- s.add_dependency(%q<fog>, ["~> 0.3.25"])
41
- s.add_dependency(%q<excon>, ["~> 0.4.0"])
42
- end
43
- else
44
- s.add_dependency(%q<commander>, ["~> 4.0.3"])
45
- s.add_dependency(%q<pluginfactory>, ["~> 1.0.7"])
46
- s.add_dependency(%q<log4r>, ["~> 1.1.8"])
47
- s.add_dependency(%q<net-ssh>, ["~> 2.0.23"])
48
- s.add_dependency(%q<net-scp>, ["~> 1.0.4"])
49
- s.add_dependency(%q<fog>, ["~> 0.3.25"])
50
- s.add_dependency(%q<excon>, ["~> 0.4.0"])
51
- end
52
- end
22
+ s.add_runtime_dependency "rehabilitate"
23
+ s.add_dependency("commander")
24
+ s.add_dependency("pluginfactory")
25
+ s.add_dependency("log4r")
26
+ s.add_dependency("net-ssh")
27
+ s.add_dependency("net-scp")
28
+ s.add_dependency("fog")
29
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rehabilitate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 16
10
- version: 0.3.16
5
+ version: 0.4.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - Jamie van Dyke
@@ -15,138 +10,98 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-01-26 00:00:00 +00:00
13
+ date: 2011-03-09 00:00:00 +00:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
22
- name: commander
17
+ name: rehabilitate
23
18
  prerelease: false
24
19
  requirement: &id001 !ruby/object:Gem::Requirement
25
20
  none: false
26
21
  requirements:
27
- - - ~>
22
+ - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 57
30
- segments:
31
- - 4
32
- - 0
33
- - 3
34
- version: 4.0.3
24
+ version: "0"
35
25
  type: :runtime
36
26
  version_requirements: *id001
37
27
  - !ruby/object:Gem::Dependency
38
- name: pluginfactory
28
+ name: commander
39
29
  prerelease: false
40
30
  requirement: &id002 !ruby/object:Gem::Requirement
41
31
  none: false
42
32
  requirements:
43
- - - ~>
33
+ - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 25
46
- segments:
47
- - 1
48
- - 0
49
- - 7
50
- version: 1.0.7
35
+ version: "0"
51
36
  type: :runtime
52
37
  version_requirements: *id002
53
38
  - !ruby/object:Gem::Dependency
54
- name: log4r
39
+ name: pluginfactory
55
40
  prerelease: false
56
41
  requirement: &id003 !ruby/object:Gem::Requirement
57
42
  none: false
58
43
  requirements:
59
- - - ~>
44
+ - - ">="
60
45
  - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 1
64
- - 1
65
- - 8
66
- version: 1.1.8
46
+ version: "0"
67
47
  type: :runtime
68
48
  version_requirements: *id003
69
49
  - !ruby/object:Gem::Dependency
70
- name: net-ssh
50
+ name: log4r
71
51
  prerelease: false
72
52
  requirement: &id004 !ruby/object:Gem::Requirement
73
53
  none: false
74
54
  requirements:
75
- - - ~>
55
+ - - ">="
76
56
  - !ruby/object:Gem::Version
77
- hash: 33
78
- segments:
79
- - 2
80
- - 0
81
- - 23
82
- version: 2.0.23
57
+ version: "0"
83
58
  type: :runtime
84
59
  version_requirements: *id004
85
60
  - !ruby/object:Gem::Dependency
86
- name: net-scp
61
+ name: net-ssh
87
62
  prerelease: false
88
63
  requirement: &id005 !ruby/object:Gem::Requirement
89
64
  none: false
90
65
  requirements:
91
- - - ~>
66
+ - - ">="
92
67
  - !ruby/object:Gem::Version
93
- hash: 31
94
- segments:
95
- - 1
96
- - 0
97
- - 4
98
- version: 1.0.4
68
+ version: "0"
99
69
  type: :runtime
100
70
  version_requirements: *id005
101
71
  - !ruby/object:Gem::Dependency
102
- name: fog
72
+ name: net-scp
103
73
  prerelease: false
104
74
  requirement: &id006 !ruby/object:Gem::Requirement
105
75
  none: false
106
76
  requirements:
107
- - - ~>
77
+ - - ">="
108
78
  - !ruby/object:Gem::Version
109
- hash: 33
110
- segments:
111
- - 0
112
- - 3
113
- - 25
114
- version: 0.3.25
79
+ version: "0"
115
80
  type: :runtime
116
81
  version_requirements: *id006
117
82
  - !ruby/object:Gem::Dependency
118
- name: excon
83
+ name: fog
119
84
  prerelease: false
120
85
  requirement: &id007 !ruby/object:Gem::Requirement
121
86
  none: false
122
87
  requirements:
123
- - - ~>
88
+ - - ">="
124
89
  - !ruby/object:Gem::Version
125
- hash: 15
126
- segments:
127
- - 0
128
- - 4
129
- - 0
130
- version: 0.4.0
90
+ version: "0"
131
91
  type: :runtime
132
92
  version_requirements: *id007
133
- description: Backup stuff
134
- email: jamie@fearoffish.com
93
+ description: Handle backups with a plugin based architecture
94
+ email:
95
+ - jamie@fearoffish.com
135
96
  executables:
136
97
  - rehabilitate
137
98
  extensions: []
138
99
 
139
- extra_rdoc_files:
140
- - README.mdown
141
- - bin/rehabilitate
142
- - lib/rehabilitate.rb
143
- - lib/rehabilitate/plugin.rb
144
- - lib/rehabilitate/plugins/lzop.rb
145
- - lib/rehabilitate/plugins/postgresql.rb
146
- - lib/rehabilitate/plugins/s3.rb
147
- - lib/rehabilitate/plugins/scp.rb
148
- - lib/rehabilitate/plugins/splitter.rb
100
+ extra_rdoc_files: []
101
+
149
102
  files:
103
+ - .bundle/config
104
+ - .gitignore
150
105
  - Gemfile
151
106
  - Gemfile.lock
152
107
  - Manifest
@@ -162,17 +117,12 @@ files:
162
117
  - lib/rehabilitate/plugins/splitter.rb
163
118
  - rehabilitate.gemspec
164
119
  has_rdoc: true
165
- homepage: https://github.com/fearoffish/rehabilitate
120
+ homepage: ""
166
121
  licenses: []
167
122
 
168
123
  post_install_message:
169
- rdoc_options:
170
- - --line-numbers
171
- - --inline-source
172
- - --title
173
- - Rehabilitate
174
- - --main
175
- - README.mdown
124
+ rdoc_options: []
125
+
176
126
  require_paths:
177
127
  - lib
178
128
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -180,26 +130,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
130
  requirements:
181
131
  - - ">="
182
132
  - !ruby/object:Gem::Version
183
- hash: 3
184
- segments:
185
- - 0
186
133
  version: "0"
187
134
  required_rubygems_version: !ruby/object:Gem::Requirement
188
135
  none: false
189
136
  requirements:
190
137
  - - ">="
191
138
  - !ruby/object:Gem::Version
192
- hash: 11
193
- segments:
194
- - 1
195
- - 2
196
- version: "1.2"
139
+ version: "0"
197
140
  requirements: []
198
141
 
199
142
  rubyforge_project: rehabilitate
200
- rubygems_version: 1.4.1
143
+ rubygems_version: 1.5.0
201
144
  signing_key:
202
145
  specification_version: 3
203
- summary: Backup stuff
146
+ summary: Handle backups with a plugin based architecture
204
147
  test_files: []
205
148