guard-railstestdb 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,51 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+
4
+ module Guard
5
+
6
+ class Railstestdb < Guard
7
+
8
+ # Initialize a Guard.
9
+ # @param [Array<Guard::Watcher>] watchers the Guard file watchers
10
+ # @param [Hash] options the custom Guard options
11
+ def initialize(watchers = [], options = {})
12
+ super
13
+ end
14
+
15
+ # Call once when Guard starts. Please override initialize method to init stuff.
16
+ # @raise [:task_has_failed] when start has failed
17
+ def start
18
+ end
19
+
20
+ # Called when `stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
21
+ # @raise [:task_has_failed] when stop has failed
22
+ def stop
23
+ end
24
+
25
+ # Called when `reload|r|z + enter` is pressed.
26
+ # This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
27
+ # @raise [:task_has_failed] when reload has failed
28
+ def reload
29
+ end
30
+
31
+ # Called when just `enter` is pressed
32
+ # This method should be principally used for long action like running all specs/tests/...
33
+ # @raise [:task_has_failed] when run_all has failed
34
+ def run_all
35
+ end
36
+
37
+ # Called on file(s) modifications that the Guard watches.
38
+ # @param [Array<String>] paths the changes files or paths
39
+ # @raise [:task_has_failed] when run_on_change has failed
40
+ def run_on_change(paths)
41
+ end
42
+
43
+ # Called on file(s) deletions that the Guard watches.
44
+ # @param [Array<String>] paths the deleted files or paths
45
+ # @raise [:task_has_failed] when run_on_change has failed
46
+ def run_on_deletion(paths)
47
+ end
48
+
49
+ end
50
+
51
+ end
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module RailstestdbVersion
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-railstestdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Leon Miller-Out
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-05 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: guard-rake
16
+ requirement: &2156185340 !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: *2156185340
25
+ description: Guard extension that automatically migrates your test database.
26
+ email:
27
+ - leon@singlebrook.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - lib/guard/railstestdb/version.rb
33
+ - lib/guard/railstestdb.rb
34
+ homepage: https://github.com/singlebrook/guard-railstestdb
35
+ licenses: []
36
+ post_install_message:
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubyforge_project:
54
+ rubygems_version: 1.8.10
55
+ signing_key:
56
+ specification_version: 3
57
+ summary: Guard extension that automatically migrates your test database.
58
+ test_files: []