From 54a5fd87e24277ffacc73e663ea9fca18d7bc59f Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Tue, 24 Mar 2020 22:56:45 +0100 Subject: [PATCH] rspec-rails is no longer in sync with other gems version So we do not want to generate doc for the same version for rspec-rails at the same time as the other rspec gems with yard documentation --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f8b81cd5..778ad15e 100644 --- a/Rakefile +++ b/Rakefile @@ -8,6 +8,7 @@ require 'erb' Projects = ['rspec', 'rspec-core', 'rspec-expectations', 'rspec-mocks', 'rspec-rails', 'rspec-support'] UnDocumentedProjects = %w[ rspec rspec-support ] +SemverUnlinkedProjects = ['rspec-rails'] BaseRspecPath = Pathname.new(Dir.pwd) ReposPath = BaseRspecPath.join('repos') @@ -63,7 +64,7 @@ task :update_docs, [:version, :branch, :website_path] do |t, args| abort "You must have ag installed to generate docs" if `which ag` == "" args.with_defaults(:website_path => "../rspec.github.io") run_command "git checkout #{args[:branch]} && git pull --rebase" - each_project :except => UnDocumentedProjects do |project| + each_project :except => (UnDocumentedProjects + SemverUnlinkedProjects) do |project| cmd = "bundle install && \ RUBYOPT='-I#{args[:website_path]}/lib' bundle exec yard \ --yardopts .yardopts \