yard 0.8.7.3 → 0.8.7.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/yard.rb +1 -1
- data/lib/yard/autoload.rb +2 -0
- data/lib/yard/cli/stats.rb +6 -3
- data/lib/yard/config.rb +2 -1
- data/lib/yard/handlers/c/handler_methods.rb +11 -0
- data/lib/yard/handlers/ruby/legacy/private_class_method_handler.rb +21 -0
- data/lib/yard/handlers/ruby/private_class_method_handler.rb +35 -0
- data/lib/yard/i18n/pot_generator.rb +19 -11
- data/lib/yard/logging.rb +2 -4
- data/lib/yard/rake/yardoc_task.rb +1 -1
- data/lib/yard/tags/default_factory.rb +7 -0
- data/lib/yard/verifier.rb +1 -0
- data/lib/yard/version.rb +1 -1
- data/spec/cli/server_spec.rb +8 -10
- data/spec/cli/stats_spec.rb +1 -1
- data/spec/handlers/c/module_handler_spec.rb +20 -0
- data/spec/handlers/examples/private_class_method_handler_001.rb.txt +7 -0
- data/spec/handlers/private_class_method_handler_spec.rb +19 -0
- data/spec/i18n/pot_generator_spec.rb +14 -11
- data/spec/server/doc_server_serializer_spec.rb +5 -1
- data/spec/tags/default_factory_spec.rb +5 -0
- data/templates/default/fulldoc/html/css/style.css +1 -0
- data/templates/default/layout/html/script_setup.erb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115163af07e20e711b005878d50c95bf0bee0e44
|
4
|
+
data.tar.gz: dbc3c72f7a51d0c6b33ed2e4be6d1125584624dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63d576294781035dd5dc8b3f0623eb7942d76379fdd71a04665b0eace3516abfeb87b308ebd268ef8ae2a362991848db1b2328fc94ca6bad2b0616f40550a2ea
|
7
|
+
data.tar.gz: 84e49edf392da2bb5a161684102e205a103b1cf3822c0a8383228a47e2ce79aa9c496f076217f9ed2c017c3516eb4a2ba870e14119ccde113e0fc2fd08995efe
|
data/Rakefile
CHANGED
data/lib/yard.rb
CHANGED
data/lib/yard/autoload.rb
CHANGED
@@ -99,6 +99,7 @@ module YARD
|
|
99
99
|
autoload :MixinHandler, __p('handlers/ruby/legacy/mixin_handler')
|
100
100
|
autoload :ModuleHandler, __p('handlers/ruby/legacy/module_handler')
|
101
101
|
autoload :ModuleFunctionHandler, __p('handlers/ruby/legacy/module_function_handler')
|
102
|
+
autoload :PrivateClassMethodHandler, __p('handlers/ruby/legacy/private_class_method_handler')
|
102
103
|
autoload :PrivateConstantHandler, __p('handlers/ruby/legacy/private_constant_handler')
|
103
104
|
autoload :VisibilityHandler, __p('handlers/ruby/legacy/visibility_handler')
|
104
105
|
autoload :YieldHandler, __p('handlers/ruby/legacy/yield_handler')
|
@@ -122,6 +123,7 @@ module YARD
|
|
122
123
|
autoload :MixinHandler, __p('handlers/ruby/mixin_handler')
|
123
124
|
autoload :ModuleHandler, __p('handlers/ruby/module_handler')
|
124
125
|
autoload :ModuleFunctionHandler, __p('handlers/ruby/module_function_handler')
|
126
|
+
autoload :PrivateClassMethodHandler, __p('handlers/ruby/private_class_method_handler')
|
125
127
|
autoload :PrivateConstantHandler, __p('handlers/ruby/private_constant_handler')
|
126
128
|
autoload :StructHandlerMethods, __p('handlers/ruby/struct_handler_methods')
|
127
129
|
autoload :VisibilityHandler, __p('handlers/ruby/visibility_handler')
|
data/lib/yard/cli/stats.rb
CHANGED
@@ -59,7 +59,10 @@ module YARD
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
meths.each {|m| send(m) }
|
62
|
-
|
62
|
+
|
63
|
+
if @undocumented == 0
|
64
|
+
total = 100
|
65
|
+
elsif @total == 0
|
63
66
|
total = 0
|
64
67
|
else
|
65
68
|
total = (@total - @undocumented).to_f / @total.to_f * 100
|
@@ -125,8 +128,8 @@ module YARD
|
|
125
128
|
# Statistics for methods
|
126
129
|
def stats_for_methods
|
127
130
|
objs = all_objects.select {|m| m.type == :method }
|
128
|
-
objs.reject! {|m| m.is_alias?
|
129
|
-
undoc = objs.select {|m| m.docstring.blank?
|
131
|
+
objs.reject! {|m| m.is_alias? }
|
132
|
+
undoc = objs.select {|m| m.docstring.blank? }
|
130
133
|
@undoc_list |= undoc if @undoc_list
|
131
134
|
output "Methods", objs.size, undoc.size
|
132
135
|
end
|
data/lib/yard/config.rb
CHANGED
@@ -123,8 +123,9 @@ module YARD
|
|
123
123
|
add_ignored_plugins_file
|
124
124
|
translate_plugin_names
|
125
125
|
load_plugins
|
126
|
-
rescue
|
126
|
+
rescue => e
|
127
127
|
log.error "Invalid configuration file, using default options."
|
128
|
+
log.backtrace(e)
|
128
129
|
options.update(DEFAULT_CONFIG_OPTIONS)
|
129
130
|
end
|
130
131
|
|
@@ -8,6 +8,11 @@ module YARD
|
|
8
8
|
def handle_class(var_name, class_name, parent, in_module = nil)
|
9
9
|
parent = nil if parent == "0"
|
10
10
|
namespace = in_module ? namespace_for_variable(in_module) : Registry.root
|
11
|
+
if namespace.nil?
|
12
|
+
raise Parser::UndocumentableError, "class #{class_name}. " +
|
13
|
+
"Cannot find definition for parent namespace."
|
14
|
+
end
|
15
|
+
|
11
16
|
register ClassObject.new(namespace, class_name) do |obj|
|
12
17
|
if parent
|
13
18
|
parent_class = namespace_for_variable(parent)
|
@@ -25,6 +30,11 @@ module YARD
|
|
25
30
|
|
26
31
|
def handle_module(var_name, module_name, in_module = nil)
|
27
32
|
namespace = in_module ? namespace_for_variable(in_module) : Registry.root
|
33
|
+
if namespace.nil?
|
34
|
+
raise Parser::UndocumentableError, "module #{module_name}. " +
|
35
|
+
"Cannot find definition for parent namespace."
|
36
|
+
end
|
37
|
+
|
28
38
|
register ModuleObject.new(namespace, module_name) do |obj|
|
29
39
|
namespaces[var_name] = obj
|
30
40
|
register_file_info(obj, statement.file, statement.line)
|
@@ -45,6 +55,7 @@ module YARD
|
|
45
55
|
register MethodObject.new(namespace, name, scope) do |obj|
|
46
56
|
register_visibility(obj, visibility)
|
47
57
|
find_method_body(obj, func_name)
|
58
|
+
obj.explicit = true
|
48
59
|
obj.add_tag(Tags::Tag.new(:return, '', 'Boolean')) if name =~ /\?$/
|
49
60
|
end
|
50
61
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# (see Ruby::PrivateClassMethodHandler)
|
2
|
+
class YARD::Handlers::Ruby::Legacy::PrivateClassMethodHandler < YARD::Handlers::Ruby::Legacy::Base
|
3
|
+
handles /\Aprivate_class_method(\s|\(|$)/
|
4
|
+
namespace_only
|
5
|
+
|
6
|
+
process do
|
7
|
+
tokval_list(statement.tokens[2..-1], :attr).each do |name|
|
8
|
+
privatize_class_method name
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def privatize_class_method(name)
|
15
|
+
method = Proxy.new(namespace, name)
|
16
|
+
ensure_loaded!(method)
|
17
|
+
method.visibility = :private
|
18
|
+
rescue NamespaceMissingError
|
19
|
+
raise UndocumentableError, "private visibility set on unrecognized method: #{name}"
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Sets visibility of a class method
|
2
|
+
class YARD::Handlers::Ruby::PrivateClassMethodHandler < YARD::Handlers::Ruby::Base
|
3
|
+
handles method_call(:private_class_method)
|
4
|
+
namespace_only
|
5
|
+
|
6
|
+
process do
|
7
|
+
errors = []
|
8
|
+
statement.parameters.each do |param|
|
9
|
+
next unless AstNode === param
|
10
|
+
begin
|
11
|
+
privatize_class_method(param)
|
12
|
+
rescue UndocumentableError => err
|
13
|
+
errors << err.message
|
14
|
+
end
|
15
|
+
end
|
16
|
+
if errors.size > 0
|
17
|
+
msg = errors.size == 1 ? ": #{errors[0]}" : "s: #{errors.join(", ")}"
|
18
|
+
raise UndocumentableError, "private class_method#{msg} for #{namespace.path}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def privatize_class_method(node)
|
25
|
+
if node.literal?
|
26
|
+
method = Proxy.new(namespace, node[0][0][0], :method)
|
27
|
+
ensure_loaded!(method)
|
28
|
+
method.visibility = :private
|
29
|
+
else
|
30
|
+
raise UndocumentableError, "invalid argument to private_class_method: #{node.source}"
|
31
|
+
end
|
32
|
+
rescue NamespaceMissingError
|
33
|
+
raise UndocumentableError, "private visibility set on unrecognized method: #{node[0]}"
|
34
|
+
end
|
35
|
+
end
|
@@ -134,7 +134,7 @@ module YARD
|
|
134
134
|
|
135
135
|
private
|
136
136
|
def header
|
137
|
-
<<-
|
137
|
+
<<-EOH
|
138
138
|
# SOME DESCRIPTIVE TITLE.
|
139
139
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
140
140
|
# This file is distributed under the same license as the PACKAGE package.
|
@@ -143,20 +143,28 @@ module YARD
|
|
143
143
|
#, fuzzy
|
144
144
|
msgid ""
|
145
145
|
msgstr ""
|
146
|
-
"Project-Id-Version: PACKAGE VERSION
|
147
|
-
"Report-Msgid-Bugs-To:
|
148
|
-
"POT-Creation-Date:
|
149
|
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE
|
150
|
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS
|
151
|
-
"Language-Team: LANGUAGE <LL@li.org
|
152
|
-
"Language:
|
153
|
-
"MIME-Version: 1.0
|
154
|
-
"Content-Type: text/plain; charset=UTF-8
|
155
|
-
"Content-Transfer-Encoding: 8bit
|
146
|
+
"Project-Id-Version: PACKAGE VERSION\\n"
|
147
|
+
"Report-Msgid-Bugs-To: \\n"
|
148
|
+
"POT-Creation-Date: #{generate_pot_creation_date_value}\\n"
|
149
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n"
|
150
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n"
|
151
|
+
"Language-Team: LANGUAGE <LL@li.org>\\n"
|
152
|
+
"Language: \\n"
|
153
|
+
"MIME-Version: 1.0\\n"
|
154
|
+
"Content-Type: text/plain; charset=UTF-8\\n"
|
155
|
+
"Content-Transfer-Encoding: 8bit\\n"
|
156
156
|
|
157
157
|
EOH
|
158
158
|
end
|
159
159
|
|
160
|
+
def current_time
|
161
|
+
@current_time ||= Time.now
|
162
|
+
end
|
163
|
+
|
164
|
+
def generate_pot_creation_date_value
|
165
|
+
current_time.strftime("%Y-%m-%d %H:%M%z")
|
166
|
+
end
|
167
|
+
|
160
168
|
def generate_message(pot, message)
|
161
169
|
message.comments.sort.each do |comment|
|
162
170
|
pot << "# #{comment}\n" unless comment.empty?
|
data/lib/yard/logging.rb
CHANGED
@@ -88,17 +88,15 @@ module YARD
|
|
88
88
|
if defined?(::Encoding)
|
89
89
|
icon = PROGRESS_INDICATORS[@progress_indicator] + " "
|
90
90
|
end
|
91
|
-
print("\e[2K\e[?25l\e[1m#{icon}#{msg}\e[0m\r")
|
92
91
|
@mutex.synchronize do
|
92
|
+
print("\e[2K\e[?25l\e[1m#{icon}#{msg}\e[0m\r")
|
93
93
|
@progress_msg = msg
|
94
94
|
@progress_indicator += 1
|
95
95
|
@progress_indicator %= PROGRESS_INDICATORS.size
|
96
96
|
end
|
97
97
|
Thread.new do
|
98
98
|
sleep(0.05)
|
99
|
-
|
100
|
-
progress(msg + ".", nil) if @progress_msg == msg
|
101
|
-
end
|
99
|
+
progress(msg + ".", nil) if @progress_msg == msg
|
102
100
|
end
|
103
101
|
end
|
104
102
|
|
@@ -60,7 +60,7 @@ module YARD
|
|
60
60
|
# Defines the rake task
|
61
61
|
# @return [void]
|
62
62
|
def define
|
63
|
-
desc "Generate YARD Documentation"
|
63
|
+
desc "Generate YARD Documentation" unless ::Rake.application.last_comment
|
64
64
|
task(name) do
|
65
65
|
before.call if before.is_a?(Proc)
|
66
66
|
yardoc = YARD::CLI::Yardoc.new
|
@@ -138,6 +138,13 @@ module YARD
|
|
138
138
|
last_seen = ''
|
139
139
|
while i < text.length
|
140
140
|
c = text[i, 1]
|
141
|
+
|
142
|
+
if (c == '"' || c == "'") && text[i..-1] =~ /#{c}.+?#{c}/
|
143
|
+
list.last << $&
|
144
|
+
i += $&.length
|
145
|
+
next
|
146
|
+
end
|
147
|
+
|
141
148
|
if level > 0 && c == '#' && text[i+1..-1] =~ CodeObjects::METHODNAMEMATCH
|
142
149
|
list.last << c + $&
|
143
150
|
i += $&.length + 1
|
data/lib/yard/verifier.rb
CHANGED
data/lib/yard/version.rb
CHANGED
data/spec/cli/server_spec.rb
CHANGED
@@ -59,8 +59,6 @@ describe YARD::CLI::Server do
|
|
59
59
|
|
60
60
|
@cli.run(*args.flatten)
|
61
61
|
assert_libraries @libraries, @cli.libraries
|
62
|
-
|
63
|
-
new_cli
|
64
62
|
end
|
65
63
|
|
66
64
|
def assert_libraries(expected_libs, actual_libs)
|
@@ -92,22 +90,22 @@ describe YARD::CLI::Server do
|
|
92
90
|
|
93
91
|
it "should use .yardoc as the yardoc db if .yardopts doesn't specify an alternate path" do
|
94
92
|
mock_file '/path/to/bar/.yardopts', '--protected'
|
95
|
-
@libraries[@name] = [Server::LibraryVersion.new(@name, nil, '/path/to/bar/.yardoc')]
|
96
|
-
@libraries.values[0][0].source_path = '/path/to/bar'
|
93
|
+
@libraries[@name] = [Server::LibraryVersion.new(@name, nil, File.expand_path('/path/to/bar/.yardoc'))]
|
94
|
+
@libraries.values[0][0].source_path = File.expand_path('/path/to/bar')
|
97
95
|
run
|
98
96
|
end
|
99
97
|
|
100
98
|
it "should use the yardoc db location specified by .yardopts" do
|
101
99
|
mock_file '/path/to/bar/.yardopts', '--db foo'
|
102
|
-
@libraries[@name] = [Server::LibraryVersion.new(@name, nil, '/path/to/bar/foo')]
|
103
|
-
@libraries.values[0][0].source_path = '/path/to/bar'
|
100
|
+
@libraries[@name] = [Server::LibraryVersion.new(@name, nil, File.expand_path('/path/to/bar/foo'))]
|
101
|
+
@libraries.values[0][0].source_path = File.expand_path('/path/to/bar')
|
104
102
|
run
|
105
103
|
end
|
106
104
|
|
107
105
|
it "should parse .yardopts when the library list is odd" do
|
108
106
|
mock_file '/path/to/bar/.yardopts', '--db foo'
|
109
|
-
@libraries['a'] = [Server::LibraryVersion.new('a', nil, '/path/to/bar/foo')]
|
110
|
-
@libraries.values[0][0].source_path = '/path/to/bar'
|
107
|
+
@libraries['a'] = [Server::LibraryVersion.new('a', nil, File.expand_path('/path/to/bar/foo'))]
|
108
|
+
@libraries.values[0][0].source_path = File.expand_path('/path/to/bar')
|
111
109
|
run 'a'
|
112
110
|
end
|
113
111
|
end
|
@@ -118,8 +116,8 @@ describe YARD::CLI::Server do
|
|
118
116
|
end
|
119
117
|
|
120
118
|
it "should default to .yardoc if no library is specified" do
|
121
|
-
Dir.should_receive(:pwd).at_least(:once).and_return('/path/to/foo')
|
122
|
-
@libraries['foo'] = [Server::LibraryVersion.new('foo', nil, '/path/to/foo/.yardoc')]
|
119
|
+
Dir.should_receive(:pwd).at_least(:once).and_return(File.expand_path('/path/to/foo'))
|
120
|
+
@libraries['foo'] = [Server::LibraryVersion.new('foo', nil, File.expand_path('/path/to/foo/.yardoc'))]
|
123
121
|
run
|
124
122
|
end
|
125
123
|
|
data/spec/cli/stats_spec.rb
CHANGED
@@ -35,4 +35,24 @@ describe YARD::Handlers::C::ClassHandler do
|
|
35
35
|
Registry.at('Foo').file.should == '(stdin)'
|
36
36
|
Registry.at('Foo').line.should == 2
|
37
37
|
end
|
38
|
+
|
39
|
+
it "should raise undoc error if a class is defined under a namespace that cannot be resolved" do
|
40
|
+
with_parser(:c) do
|
41
|
+
undoc_error <<-eof
|
42
|
+
void Init_Foo() {
|
43
|
+
mFoo = rb_define_class_under(invalid, "Foo", rb_cObject);
|
44
|
+
}
|
45
|
+
eof
|
46
|
+
end
|
47
|
+
end unless ENV['LEGACY']
|
48
|
+
|
49
|
+
it "should raise undoc error if a module is defined under a namespace that cannot be resolved" do
|
50
|
+
with_parser(:c) do
|
51
|
+
undoc_error <<-eof
|
52
|
+
void Init_Foo() {
|
53
|
+
mFoo = rb_define_module_under(invalid, "Foo");
|
54
|
+
}
|
55
|
+
eof
|
56
|
+
end
|
57
|
+
end unless ENV['LEGACY']
|
38
58
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
describe "YARD::Handlers::Ruby::#{LEGACY_PARSER ? "Legacy::" : ""}PrivateClassMethodHandler" do
|
4
|
+
before(:all) { parse_file :private_class_method_handler_001, __FILE__ }
|
5
|
+
|
6
|
+
it "should handle private_class_method statement" do
|
7
|
+
Registry.at('A.c').visibility.should == :private
|
8
|
+
Registry.at('A.d').visibility.should == :private
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should fail if parameter is not String or Symbol" do
|
12
|
+
undoc_error 'class Foo; private_class_method "x"; end'
|
13
|
+
undoc_error 'class Foo; X = 1; private_class_method X.new("hi"); end'
|
14
|
+
end unless LEGACY_PARSER
|
15
|
+
|
16
|
+
it "should fail if method can't be recognized" do
|
17
|
+
undoc_error 'class Foo2; private_class_method :x; end'
|
18
|
+
end
|
19
|
+
end
|
@@ -25,7 +25,10 @@ describe YARD::I18n::PotGenerator do
|
|
25
25
|
|
26
26
|
describe "Generate" do
|
27
27
|
it "should generate the default header" do
|
28
|
-
|
28
|
+
current_time = Time.parse("2011-11-20 22:17+0900")
|
29
|
+
@generator.stub!(:current_time).and_return(current_time)
|
30
|
+
pot_creation_date = current_time.strftime("%Y-%m-%d %H:%M%z")
|
31
|
+
@generator.generate.should == <<-eoh
|
29
32
|
# SOME DESCRIPTIVE TITLE.
|
30
33
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
31
34
|
# This file is distributed under the same license as the PACKAGE package.
|
@@ -34,16 +37,16 @@ describe YARD::I18n::PotGenerator do
|
|
34
37
|
#, fuzzy
|
35
38
|
msgid ""
|
36
39
|
msgstr ""
|
37
|
-
"Project-Id-Version: PACKAGE VERSION
|
38
|
-
"Report-Msgid-Bugs-To:
|
39
|
-
"POT-Creation-Date:
|
40
|
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE
|
41
|
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS
|
42
|
-
"Language-Team: LANGUAGE <LL@li.org
|
43
|
-
"Language:
|
44
|
-
"MIME-Version: 1.0
|
45
|
-
"Content-Type: text/plain; charset=UTF-8
|
46
|
-
"Content-Transfer-Encoding: 8bit
|
40
|
+
"Project-Id-Version: PACKAGE VERSION\\n"
|
41
|
+
"Report-Msgid-Bugs-To: \\n"
|
42
|
+
"POT-Creation-Date: #{pot_creation_date}\\n"
|
43
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n"
|
44
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n"
|
45
|
+
"Language-Team: LANGUAGE <LL@li.org>\\n"
|
46
|
+
"Language: \\n"
|
47
|
+
"MIME-Version: 1.0\\n"
|
48
|
+
"Content-Type: text/plain; charset=UTF-8\\n"
|
49
|
+
"Content-Transfer-Encoding: 8bit\\n"
|
47
50
|
|
48
51
|
eoh
|
49
52
|
end
|
@@ -44,7 +44,11 @@ describe YARD::Server::DocServerSerializer do
|
|
44
44
|
|
45
45
|
it "should handle unicode data" do
|
46
46
|
file = CodeObjects::ExtraFileObject.new("test\u0160", '')
|
47
|
-
|
47
|
+
if file.name.encoding == Encoding.find("Windows-1252")
|
48
|
+
@serializer.serialized_path(file).should == 'file/test_8A'
|
49
|
+
else
|
50
|
+
@serializer.serialized_path(file).should == 'file/test_C5A0'
|
51
|
+
end
|
48
52
|
end if defined?(::Encoding)
|
49
53
|
end
|
50
54
|
end
|
@@ -71,6 +71,11 @@ describe YARD::Tags::DefaultFactory do
|
|
71
71
|
v = parse_types(' [Test, Array<String, Hash{A => {B => C}}, C>, String]')
|
72
72
|
v.should include(["Test", "Array<String, Hash{A => {B => C}}, C>", "String"])
|
73
73
|
end
|
74
|
+
|
75
|
+
it "should handle quoted values" do
|
76
|
+
v = parse_types(' ["foo, bar", \'baz, qux\', in"them,iddle"]')
|
77
|
+
v.should include(["\"foo, bar\"", "'baz, qux'", 'in"them,iddle"'])
|
78
|
+
end
|
74
79
|
end
|
75
80
|
|
76
81
|
describe '#parse_tag_with_types' do
|
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
|
|
291
291
|
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
292
|
z-index: 5000;
|
293
293
|
position: relative;
|
294
|
+
overflow-x: auto;
|
294
295
|
}
|
295
296
|
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
296
297
|
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/javascript" charset="utf-8">
|
2
2
|
hasFrames = window.top.frames.main ? true : false;
|
3
3
|
relpath = '<%= u = url_for(''); u + (u != '' ? '/' : '') %>';
|
4
|
-
framesUrl = "<%= url_for_frameset
|
4
|
+
framesUrl = "<%= url_for_frameset %>#!<%= url_for(@file || @object, nil, false) %>";
|
5
5
|
</script>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.7.
|
4
|
+
version: 0.8.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
YARD is a documentation generation tool for the Ruby programming language.
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/yard/handlers/ruby/legacy/mixin_handler.rb
|
132
132
|
- lib/yard/handlers/ruby/legacy/module_function_handler.rb
|
133
133
|
- lib/yard/handlers/ruby/legacy/module_handler.rb
|
134
|
+
- lib/yard/handlers/ruby/legacy/private_class_method_handler.rb
|
134
135
|
- lib/yard/handlers/ruby/legacy/private_constant_handler.rb
|
135
136
|
- lib/yard/handlers/ruby/legacy/visibility_handler.rb
|
136
137
|
- lib/yard/handlers/ruby/legacy/yield_handler.rb
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- lib/yard/handlers/ruby/mixin_handler.rb
|
140
141
|
- lib/yard/handlers/ruby/module_function_handler.rb
|
141
142
|
- lib/yard/handlers/ruby/module_handler.rb
|
143
|
+
- lib/yard/handlers/ruby/private_class_method_handler.rb
|
142
144
|
- lib/yard/handlers/ruby/private_constant_handler.rb
|
143
145
|
- lib/yard/handlers/ruby/struct_handler_methods.rb
|
144
146
|
- lib/yard/handlers/ruby/visibility_handler.rb
|
@@ -311,6 +313,7 @@ files:
|
|
311
313
|
- spec/handlers/examples/method_handler_001.rb.txt
|
312
314
|
- spec/handlers/examples/mixin_handler_001.rb.txt
|
313
315
|
- spec/handlers/examples/module_handler_001.rb.txt
|
316
|
+
- spec/handlers/examples/private_class_method_handler_001.rb.txt
|
314
317
|
- spec/handlers/examples/private_constant_handler_001.rb.txt
|
315
318
|
- spec/handlers/examples/process_handler_001.rb.txt
|
316
319
|
- spec/handlers/examples/visibility_handler_001.rb.txt
|
@@ -323,6 +326,7 @@ files:
|
|
323
326
|
- spec/handlers/mixin_handler_spec.rb
|
324
327
|
- spec/handlers/module_function_handler_spec.rb
|
325
328
|
- spec/handlers/module_handler_spec.rb
|
329
|
+
- spec/handlers/private_class_method_handler_spec.rb
|
326
330
|
- spec/handlers/private_constant_handler_spec.rb
|
327
331
|
- spec/handlers/processor_spec.rb
|
328
332
|
- spec/handlers/ruby/base_spec.rb
|