Skip to content

Commit

Permalink
Update folder path for rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichardlai committed Nov 19, 2015
1 parent 306f184 commit 01bbefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests_doc/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

root_folder = args[:root_folder] || TestsDoc.configuration.root_folder

changed_files = Rake::FileList.new(File.join(root_folder, "api/**/*.md")) do |file_list|
changed_files = Rake::FileList.new(File.join(root_folder, "**/*.md")) do |file_list|
file_list.exclude { |f|
`git diff #{f}`.empty? && `git ls-files #{f}`.present?
}
Expand All @@ -25,7 +25,7 @@

endpoints = {}

Rake::FileList[File.join(root_folder, "api/**/*.md")].each do |file|
Rake::FileList[File.join(root_folder, "**/*.md")].each do |file|
path = File.open(file, &:readline)
endpoints[path] ||= []
endpoints[path] << file.gsub(root_folder.to_s, "")
Expand Down

0 comments on commit 01bbefe

Please sign in to comment.