kwalify 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +12 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +10 -10
- data/bin/kwalify +3 -3
- data/contrib/inline-require +54 -28
- data/contrib/kwalify +45 -44
- data/doc-api/classes/CommandOptionError.html +7 -7
- data/doc-api/classes/CommandOptionParser.html +18 -18
- data/doc-api/classes/Kwalify.html +1 -1
- data/doc-api/classes/Kwalify/AssertionError.html +6 -6
- data/doc-api/classes/Kwalify/BaseParser.html +60 -60
- data/doc-api/classes/Kwalify/CommandOptionError.html +6 -6
- data/doc-api/classes/Kwalify/Main.html +30 -30
- data/doc-api/classes/Kwalify/MetaValidator.html +18 -18
- data/doc-api/classes/Kwalify/Parser.html +6 -6
- data/doc-api/classes/Kwalify/PlainYamlParser.html +90 -90
- data/doc-api/classes/Kwalify/PlainYamlParser/Alias.html +6 -6
- data/doc-api/classes/Kwalify/Rule.html +24 -24
- data/doc-api/classes/Kwalify/SchemaError.html +6 -6
- data/doc-api/classes/Kwalify/SyntaxError.html +12 -12
- data/doc-api/classes/Kwalify/Util.html +8 -7
- data/doc-api/classes/Kwalify/ValidationError.html +6 -6
- data/doc-api/classes/Kwalify/Validator.html +39 -39
- data/doc-api/classes/Kwalify/YamlParser.html +84 -84
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +11 -11
- data/doc-api/files/kwalify/errors_rb.html +2 -2
- data/doc-api/files/kwalify/main_rb.html +2 -2
- data/doc-api/files/kwalify/messages_rb.html +2 -2
- data/doc-api/files/kwalify/meta-validator_rb.html +2 -2
- data/doc-api/files/kwalify/parser/base_rb.html +2 -2
- data/doc-api/files/kwalify/parser/yaml_rb.html +2 -2
- data/doc-api/files/kwalify/rule_rb.html +2 -2
- data/doc-api/files/kwalify/types_rb.html +2 -2
- data/doc-api/files/kwalify/util/assert-text-equal_rb.html +2 -2
- data/doc-api/files/kwalify/util/hash-interface_rb.html +2 -2
- data/doc-api/files/kwalify/util/hashlike_rb.html +2 -2
- data/doc-api/files/kwalify/util/option-parser_rb.html +2 -2
- data/doc-api/files/kwalify/util/ordered-hash_rb.html +2 -2
- data/doc-api/files/kwalify/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwalify/util_rb.html +2 -2
- data/doc-api/files/kwalify/validator_rb.html +2 -2
- data/doc-api/files/kwalify/yaml-parser_rb.html +2 -2
- data/doc-api/files/kwalify_rb.html +2 -2
- data/doc-api/fr_method_index.html +70 -70
- data/doc/users-guide.html +1 -1
- data/examples/address-book/address-book.schema.yaml +2 -2
- data/examples/invoice/invoice.schema.yaml +3 -3
- data/examples/tapkit/tapkit.schema.yaml +2 -2
- data/lib/kwalify.rb +3 -3
- data/lib/kwalify/errors.rb +3 -3
- data/lib/kwalify/kwalify.schema.yaml +3 -3
- data/lib/kwalify/main.rb +4 -4
- data/lib/kwalify/messages.rb +3 -3
- data/lib/kwalify/meta-validator.rb +3 -3
- data/lib/kwalify/parser/base.rb +3 -3
- data/lib/kwalify/parser/yaml.rb +3 -3
- data/lib/kwalify/rule.rb +3 -3
- data/lib/kwalify/templates/genclass-java.eruby +3 -3
- data/lib/kwalify/templates/genclass-php.eruby +2 -2
- data/lib/kwalify/templates/genclass-ruby.eruby +3 -3
- data/lib/kwalify/types.rb +3 -3
- data/lib/kwalify/util.rb +6 -5
- data/lib/kwalify/util/assert-text-equal.rb +3 -3
- data/lib/kwalify/util/hash-interface.rb +3 -3
- data/lib/kwalify/util/hashlike.rb +3 -3
- data/lib/kwalify/util/option-parser.rb +3 -3
- data/lib/kwalify/util/ordered-hash.rb +2 -2
- data/lib/kwalify/util/testcase-helper.rb +3 -3
- data/lib/kwalify/validator.rb +3 -3
- data/lib/kwalify/yaml-parser.rb +3 -3
- data/test/test-action.rb +3 -3
- data/test/test-action.yaml +3 -3
- data/test/test-databinding.rb +3 -3
- data/test/test-databinding.yaml +2 -2
- data/test/test-main.rb +3 -3
- data/test/test-main.yaml +34 -3
- data/test/test-metavalidator.rb +3 -3
- data/test/test-metavalidator.yaml +3 -3
- data/test/test-parser-yaml.rb +3 -3
- data/test/test-parser-yaml.yaml +3 -3
- data/test/test-rule.rb +3 -3
- data/test/test-rule.yaml +3 -3
- data/test/test-util.rb +125 -0
- data/test/test-validator.rb +3 -3
- data/test/test-validator.yaml +3 -3
- data/test/test-yaml-parser.rb +3 -3
- data/test/test-yaml-parser.yaml +4 -4
- data/test/test.rb +4 -3
- metadata +56 -55
data/CHANGES.txt
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
.=title: ChangeLog
|
2
|
-
.?release: $Release: 0.7.
|
3
|
-
.?lastupdate: $Date
|
4
|
-
.?version: $Rev
|
2
|
+
.?release: $Release: 0.7.2 $
|
3
|
+
.?lastupdate: $Date$
|
4
|
+
.?version: $Rev$
|
5
5
|
|
6
6
|
|
7
|
+
.: Release 0.7.2 (2010-07-18)
|
8
|
+
|
9
|
+
.* bugfix:
|
10
|
+
|
11
|
+
.- Fix a bug that kwalify command raised error when YAML document is empty (thanks to Nuttall).
|
12
|
+
|
13
|
+
.- Fix a bug that Kwalify::Util.untabify() removed tailing empty strings.
|
14
|
+
|
15
|
+
|
7
16
|
.: Release 0.7.1 (2008-01-28)
|
8
17
|
|
9
18
|
.* bugfix:
|
data/MIT-LICENSE
CHANGED
data/README.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
= README
|
2
2
|
|
3
|
-
release:: 0.7.
|
4
|
-
lastupdate:: $Date
|
5
|
-
copyright:: copyright(c) 2005-
|
3
|
+
release:: 0.7.2
|
4
|
+
lastupdate:: $Date$
|
5
|
+
copyright:: copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -23,14 +23,14 @@ If you have installed RubyGems, just type 'gem install kwalify'
|
|
23
23
|
|
24
24
|
Else if you can be root user, use 'setup.rb' as following:
|
25
25
|
|
26
|
-
$ tar xjf kwalify-0.7.
|
27
|
-
$ cd kwalify-0.7.
|
26
|
+
$ tar xjf kwalify-0.7.2.tar.bz2
|
27
|
+
$ cd kwalify-0.7.2/
|
28
28
|
$ sudo ruby setup.rb install
|
29
29
|
|
30
30
|
Else copy script and libraries to proper directory.
|
31
31
|
|
32
|
-
$ tar xjf kwalify-0.7.
|
33
|
-
$ cd kwalify-0.7.
|
32
|
+
$ tar xjf kwalify-0.7.2.tar.bz2
|
33
|
+
$ cd kwalify-0.7.2/
|
34
34
|
$ mkdir -p $HOME/bin
|
35
35
|
$ cp -a bin/* $HOME/bin
|
36
36
|
$ export PATH=$PATH:$HOME/bin
|
@@ -41,8 +41,8 @@ Else copy script and libraries to proper directory.
|
|
41
41
|
(Optional) 'contrib/inline-require' script to concatenate all script
|
42
42
|
and libraries into a file.
|
43
43
|
|
44
|
-
$ tar xjf kwalify-0.7.
|
45
|
-
$ cd kwalify-0.7.
|
44
|
+
$ tar xjf kwalify-0.7.2.tar.bz2
|
45
|
+
$ cd kwalify-0.7.2/
|
46
46
|
$ unset RUBYLIB
|
47
47
|
$ ruby contrib/inline-require -I ./lib bin/kwalify > contrib/kwalify
|
48
48
|
$ chmod a+x contrib/kwalify
|
@@ -58,4 +58,4 @@ and libraries into a file.
|
|
58
58
|
|
59
59
|
== Copyright
|
60
60
|
|
61
|
-
copyright(c) 2005-
|
61
|
+
copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
data/bin/kwalify
CHANGED
data/contrib/inline-require
CHANGED
@@ -5,14 +5,19 @@
|
|
5
5
|
###
|
6
6
|
### usage: inline-require [-h] [-I path[,path2,..]] script
|
7
7
|
###
|
8
|
-
### copyright(c) 2005-
|
9
|
-
### 0.7.
|
10
|
-
### $Rev:
|
8
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
9
|
+
### 0.7.2
|
10
|
+
### $Rev: 10 $
|
11
11
|
###
|
12
12
|
|
13
13
|
|
14
14
|
class InlineRequire
|
15
15
|
|
16
|
+
def initialize(opts={})
|
17
|
+
@opts = opts.dup
|
18
|
+
end
|
19
|
+
attr_accessor :opts
|
20
|
+
|
16
21
|
def expand(filename)
|
17
22
|
sbuf = ''
|
18
23
|
inlined = []
|
@@ -25,6 +30,10 @@ class InlineRequire
|
|
25
30
|
|
26
31
|
def expand_require(filename, sbuf, inlined, level)
|
27
32
|
raise "*** assertion error" if inlined.include?(filename)
|
33
|
+
remove_comment = @opts[:remove_comment]
|
34
|
+
expand_indented = @opts[:expand_indented]
|
35
|
+
keep_filename = @opts[:keep_filename]
|
36
|
+
loaded_features = @opts[:loaded_features]
|
28
37
|
inlined << filename
|
29
38
|
prog = File.read(filename)
|
30
39
|
n = 0
|
@@ -48,7 +57,9 @@ class InlineRequire
|
|
48
57
|
|
49
58
|
## find 'require "foo"' and expand it to inline code
|
50
59
|
flag_inline = false
|
51
|
-
|
60
|
+
pattern = expand_indented ? /^[ \t]*require ['"](.*)["']\s*$/ \
|
61
|
+
: /^require ['"](.*)["']\s*$/
|
62
|
+
if line =~ pattern
|
52
63
|
libname = $1
|
53
64
|
libpath = find_library(libname)
|
54
65
|
$stderr.puts "*** debug: libpath=#{libpath.inspect}" if $debug_mode
|
@@ -60,13 +71,19 @@ class InlineRequire
|
|
60
71
|
end
|
61
72
|
end
|
62
73
|
if !flag_inline
|
63
|
-
sbuf << line
|
74
|
+
sbuf << line unless remove_comment && line =~ /^[ \t]*\#/
|
64
75
|
elsif inlined.include?(libpath)
|
65
|
-
sbuf << "#--already included #{line}"
|
76
|
+
sbuf << "#--already included #{line}" unless remove_comment
|
66
77
|
else
|
67
|
-
|
78
|
+
if keep_filename
|
79
|
+
@n ||= 0; @n += 1; n = @n
|
80
|
+
end
|
81
|
+
sbuf << "#--begin of #{line}" unless remove_comment
|
82
|
+
sbuf << "$LOADED_FEATURES << '#{libname}.rb'\n" if loaded_features
|
83
|
+
sbuf << "eval <<'END_OF_SCRIPT__#{n}', TOPLEVEL_BINDING, '#{libpath}', 1\n" if keep_filename
|
68
84
|
expand_require(libpath, sbuf, inlined, level+1)
|
69
|
-
sbuf << "
|
85
|
+
sbuf << "END_OF_SCRIPT__#{n}\n" if keep_filename
|
86
|
+
sbuf << "#--end of #{line}" unless remove_comment
|
70
87
|
end
|
71
88
|
end
|
72
89
|
#sbuf << "\n" if sbuf[-1] != ?\n
|
@@ -105,38 +122,47 @@ end
|
|
105
122
|
if __FILE__ == $0
|
106
123
|
|
107
124
|
begin
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
if flag_help
|
125
|
+
require "optparse"
|
126
|
+
op = OptionParser.new
|
127
|
+
options = {}
|
128
|
+
op.on("-h", "--help") {|v| options[:help] = v }
|
129
|
+
op.on("-I libpath") {|v| options[:libpath] = v }
|
130
|
+
op.on("-i") {|v| options[:expand_indented] = v }
|
131
|
+
op.on("-c") {|v| options[:remove_comment] = v }
|
132
|
+
op.on("-k") {|v| options[:keep_filename] = v }
|
133
|
+
op.on("-l") {|v| options[:loaded_features] = v }
|
134
|
+
op.on("-D") {|v| options[:debug] = v }
|
135
|
+
op.parse!()
|
136
|
+
|
137
|
+
$debug_mode = options[:debug]
|
138
|
+
|
139
|
+
if options[:help]
|
127
140
|
command = File.basename($0)
|
128
141
|
puts "Usage: #{command} [-h] [-I path[,path2,..]] script"
|
129
142
|
puts " -h : help"
|
143
|
+
puts " -i : expand indented require(), too"
|
144
|
+
puts " -c : remove comment lines start with '#'"
|
145
|
+
puts " -k : keep filename (for debugging)"
|
146
|
+
puts " -l : append libs to $LOADED_FEATURES"
|
130
147
|
puts " -I path[,path2,...] : ruby library path"
|
131
148
|
exit(0)
|
132
149
|
end
|
133
150
|
|
151
|
+
if options[:libpath]
|
152
|
+
rubylib_paths = options[:libpath].split(/,/)
|
153
|
+
else
|
154
|
+
rubylib_paths = []
|
155
|
+
end
|
134
156
|
$stderr.puts "*** debug: rubylib_paths=#{rubylib_paths.inspect}" if $debug_mode
|
135
157
|
$LOAD_PATH.concat(rubylib_paths)
|
136
158
|
|
137
159
|
filenames = ARGV
|
138
160
|
|
139
|
-
|
161
|
+
opts = { :expand_indented => options[:expand_indented],
|
162
|
+
:remove_comment => options[:remove_comment],
|
163
|
+
:keep_filename => options[:keep_filename],
|
164
|
+
:loaded_features => options[:loaded_features] }
|
165
|
+
inline_require = InlineRequire.new(opts)
|
140
166
|
filenames.each do |filename|
|
141
167
|
print inline_require.expand(filename)
|
142
168
|
end
|
data/contrib/kwalify
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Rev
|
5
|
-
### $Release: 0.7.
|
6
|
-
### copyright(c) 2005-
|
4
|
+
### $Rev$
|
5
|
+
### $Release: 0.7.2 $
|
6
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
7
7
|
###
|
8
8
|
|
9
9
|
#--begin of require 'kwalify'
|
10
10
|
###
|
11
|
-
### $Rev
|
12
|
-
### $Release: 0.7.
|
11
|
+
### $Rev$
|
12
|
+
### $Release: 0.7.2 $
|
13
13
|
### copyright(c) 2006 kuwata-lab.com all rights reserved.
|
14
14
|
###
|
15
15
|
|
16
16
|
|
17
17
|
module Kwalify
|
18
18
|
|
19
|
-
RELEASE = ("$Release: 0.7.
|
19
|
+
RELEASE = ("$Release: 0.7.2 $" =~ /[.\d]+/) && $&
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
23
|
#--begin of require 'kwalify/types'
|
24
24
|
###
|
25
|
-
### $Rev
|
26
|
-
### $Release: 0.7.
|
27
|
-
### copyright(c) 2005-
|
25
|
+
### $Rev$
|
26
|
+
### $Release: 0.7.2 $
|
27
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
28
28
|
###
|
29
29
|
|
30
30
|
require 'date'
|
@@ -180,9 +180,9 @@ end
|
|
180
180
|
#--end of require 'kwalify/types'
|
181
181
|
#--begin of require 'kwalify/messages'
|
182
182
|
###
|
183
|
-
### $Rev
|
184
|
-
### $Release: 0.7.
|
185
|
-
### copyright(c) 2005-
|
183
|
+
### $Rev$
|
184
|
+
### $Release: 0.7.2 $
|
185
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
186
186
|
###
|
187
187
|
|
188
188
|
module Kwalify
|
@@ -355,9 +355,9 @@ end
|
|
355
355
|
#--end of require 'kwalify/messages'
|
356
356
|
#--begin of require 'kwalify/errors'
|
357
357
|
###
|
358
|
-
### $Rev
|
359
|
-
### $Release: 0.7.
|
360
|
-
### copyright(c) 2005-
|
358
|
+
### $Rev$
|
359
|
+
### $Release: 0.7.2 $
|
360
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
361
361
|
###
|
362
362
|
|
363
363
|
#--already included require 'kwalify/messages'
|
@@ -484,9 +484,9 @@ end
|
|
484
484
|
#--end of require 'kwalify/errors'
|
485
485
|
#--begin of require 'kwalify/rule'
|
486
486
|
###
|
487
|
-
### $Rev
|
488
|
-
### $Release: 0.7.
|
489
|
-
### copyright(c) 2005-
|
487
|
+
### $Rev$
|
488
|
+
### $Release: 0.7.2 $
|
489
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
490
490
|
###
|
491
491
|
|
492
492
|
#--already included require 'kwalify/messages'
|
@@ -1045,9 +1045,9 @@ end
|
|
1045
1045
|
#--end of require 'kwalify/rule'
|
1046
1046
|
#--begin of require 'kwalify/validator'
|
1047
1047
|
###
|
1048
|
-
### $Rev
|
1049
|
-
### $Release: 0.7.
|
1050
|
-
### copyright(c) 2005-
|
1048
|
+
### $Rev$
|
1049
|
+
### $Release: 0.7.2 $
|
1050
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
1051
1051
|
###
|
1052
1052
|
|
1053
1053
|
#--already included require 'kwalify/messages'
|
@@ -1329,9 +1329,9 @@ end
|
|
1329
1329
|
#--end of require 'kwalify/validator'
|
1330
1330
|
#--begin of require 'kwalify/meta-validator'
|
1331
1331
|
###
|
1332
|
-
### $Rev
|
1333
|
-
### $Release: 0.7.
|
1334
|
-
### copyright(c) 2005-
|
1332
|
+
### $Rev$
|
1333
|
+
### $Release: 0.7.2 $
|
1334
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
1335
1335
|
###
|
1336
1336
|
|
1337
1337
|
#--already included require 'kwalify/errors'
|
@@ -1339,18 +1339,18 @@ end
|
|
1339
1339
|
#--already included require 'kwalify/validator'
|
1340
1340
|
#--begin of require 'kwalify/parser/yaml'
|
1341
1341
|
###
|
1342
|
-
### $Rev
|
1343
|
-
### $Release: 0.7.
|
1344
|
-
### copyright(c) 2005-
|
1342
|
+
### $Rev$
|
1343
|
+
### $Release: 0.7.2 $
|
1344
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
1345
1345
|
###
|
1346
1346
|
|
1347
1347
|
#--already included require 'kwalify/validator'
|
1348
1348
|
#--already included require 'kwalify/errors'
|
1349
1349
|
#--begin of require 'kwalify/util'
|
1350
1350
|
###
|
1351
|
-
### $Rev
|
1352
|
-
### $Release: 0.7.
|
1353
|
-
### copyright(c) 2005-
|
1351
|
+
### $Rev$
|
1352
|
+
### $Release: 0.7.2 $
|
1353
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
1354
1354
|
###
|
1355
1355
|
|
1356
1356
|
module Kwalify
|
@@ -1366,7 +1366,8 @@ module Kwalify
|
|
1366
1366
|
## untabified_str = YamlHelper.untabify(tabbed_str)
|
1367
1367
|
##
|
1368
1368
|
def untabify(str, width=8)
|
1369
|
-
|
1369
|
+
return str if str.nil?
|
1370
|
+
list = str.split(/\t/, -1) # if 2nd arg is negative then split() doesn't remove tailing empty strings
|
1370
1371
|
last = list.pop
|
1371
1372
|
sb = ''
|
1372
1373
|
list.each do |s|
|
@@ -1386,7 +1387,7 @@ module Kwalify
|
|
1386
1387
|
## Kwalify::Util.traverse_schema(schema) do |rulehash|
|
1387
1388
|
## ## add module prefix to class name
|
1388
1389
|
## if rulehash['class']
|
1389
|
-
## rulehash['class'] =
|
1390
|
+
## rulehash['class'] = 'MyModule::' + rulehash['class']
|
1390
1391
|
## end
|
1391
1392
|
## end
|
1392
1393
|
def traverse_schema(schema, &block) #:yield: rulehash
|
@@ -1507,9 +1508,9 @@ end
|
|
1507
1508
|
#--end of require 'kwalify/util'
|
1508
1509
|
#--begin of require 'kwalify/parser/base'
|
1509
1510
|
###
|
1510
|
-
### $Rev
|
1511
|
-
### $Release: 0.7.
|
1512
|
-
### copyright(c) 2005-
|
1511
|
+
### $Rev$
|
1512
|
+
### $Release: 0.7.2 $
|
1513
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
1513
1514
|
###
|
1514
1515
|
|
1515
1516
|
require 'strscan'
|
@@ -2734,9 +2735,9 @@ end
|
|
2734
2735
|
#--end of require 'kwalify/meta-validator'
|
2735
2736
|
#--begin of require 'kwalify/yaml-parser'
|
2736
2737
|
###
|
2737
|
-
### $Rev
|
2738
|
-
### $Release: 0.7.
|
2739
|
-
### copyright(c) 2005-
|
2738
|
+
### $Rev$
|
2739
|
+
### $Release: 0.7.2 $
|
2740
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
2740
2741
|
###
|
2741
2742
|
|
2742
2743
|
#--already included require 'kwalify/messages'
|
@@ -3654,9 +3655,9 @@ end
|
|
3654
3655
|
#--end of require 'kwalify'
|
3655
3656
|
#--begin of require 'kwalify/main'
|
3656
3657
|
###
|
3657
|
-
### $Rev
|
3658
|
-
### $Release: 0.7.
|
3659
|
-
### copyright(c) 2005-
|
3658
|
+
### $Rev$
|
3659
|
+
### $Release: 0.7.2 $
|
3660
|
+
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
3660
3661
|
###
|
3661
3662
|
|
3662
3663
|
require 'yaml'
|
@@ -3665,8 +3666,8 @@ require 'erb'
|
|
3665
3666
|
#--already included require 'kwalify/util'
|
3666
3667
|
#--begin of require 'kwalify/util/ordered-hash'
|
3667
3668
|
###
|
3668
|
-
### $Rev
|
3669
|
-
### 0.7.
|
3669
|
+
### $Rev$
|
3670
|
+
### 0.7.2
|
3670
3671
|
### $COPYRIGHT$
|
3671
3672
|
###
|
3672
3673
|
|
@@ -4036,7 +4037,7 @@ module Kwalify
|
|
4036
4037
|
end
|
4037
4038
|
elsif ydoc.nil?
|
4038
4039
|
#* key=:validation_empty msg="%s#%d: empty.\n"
|
4039
|
-
puts
|
4040
|
+
puts Kwalify.msg(:validation_empty) % [filename, i]
|
4040
4041
|
else
|
4041
4042
|
#* key=:validation_valid msg="%s#%d: valid."
|
4042
4043
|
puts Kwalify.msg(:validation_valid) % [filename, i] unless @options[:quiet]
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
$Rev
|
83
|
+
$Rev$ $Release: 0.7.2 $ copyright(c) 2005-2010 kuwata-lab all rights reserved.
|
84
84
|
</p>
|
85
85
|
|
86
86
|
</div>
|
@@ -92,7 +92,7 @@ $Rev: 83 $ $Release: 0.7.1 $ copyright(c) 2005-2008 kuwata-lab all rights reserv
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000004">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -132,19 +132,19 @@ $Rev: 83 $ $Release: 0.7.1 $ copyright(c) 2005-2008 kuwata-lab all rights reserv
|
|
132
132
|
<div id="methods">
|
133
133
|
<h3 class="section-bar">Public Class methods</h3>
|
134
134
|
|
135
|
-
<div id="method-
|
136
|
-
<a name="
|
135
|
+
<div id="method-M000004" class="method-detail">
|
136
|
+
<a name="M000004"></a>
|
137
137
|
|
138
138
|
<div class="method-heading">
|
139
|
-
<a href="#
|
139
|
+
<a href="#M000004" class="method-signature">
|
140
140
|
<span class="method-name">new</span><span class="method-args">(option, error_symbol, message=nil)</span>
|
141
141
|
</a>
|
142
142
|
</div>
|
143
143
|
|
144
144
|
<div class="method-description">
|
145
145
|
<p><a class="source-toggle" href="#"
|
146
|
-
onclick="toggleCode('
|
147
|
-
<div class="method-source-code" id="
|
146
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
147
|
+
<div class="method-source-code" id="M000004-source">
|
148
148
|
<pre>
|
149
149
|
<span class="ruby-comment cmt"># File kwalify/util/option-parser.rb, line 8</span>
|
150
150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">option</span>, <span class="ruby-identifier">error_symbol</span>, <span class="ruby-identifier">message</span>=<span class="ruby-keyword kw">nil</span>)
|