guard-railstestdb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace :db do
|
2
|
+
namespace :test do
|
3
|
+
task :prepare_safely => :environment do
|
4
|
+
# TODO: Make this not use a shell command
|
5
|
+
pending_migrations = %x[rake db:migrate:status | grep -c "^ *down"].to_i
|
6
|
+
if pending_migrations == 0
|
7
|
+
Rake::Task['db:test:prepare'].execute
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-railstestdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,9 +11,20 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2011-10-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: guard
|
16
|
+
requirement: &2156425180 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2156425180
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: guard-rake
|
16
|
-
requirement: &
|
27
|
+
requirement: &2156424700 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ! '>='
|
@@ -21,7 +32,7 @@ dependencies:
|
|
21
32
|
version: '0'
|
22
33
|
type: :runtime
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156424700
|
25
36
|
description: Guard extension that automatically migrates your test database.
|
26
37
|
email:
|
27
38
|
- leon@singlebrook.com
|
@@ -29,8 +40,9 @@ executables: []
|
|
29
40
|
extensions: []
|
30
41
|
extra_rdoc_files: []
|
31
42
|
files:
|
32
|
-
- lib/guard/railstestdb/
|
43
|
+
- lib/guard/railstestdb/templates/Guardfile
|
33
44
|
- lib/guard/railstestdb.rb
|
45
|
+
- lib/tasks/db_test_prepare_safely.rake
|
34
46
|
homepage: https://github.com/singlebrook/guard-railstestdb
|
35
47
|
licenses: []
|
36
48
|
post_install_message:
|