From 18e0047b1a889ebeeb6c8ff07f5e2589cb015f17 Mon Sep 17 00:00:00 2001 From: Titus Fortner Date: Wed, 7 Oct 2015 15:21:07 -0500 Subject: [PATCH] rb - remove doc building task since it doesn't work --- rake-tasks/crazy_fun/mappings/ruby.rb | 29 --------------------------- rb/build.desc | 9 --------- 2 files changed, 38 deletions(-) diff --git a/rake-tasks/crazy_fun/mappings/ruby.rb b/rake-tasks/crazy_fun/mappings/ruby.rb index 3cd4e27e1f6cf..2d67993ac7ab4 100644 --- a/rake-tasks/crazy_fun/mappings/ruby.rb +++ b/rake-tasks/crazy_fun/mappings/ruby.rb @@ -8,7 +8,6 @@ def add_all(fun) fun.add_mapping "ruby_test", RubyTest.new fun.add_mapping "ruby_test", AddTestDependencies.new - fun.add_mapping "rubydocs", RubyDocs.new fun.add_mapping "rubygem", RubyGem.new end @@ -106,34 +105,6 @@ def handle(fun, dir, args) end end - class RubyDocs - def handle(fun, dir, args) - files = args[:files] || raise("no :files specified for rubydocs") - output_dir = args[:output_dir] || raise("no :output_dir specified for rubydocs") - - # we define a wrapper task to avoid calling require "yard" at parse time - desc 'Generate Ruby API docs' - task "//#{dir}:docs" do |t| - raise "yard is not installed, unable to generate docs" unless have_yard? - task = YARD::Rake::YardocTask.new { |yard| - yard.files = Array(files).map { |glob| Dir[glob] }.flatten - yard.options << "--verbose" - yard.options << "--readme" << args[:readme] if args.has_key?(:readme) - yard.options << "--output-dir" << output_dir - } - - Rake::Task[task.name].invoke - end - end - - def have_yard? - require 'yard' - true - rescue LoadError - false - end - end # RubyDocs - class RubyGem def handle(fun, dir, args) raise "no :gemspec for rubygem" unless args[:gemspec] diff --git a/rb/build.desc b/rb/build.desc index 2efec8c1cac4c..fdc954818263f 100644 --- a/rb/build.desc +++ b/rb/build.desc @@ -17,15 +17,6 @@ rubygem( ] ) -rubydocs( - files = [ - "rb/lib/**/*.rb", - "CHANGES" - ], - readme = "rb/README.md", - output_dir = "docs/api/rb" -) - ruby_library(name = "common", srcs = [ "lib/selenium/webdriver/common/**/*.rb",