Browse Source

Minor stability fixes.

master
Ben Kurtovic 8 years ago
parent
commit
9e35406668
3 changed files with 12 additions and 2 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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…
Cancel
Save