Skip to content

Commit c753b58

Browse files
committed
Remove uptodate docs tasks
* It's always up-to-date via GitHub Actions now.
1 parent 349e317 commit c753b58

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Rakefile

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -200,34 +200,6 @@ begin
200200
*common_yard_options)
201201
yard.files = ['no-lib']
202202
end
203-
204-
define_uptodate_task = -> name do
205-
namespace name do
206-
desc "** ensure that #{name} generated documentation is matching the source code"
207-
task :uptodate do
208-
Dir.chdir(__dir__) do
209-
begin
210-
FileUtils.cp_r 'docs', 'docs-copy', verbose: true
211-
Rake::Task["yard:#{name}"].invoke
212-
sh 'diff -r docs/ docs-copy/' do |ok, res|
213-
unless ok
214-
begin
215-
STDOUT.puts "yard:#{name} is not properly generated and committed.", "Continue? (y/n)"
216-
input = STDIN.gets.strip.downcase
217-
end until %w(y n).include?(input)
218-
exit 1 if input == 'n'
219-
end
220-
end
221-
ensure
222-
FileUtils.rm_rf 'docs-copy', verbose: true
223-
end
224-
end
225-
end
226-
end
227-
end
228-
229-
define_uptodate_task.call current_yard_version_name
230-
define_uptodate_task.call 'master'
231203
end
232204

233205
rescue LoadError => e
@@ -240,7 +212,7 @@ task :release => ['release:checks', 'release:build', 'release:test', 'release:pu
240212
namespace :release do
241213
# Depends on environment of @pitr-ch
242214

243-
task :checks => "yard:#{current_yard_version_name}:uptodate" do
215+
task :checks do
244216
Dir.chdir(__dir__) do
245217
sh 'test -z "$(git status --porcelain)"' do |ok, res|
246218
unless ok

0 commit comments

Comments
 (0)