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.
@@ -1,14 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-db (0.0.1)
4
+ guard-db (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
+ guard (0.8.0)
10
+ thor (~> 0.14.6)
11
+ thor (0.14.6)
9
12
 
10
13
  PLATFORMS
11
14
  ruby
12
15
 
13
16
  DEPENDENCIES
17
+ guard
14
18
  guard-db!
@@ -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 = ["Papa Pathé SENE"]
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
- # s.add_development_dependency "rspec"
22
+ s.add_development_dependency "guard"
23
23
  # s.add_runtime_dependency "rest-client"
24
24
  end
@@ -27,7 +27,7 @@ module Guard
27
27
  end
28
28
 
29
29
  def run_all
30
- run_db_test_clone
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 watching changes in the database schema"
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
- #@result
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
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Guard
3
3
  module Db
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Papa Pathé SENE
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: