sweety_backy 0.0.11 → 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.
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in sweety_backy.gemspec
4
2
  gemspec
@@ -46,7 +46,6 @@ module SweetyBacky
46
46
  md5_path = "#{backup_path}.md5"
47
47
 
48
48
  begin
49
-
50
49
  SweetyBacky::Commander.do_files_backup( path, backup_path )
51
50
  SweetyBacky::Commander.do_md5( backup_path, md5_path )
52
51
 
@@ -132,7 +131,7 @@ module SweetyBacky
132
131
  )
133
132
 
134
133
  SweetyBacky::S3.upload(
135
- backup_path,
134
+ md5_path,
136
135
  "#{@opts[:s3_opts][:path]}/databases/#{File.basename( md5_path )}",
137
136
  @opts[:s3_opts]
138
137
  )
@@ -1,3 +1,3 @@
1
1
  module SweetyBacky
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/sweety_backy.rb CHANGED
@@ -1,5 +1,10 @@
1
- require 'rubygems'
2
- require "s3"
1
+ begin
2
+ require 's3'
3
+ rescue LoadError
4
+ require 'rubygems'
5
+ require 's3'
6
+ end
7
+
3
8
  require 'digest/md5'
4
9
 
5
10
  require "#{File.dirname(__FILE__)}/sweety_backy/version"
data/sweety_backy.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "sweety_backy"
3
+ require "sweety_backy/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "sweety_backy"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sweety_backy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Fernando Guillen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-20 00:00:00 +02:00
18
+ date: 2011-08-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency