瀏覽代碼

Minor stability fixes.

master
Ben Kurtovic 8 年之前
父節點
當前提交
9e35406668
共有 3 個檔案被更改,包括 12 行新增2 行删除
  1. +3
    -1
      lib/kgrader/backend/svn.rb
  2. +6
    -0
      lib/kgrader/errors.rb
  3. +3
    -1
      lib/kgrader/filesystem.rb

+ 3
- 1
lib/kgrader/backend/svn.rb 查看文件

@@ -23,7 +23,9 @@ module KGrader::Backend
print "svn: password: "
@password = STDIN.noecho(&:gets).chomp
puts
puts "svn: bad password or other network issues" unless test_okay url
unless test_okay url
raise SVNError, "bad password or other network issues"
end
end
end



+ 6
- 0
lib/kgrader/errors.rb 查看文件

@@ -25,4 +25,10 @@ module KGrader

class SubmissionError < KGraderError
end

class BackendError < KGraderError
end

class SVNError < BackendError
end
end

+ 3
- 1
lib/kgrader/filesystem.rb 查看文件

@@ -35,7 +35,9 @@ module KGrader
# -------------------------------------------------------------------------

def courses
Dir[File.join spec_dir, '*', ''].map! { |fn| File.basename fn }
Dir[File.join spec_dir, '*', '_config.yml'].map! do |fn|
File.basename File.dirname fn
end
end

def assignments(courseid)


Loading…
取消
儲存