walrus 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/walrus CHANGED
@@ -36,11 +36,11 @@ module Walrus
36
36
 
37
37
  If you are trying to run Walrus but have not yet installed it, it may be that
38
38
  Ruby cannot find the Walrus files. You can help Ruby to find the Walrus "lib"
39
- and "ext" directories by adding them to the RUBYLIB environment variable. For
40
- example, you could do the following if you are using the Bash shell,
41
- substituting absolute paths for "lib" and "ext":
39
+ directory by adding it to the RUBYLIB environment variable. For example, you
40
+ could do the following if you are using the Bash shell, substituting the
41
+ absolute path for "lib":
42
42
 
43
- export RUBYLIB="${RUBYLIB}:lib:ext"
43
+ export RUBYLIB="${RUBYLIB}:lib"
44
44
 
45
45
  HERE
46
46
  exit EXIT_LOAD_ERROR
@@ -40,8 +40,8 @@ module Walrus
40
40
  @options = OpenStruct.new
41
41
  @options.output_dir = nil
42
42
  @options.input_extension = 'tmpl'
43
- @options.output_extension = 'html'
44
- @options.recurse = false
43
+ @options.output_extension = ''
44
+ @options.recurse = true
45
45
  @options.backup = true
46
46
  @options.force = false
47
47
  @options.debug = false
@@ -83,7 +83,7 @@ module Walrus
83
83
  @options.input_extension = opt
84
84
  end
85
85
 
86
- o.on('-e', '--output-extension EXT', 'Extension for output file(s) (when filling)', 'default: html') do |opt|
86
+ o.on('-e', '--output-extension EXT', 'Extension for output file(s) (when filling)', 'default: none') do |opt|
87
87
  @options.output_extension = opt
88
88
  end
89
89
 
@@ -353,7 +353,8 @@ module Walrus
353
353
  end
354
354
  end
355
355
 
356
- # If the user supplied the "--halt" switch raises an Runner::Error exception based on "message".
356
+ # If the user supplied the "--halt" switch raises a Runner::Error exception
357
+ # based on "message".
357
358
  # Otherwise merely prints "message" to the standard error.
358
359
  def handle_error(message)
359
360
  if @options.halt
@@ -21,6 +21,6 @@
21
21
  # POSSIBILITY OF SUCH DAMAGE.
22
22
 
23
23
  module Walrus
24
- VERSION = '0.3'
24
+ VERSION = '0.4'
25
25
  COPYRIGHT = 'Copyright 2007-2010 Wincent Colaiuta'
26
26
  end # module Walrus
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- version: "0.3"
7
+ - 4
8
+ version: "0.4"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Wincent Colaiuta
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2010-08-21 00:00:00 +02:00
16
+ date: 2010-08-23 00:00:00 +02:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency