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 +4 -4
- data/lib/walrus/runner.rb +5 -4
- data/lib/walrus/version.rb +1 -1
- metadata +3 -3
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
|
-
|
40
|
-
|
41
|
-
|
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
|
43
|
+
export RUBYLIB="${RUBYLIB}:lib"
|
44
44
|
|
45
45
|
HERE
|
46
46
|
exit EXIT_LOAD_ERROR
|
data/lib/walrus/runner.rb
CHANGED
@@ -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 = '
|
44
|
-
@options.recurse =
|
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:
|
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
|
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
|
data/lib/walrus/version.rb
CHANGED
metadata
CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
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-
|
16
|
+
date: 2010-08-23 00:00:00 +02:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|