Skip to content

Commit 18e0047

Browse files
committed
rb - remove doc building task since it doesn't work
1 parent 8f9bd55 commit 18e0047

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

rake-tasks/crazy_fun/mappings/ruby.rb

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def add_all(fun)
88
fun.add_mapping "ruby_test", RubyTest.new
99
fun.add_mapping "ruby_test", AddTestDependencies.new
1010

11-
fun.add_mapping "rubydocs", RubyDocs.new
1211
fun.add_mapping "rubygem", RubyGem.new
1312
end
1413

@@ -106,34 +105,6 @@ def handle(fun, dir, args)
106105
end
107106
end
108107

109-
class RubyDocs
110-
def handle(fun, dir, args)
111-
files = args[:files] || raise("no :files specified for rubydocs")
112-
output_dir = args[:output_dir] || raise("no :output_dir specified for rubydocs")
113-
114-
# we define a wrapper task to avoid calling require "yard" at parse time
115-
desc 'Generate Ruby API docs'
116-
task "//#{dir}:docs" do |t|
117-
raise "yard is not installed, unable to generate docs" unless have_yard?
118-
task = YARD::Rake::YardocTask.new { |yard|
119-
yard.files = Array(files).map { |glob| Dir[glob] }.flatten
120-
yard.options << "--verbose"
121-
yard.options << "--readme" << args[:readme] if args.has_key?(:readme)
122-
yard.options << "--output-dir" << output_dir
123-
}
124-
125-
Rake::Task[task.name].invoke
126-
end
127-
end
128-
129-
def have_yard?
130-
require 'yard'
131-
true
132-
rescue LoadError
133-
false
134-
end
135-
end # RubyDocs
136-
137108
class RubyGem
138109
def handle(fun, dir, args)
139110
raise "no :gemspec for rubygem" unless args[:gemspec]

rb/build.desc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ rubygem(
1717
]
1818
)
1919

20-
rubydocs(
21-
files = [
22-
"rb/lib/**/*.rb",
23-
"CHANGES"
24-
],
25-
readme = "rb/README.md",
26-
output_dir = "docs/api/rb"
27-
)
28-
2920
ruby_library(name = "common",
3021
srcs = [
3122
"lib/selenium/webdriver/common/**/*.rb",

0 commit comments

Comments
 (0)