s3-mysql-backup 1.2.1 → 1.2.2

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/README.md +3 -2
  2. data/lib/s3_mysql_backup.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -84,8 +84,9 @@ Write tests
84
84
 
85
85
 
86
86
  ## Changelog
87
- - 2013-06-01 Added mysql host option (github.com/sagrimson)
88
- - 2013-05-30 Added support for S3-compatible services, e.g. DreamObjects (thanks to John N. Milner - github.com/jnm)
87
+ - 2013-06-01 1.2.2 Bugfix for passwords with spaces
88
+ - 2013-06-01 1.2.1 Added mysql host option (github.com/sagrimson)
89
+ - 2013-05-30 1.1.0 Added support for S3-compatible services, e.g. DreamObjects (thanks to John N. Milner - github.com/jnm)
89
90
 
90
91
  ## Credits
91
92
 
@@ -41,7 +41,7 @@ class S3MysqlBackup
41
41
  def dump_db
42
42
  filename = Time.now.strftime("#{@backup_dir}/#{@db_name}.%Y%m%d.%H%M%S.sql.gz")
43
43
  mysqldump = `which mysqldump`.to_s.strip
44
- `#{mysqldump} --host=#{config['dump_host']} --user=#{config['dump_user']} --password=#{config['dump_pass']} #{@db_name} | gzip > #{filename}`
44
+ `#{mysqldump} --host='#{config['dump_host']}' --user='#{config['dump_user']}' --password='#{config['dump_pass']}' '#{@db_name}' | gzip > #{filename}`
45
45
  @s3utils.store(filename)
46
46
  filename
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3-mysql-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: