guard-annotate 0.3.0 → 0.4.0
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.
data/lib/guard/annotate.rb
CHANGED
@@ -57,12 +57,12 @@ module Guard
|
|
57
57
|
def run_annotate
|
58
58
|
UI.info 'Running annotate', :reset => true
|
59
59
|
started_at = Time.now
|
60
|
-
@result = system("annotate #{annotate_tests_flags} -p #{annotation_position}")
|
60
|
+
@result = system("bundle exec annotate #{annotate_tests_flags} -p #{annotation_position}")
|
61
61
|
Notifier::notify( @result, Time.now - started_at ) if notify?
|
62
62
|
|
63
63
|
if annotate_routes?
|
64
64
|
started_at = Time.now
|
65
|
-
@result = system("annotate -r")
|
65
|
+
@result = system("bundle exec annotate -r")
|
66
66
|
Notifier::notify( @result, Time.now - started_at ) if notify?
|
67
67
|
end
|
68
68
|
|
@@ -1,6 +1,11 @@
|
|
1
1
|
guard 'annotate' do
|
2
2
|
watch( 'db/schema.rb' )
|
3
|
+
|
3
4
|
# Uncomment the following line if you also want to run annotate anytime
|
4
5
|
# a model file changes
|
5
6
|
#watch( 'app/models/**/*.rb' )
|
6
|
-
|
7
|
+
|
8
|
+
# Uncomment the following line if you are running routes annotation
|
9
|
+
# with the ":routes => true" option
|
10
|
+
#watch( 'config/routes.rb' )
|
11
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: guard-annotate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.4.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Craig P Jolicoeur
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-07 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|