Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit f9e6658cb9e8d76fc8b9eb4cd8a03dcdfe79de93 @PapePathe PapePathe committed Oct 3, 2011
Showing with 114 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +18 −0 .project
  3. +4 −0 Gemfile
  4. +14 −0 Gemfile.lock
  5. +1 −0 Rakefile
  6. +24 −0 guard-db.gemspec
  7. +43 −0 lib/guard/guard-db.rb
  8. +3 −0 lib/guard/guard-db/templates/Guardfile
  9. +6 −0 lib/guard/guard-db/version.rb
@@ -0,0 +1 @@
+*.gem
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>GuardDatabase</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.aptana.ide.core.unifiedBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.aptana.ruby.core.rubynature</nature>
+ <nature>com.aptana.projects.webnature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in guard-db.gemspec
+gemspec
@@ -0,0 +1,14 @@
+PATH
+ remote: .
+ specs:
+ guard-db (0.0.1)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ guard-db!
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "guard/guard-db/version"
+
+Gem::Specification.new do |s|
+ s.name = "guard-db"
+ s.version = Guard::Db::VERSION
+ s.authors = ["Papa Pathé SENE"]
+ s.email = ["pathe.sene@xarala.sn"]
+ s.homepage = ""
+ s.summary = %q{GuarDb: is a guard extension handling the rake db:clone:test when schema.rb changes}
+ s.description = %q{GuarDb: is a guard extension handling the rake db:clone:test when schema.rb changes}
+
+ s.rubyforge_project = "guard-db"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+end
@@ -0,0 +1,43 @@
+require "guard-db/version"
+
+# encoding: utf-8
+require 'guard'
+require 'guard/guard'
+
+
+module Guard
+
+ class GuardDb < Guard
+
+ def initialize(watchers=[], options={} )
+ super
+ end
+
+ def start
+ true
+ end
+
+ def stop
+ true
+ end
+
+ def reload
+ true
+ end
+
+ def run_all
+ true
+ end
+
+ def run_on_change(paths)
+ true
+ end
+
+ # Called on file(s) deletions
+ def run_on_deletion(paths)
+ true
+ end
+
+ end
+
+end
@@ -0,0 +1,3 @@
+guard 'cucumber' do
+ watch('db/schema.rb') { "database schema" }
+end
@@ -0,0 +1,6 @@
+# encoding: utf-8
+module Guard
+ module Db
+ VERSION = "0.0.1"
+ end
+end

0 comments on commit f9e6658

Please sign in to comment.