lib/toycol.rb in toycol-0.0.1 vs lib/toycol.rb in toycol-0.1.0

- old
+ new

@@ -1,8 +1,26 @@ # frozen_string_literal: true +require "fileutils" + +require_relative "toycol/const" +require_relative "toycol/helper" +require_relative "toycol/protocol" +require_relative "toycol/proxy" +require_relative "rack/handler/toycol" + +Dir["#{FileUtils.pwd}/Protocolfile*"].sort.each { |f| load f } + +require_relative "toycol/command" require_relative "toycol/version" module Toycol class Error < StandardError; end - # Your code goes here... + + class UnauthorizedMethodError < Error; end + + class UnauthorizedRequestError < Error; end + + class UndefinedRequestMethodError < Error; end + + class UnknownStatusCodeError < Error; end end