Skip to content
Browse files

initial commit with bare project stub files

  • Loading branch information...
0 parents commit 2fffb05c1a39caf4e268a3d4af4019c6aefedc39 @cpjolicoeur cpjolicoeur committed May 20, 2011
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in guard-annotate.gemspec
+gemspec
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Craig P Jolicoeur
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51 README.rdoc
@@ -0,0 +1,51 @@
+= Guard::Annotate
+
+Annotate guard runs the annotate gem when needed
+
+- Compatible with Annotate 2.4.x
+- Tested on Ruby 1.8.7 & 1.9.2
+
+== Install
+
+Install the gem:
+
+ gem install guard-annotate
+
+Add the gem to your Gemfile:
+ gem 'guard-annotate'
+
+Add guard definitions to your Guardfile by running:
+
+ guard init annotate
+
+
+== Usage
+
+Please read the {Guard usage docs}[https://github.com/guard/guard#readme]
+
+== Guardfile
+
+=== Standard Ruby on Rails project
+
+ guard 'annotate' do
+ watch('app/models/**.rb')
+ end
+
+
+== Options
+
+You can disable desktop notifications with:
+
+ guard 'annotate', :notify => false do
+ ...
+ end
+
+
+== Development
+
+- Source hosed at {GitHub}[https://github.com/cpjolicoeur/guard-annotate]
+- Issue/Bug/Question/Feature requests via {GitHub Issues}[http://github.com/cpjolicoeur/guard-annotate/issues]
+
+== Authors
+
+{Craig P Jolicoeur}[https://github.com/cpjolicoeur]
2 Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
30 guard-annotate.gemspec
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "guard/guard-annotate/version"
+
+Gem::Specification.new do |s|
+ s.name = "guard-annotate"
+ s.version = Guard::Annotate::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Craig P Jolicoeur"]
+ s.email = ["cpjolicoeur@gmail.com"]
+ s.homepage = "http://craigjolicoeur.com"
+ s.summary = %q{Guard gem for annotate}
+ s.description = %q{Guard::Annotate automatically runs the annotate gem when needed}
+
+ s.rubyforge_project = "guard-annotate"
+
+ s.add_dependency 'guard', '>= 0.2.2'
+ s.add_dependency 'annotate', '>= 2.4.0'
+
+ s.add_development_dependency 'rspec', '~> 2.6.0'
+ s.add_development_dependency 'guard-rspec', '~> 0.3.1'
+
+ # 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.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.rdoc]
+ s.require_paths = ["lib"]
+
+ s.rdoc_options = ["--charset=UTF-8", "--main=README.rdoc", "--exclude='(lib|test|spec)|(Gem|Guard|Rake)file'"]
+end
31 lib/guard/guard-annotate.rb
@@ -0,0 +1,31 @@
+require 'guard'
+require 'guard/guard'
+
+module Guard
+ class Annotate < 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
+ end
+end
0 lib/guard/guard-annotate/templates/Guardfile
No changes.
5 lib/guard/guard-annotate/version.rb
@@ -0,0 +1,5 @@
+module Guard
+ module Annotate
+ VERSION = "0.0.1"
+ end
+end

0 comments on commit 2fffb05

Please sign in to comment.
Something went wrong with that request. Please try again.