File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
pwd = File . dirname ( __FILE__ )
2
2
$:. unshift pwd
3
3
4
+ # This is a predicate useful for the doc:guides task of applications.
5
+ def bundler?
6
+ # Note that rake sets the cwd to the one that contains the Rakefile
7
+ # being executed.
8
+ File . exists? ( 'Gemfile' )
9
+ end
10
+
4
11
# Loading Action Pack requires rack and erubis.
5
12
require 'rubygems'
6
13
20
27
gem 'RedCloth' , '>= 4.1.1'
21
28
require 'redcloth'
22
29
rescue Gem ::LoadError
23
- $stderr. puts %(Generating Guides requires RedCloth 4.1.1+)
30
+ $stderr. puts ( 'Generating guides requires RedCloth 4.1.1+.' )
31
+ $stderr. puts ( <<ERROR ) if bundler?
32
+ Please add
33
+
34
+ gem 'RedCloth', '>= 4.1.1'
35
+
36
+ to the Gemfile, run
37
+
38
+ bundle install
39
+
40
+ and try again.
41
+ ERROR
42
+
24
43
exit 1
25
44
end
26
45
You can’t perform that action at this time.
0 commit comments