guard-db 0.0.2 → 0.0.3
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.
- data/Gemfile.lock +5 -1
- data/guard-db.gemspec +2 -2
- data/lib/guard/db.rb +6 -5
- data/lib/guard/db/version.rb +1 -1
- metadata +14 -3
data/Gemfile.lock
CHANGED
data/guard-db.gemspec
CHANGED
@@ -5,7 +5,7 @@ require "guard/db/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "guard-db"
|
7
7
|
s.version = Guard::Db::VERSION
|
8
|
-
s.authors = ["
|
8
|
+
s.authors = ["Xarala"]
|
9
9
|
s.email = ["pathe.sene@xarala.sn"]
|
10
10
|
s.homepage = ""
|
11
11
|
s.summary = %q{GuarDb: is a guard extension handling the rake db:clone:test when schema.rb changes}
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
# specify any dependencies here; for example:
|
22
|
-
|
22
|
+
s.add_development_dependency "guard"
|
23
23
|
# s.add_runtime_dependency "rest-client"
|
24
24
|
end
|
data/lib/guard/db.rb
CHANGED
@@ -27,7 +27,7 @@ module Guard
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def run_all
|
30
|
-
|
30
|
+
rugem pus n_db_test_clone
|
31
31
|
end
|
32
32
|
|
33
33
|
def run_on_change(paths)
|
@@ -43,12 +43,13 @@ module Guard
|
|
43
43
|
private
|
44
44
|
|
45
45
|
def run_db_test_clone
|
46
|
-
UI.info "Guard::Db is
|
46
|
+
UI.info "Guard::Db is running rake db:test:clone"
|
47
47
|
started_at = Time.now
|
48
48
|
@result = system("bundle exec rake db:test:clone")
|
49
|
-
#::Guard::Notifier.notify( @result, :title => 'Cloned current schema in test db' ) #if notify?
|
50
|
-
|
51
|
-
|
49
|
+
#::Guard::Notifier.notify( @result, :title => 'Cloned current schema in test db' ) #if notify?
|
50
|
+
ended_at = Time.now
|
51
|
+
UI.info "rake db:test:clone done in #{Time.now - started_at} seconds"
|
52
|
+
@result
|
52
53
|
end
|
53
54
|
|
54
55
|
end
|
data/lib/guard/db/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Xarala
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2011-10-07 00:00:00.000000000Z
|
13
|
-
dependencies:
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: guard
|
16
|
+
requirement: &14327320 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *14327320
|
14
25
|
description: ! 'GuarDb: is a guard extension handling the rake db:clone:test when
|
15
26
|
schema.rb changes'
|
16
27
|
email:
|