From 1b3e53a86a1481d58c6c43ba3d4d3963a3faa50b Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Mon, 17 Aug 2015 12:43:55 -0700 Subject: [PATCH] Add ctags --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 7 +++++++ Guardfile | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index cd75cc75..746a98ba 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ # ctags tags +gems.tags # bundler state /.bundle diff --git a/Gemfile b/Gemfile index aeffd869..bcc1c730 100644 --- a/Gemfile +++ b/Gemfile @@ -40,6 +40,7 @@ group :development do gem 'rb-fsevent', require: false gem 'rb-inotify', require: false gem 'spring-commands-rspec' + gem 'guard-ctags-bundler' end group :development, :test do gem 'factory_girl_rails' diff --git a/Gemfile.lock b/Gemfile.lock index 72f0fd44..b34f3789 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -114,6 +114,9 @@ GEM guard (~> 2.2) guard-compat (~> 1.1) guard-compat (1.2.0) + guard-ctags-bundler (1.4.0) + guard (>= 2.0) + guard-compat (>= 0.1.0) guard-rails (0.7.0) guard (~> 2.0) guard-rspec (4.5.0) @@ -344,6 +347,7 @@ DEPENDENCIES faker foreman guard-bundler + guard-ctags-bundler guard-rails guard-rspec haml-lint @@ -376,3 +380,6 @@ DEPENDENCIES turbolinks uglifier (>= 1.3.0) upmin-admin + +BUNDLED WITH + 1.10.6 diff --git a/Guardfile b/Guardfile index 8397fe22..5aa6bae0 100644 --- a/Guardfile +++ b/Guardfile @@ -93,3 +93,8 @@ guard :rspec, cmd: "bundle exec spring rspec" do Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance" end end + +guard 'ctags-bundler', src_path: ["app", "lib", "spec/support"], project_file: "tags" do + watch(/^(app|lib|spec\/support)\/.*\.rb$/) + watch('Gemfile.lock') +end