require 'uri'
require 'json'
require 'faraday'

require 'todoist/http'
require 'todoist/configuration'

require 'todoist/base'
require 'todoist/project'
require 'todoist/item'
require 'todoist/note'
require 'todoist/project_items'

require 'todoist/version'

module Todoist
  class InvalidURIError < StandardError; end
  class InvalidJSONPathError < StandardError; end
  class InvalidJSONError < StandardError; end
  def configure
    raise InvalidArgument.new unless block_given?
    yield(Configuration)
  end
end

require 'uri'
require 'json'
require 'faraday'

module Todoist
  class InvalidURIError < StandardError; end
  class InvalidJSONPathError < StandardError; end
  class InvalidJSONError < StandardError; end
  def configure
    raise InvalidArgument.new unless block_given?
    yield(Configuration)
  end
end

require 'todoist/http'
require 'todoist/configuration'

require 'todoist/base'
require 'todoist/project'
require 'todoist/item'
require 'todoist/note'
require 'todoist/project_items'

require 'todoist/version'

Swap module definition and require lines.
Swap module definition and require lines.
