Permalink
Browse files

Compaibility for Windows to deal with SSL

  • Loading branch information...
Miles Sandlar
Miles Sandlar committed Apr 22, 2012
1 parent 407725d commit 7489852eb99e0c57645d399e7fa8f67028204b1d
Showing with 2 additions and 1 deletion.
  1. +2 −1 course-add.rb
View
@@ -29,6 +29,7 @@ def color(c)
@agent = Mechanize.new
@agent.redirect_ok = true
@agent.user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.11 Safari/535.19"
+@agent.verify_mode = OpenSSL::SSL::VERIFY_NONE
#Logins, Gets the Courses, Returns Courses Obj with Name/URL/Tools for each
@@ -166,7 +167,7 @@ def courseAdd(courses, cookies)
print "\n"
end
- sleep 2
+ sleep 4
end
end

0 comments on commit 7489852

Please sign in to comment.