db2fog 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/HISTORY +3 -0
  2. data/README.rdoc +4 -4
  3. data/lib/db2fog.rb +1 -3
  4. metadata +12 -14
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ v0.4.2 (24th July 2011)
2
+ - fixed recording of most recent backup
3
+ - remove runtime dependency on mysql2
1
4
  v0.4.1 (23rd July 2011)
2
5
  - fixed cleaning of old backups
3
6
  v0.4.0 (22nd July 2011)
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@ A rails plugin to backup Mysql to a cloud storage provider. You're looking at
4
4
  a monthly spend of four cents. So pony up you cheap bastard, and store your
5
5
  backups offsite.
6
6
 
7
- A grandfather style system to decide what backups to keep copies of:
7
+ A grandfather style system is decides what backups to keep copies of:
8
8
 
9
9
  * all backups from the past 24 hours
10
10
  * one backup per day for the past week
@@ -68,7 +68,7 @@ providers they should work with just a config change to Db2Fog.
68
68
  This is pure so ruby should run on most ruby VMs. I develop on MRI 1.9.2.
69
69
 
70
70
  This will only work work with rails 3. Supporting earlier versions is more
71
- complication than I can handle at the moment.
71
+ complication than I feel like handling at the moment.
72
72
 
73
73
  == Development
74
74
 
@@ -77,8 +77,8 @@ Specs are really weak. This code is bit hackish but is being used by quite a few
77
77
  == Kudos
78
78
 
79
79
  This is a fork of Xavier Shay's db2s3 gem. It worked perfectly, but only
80
- supported Amazon S3. By switching the dependency to using fog this now
81
- supports multiple storage providers.
80
+ supported Amazon S3 within US-east. By switching the dependency to using fog
81
+ this now supports all S3 regions and multiple storage providers
82
82
 
83
83
  Xavier's original gem is available at https://github.com/xaviershay/db2s3
84
84
 
data/lib/db2fog.rb CHANGED
@@ -110,9 +110,7 @@ class DB2Fog
110
110
  class FogStore
111
111
 
112
112
  def store(remote_filename, io)
113
- unless directory.files.head(remote_filename)
114
- directory.files.create(:key => remote_filename, :body => io, :public => false)
115
- end
113
+ directory.files.create(:key => remote_filename, :body => io, :public => false)
116
114
  end
117
115
 
118
116
  def fetch(remote_filename)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Healy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-23 00:00:00 +10:00
17
+ date: 2011-07-24 00:00:00 +10:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,7 @@ dependencies:
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency
49
- name: mysql2
49
+ name: fog
50
50
  prerelease: false
51
51
  requirement: &id003 !ruby/object:Gem::Requirement
52
52
  none: false
@@ -55,28 +55,26 @@ dependencies:
55
55
  - !ruby/object:Gem::Version
56
56
  segments:
57
57
  - 0
58
- - 2
58
+ - 9
59
59
  - 0
60
- version: 0.2.0
60
+ version: 0.9.0
61
61
  type: :runtime
62
62
  version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency
64
- name: fog
64
+ name: rake
65
65
  prerelease: false
66
66
  requirement: &id004 !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements:
69
- - - ~>
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  segments:
72
72
  - 0
73
- - 9
74
- - 0
75
- version: 0.9.0
76
- type: :runtime
73
+ version: "0"
74
+ type: :development
77
75
  version_requirements: *id004
78
76
  - !ruby/object:Gem::Dependency
79
- name: rake
77
+ name: mysql2
80
78
  prerelease: false
81
79
  requirement: &id005 !ruby/object:Gem::Requirement
82
80
  none: false
@@ -117,7 +115,7 @@ dependencies:
117
115
  version: 0.3.5
118
116
  type: :development
119
117
  version_requirements: *id007
120
- description: db2fig provides rake tasks for backing up and restoring your DB to cloud storage providers
118
+ description: db2fog provides rake tasks for backing up and restoring your DB to cloud storage providers
121
119
  email:
122
120
  - james@yob.id.au
123
121
  executables: []