rails_db_dump 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,10 @@ namespace :db do
47
47
  desc "Restore the database from standard input."
48
48
  task :restore do
49
49
  # Doesn't get any simpler than that!
50
- exec File.join(Rails.root, 'script', 'dbconsole'), '--include-password'
50
+ if Rails.version > '3'
51
+ exec 'rails', 'dbconsole', '--include-password'
52
+ else
53
+ exec File.join(Rails.root, 'script', 'dbconsole'), '--include-password'
54
+ end
51
55
  end
52
56
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDbDump
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_db_dump
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
4
+ hash: 25
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Leonid Shevtsov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-09 00:00:00 +02:00
18
+ date: 2011-02-22 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements: []
69
69
 
70
70
  rubyforge_project:
71
- rubygems_version: 1.3.7
71
+ rubygems_version: 1.5.2
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: dump your Rails database with a simple rake task