capistrano-database 0.0.7 → 0.0.8

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.
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = 'capistrano-database'
15
15
  gem.require_paths = ['lib']
16
- gem.version = '0.0.7'
16
+ gem.version = '0.0.8'
17
17
 
18
18
  # Runtime dependencies
19
19
  gem.add_dependency 'rake'
@@ -120,7 +120,8 @@ Capistrano::Configuration.instance(:must_exist).load do
120
120
 
121
121
  desc '[internal] Download the db backup file'
122
122
  task :download_backup, :roles => :db do
123
- fn = "#{arguments(false).first || random_tmp_file}.bz2"
123
+ fn = "#{arguments(false).first || random_tmp_file}"
124
+ fn << '.sql.bz2' unless fn =~ /\A.*\.sql\.bz2\Z/
124
125
  on_rollback { `rm -f #{fn}` }
125
126
  download "#{fetch :latest_backup}", fn
126
127
  logger.important "The backup has been downloaded to #{fn}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-01 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -2396939127496502971
81
+ hash: -1287483295557392489
82
82
  requirements: []
83
83
  rubyforge_project:
84
84
  rubygems_version: 1.8.23