sweety_backy 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  .rvmrc
2
2
  *.gem
3
3
  .bundle
4
- Gemfile.lock
5
4
  pkg/*
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source "http://rubygems.org"
1
+ source :rubygems
2
2
  gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,27 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ sweety_backy (0.0.13)
5
+ s3
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ chronic (0.6.2)
11
+ delorean (1.1.0)
12
+ chronic
13
+ mocha (0.9.12)
14
+ proxies (0.2.1)
15
+ rake (0.9.2)
16
+ s3 (0.3.8)
17
+ proxies (~> 0.2.0)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ bundler (>= 1.0.0.rc.6)
24
+ delorean
25
+ mocha
26
+ rake
27
+ sweety_backy!
@@ -79,10 +79,17 @@ module SweetyBacky
79
79
  end
80
80
 
81
81
  def self.do_md5( path, md5_path )
82
- digest = Digest::MD5.hexdigest( File.read( path ) )
83
- File.open( md5_path, 'w' ) { |f| f.write digest }
82
+ digest = Digest::MD5.new();
84
83
 
85
- return digest
84
+ File.open( path, 'r' ) do |f|
85
+ f.each_line { |line| digest << line }
86
+ end
87
+
88
+ result = digest.hexdigest
89
+
90
+ File.open( md5_path, 'w' ) { |f| f.write result }
91
+
92
+ return result
86
93
  end
87
94
  end
88
95
  end
@@ -1,3 +1,3 @@
1
1
  module SweetyBacky
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.15"
3
3
  end
data/sweety_backy.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_development_dependency "bundler", ">= 1.0.0.rc.6"
17
17
  s.add_development_dependency "mocha"
18
18
  s.add_development_dependency "delorean"
19
+ s.add_development_dependency "rake"
19
20
 
20
21
  s.add_dependency "s3"
21
22
 
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: 5
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 15
10
+ version: 0.0.15
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-08-13 00:00:00 +02:00
18
+ date: 2011-08-22 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -65,7 +65,7 @@ dependencies:
65
65
  type: :development
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- name: s3
68
+ name: rake
69
69
  prerelease: false
70
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
@@ -76,8 +76,22 @@ dependencies:
76
76
  segments:
77
77
  - 0
78
78
  version: "0"
79
- type: :runtime
79
+ type: :development
80
80
  version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: s3
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ type: :runtime
94
+ version_requirements: *id005
81
95
  description: Simple mechanism to configure and execute backups of folders and MySQL DBs and store them in local folder or S3 bucket
82
96
  email:
83
97
  - fguillen.mail@gmail.com
@@ -91,6 +105,7 @@ files:
91
105
  - .gitignore
92
106
  - .rvmrc_example
93
107
  - Gemfile
108
+ - Gemfile.lock
94
109
  - README.md
95
110
  - Rakefile
96
111
  - bin/sweety_backy