lib/fake_sqs.rb in fake_sqs-0.0.3 vs lib/fake_sqs.rb in fake_sqs-0.0.4

- old
+ new

@@ -1,16 +1,28 @@ -require 'fake_sqs/version' -require 'fake_sqs/server' -require 'fake_sqs/queues' -require 'fake_sqs/responder' +require 'fake_sqs/api' +require 'fake_sqs/catch_errors' +require 'fake_sqs/error_response' +require 'fake_sqs/message' require 'fake_sqs/queue' require 'fake_sqs/queue_factory' -require 'fake_sqs/message' +require 'fake_sqs/queues' +require 'fake_sqs/responder' +require 'fake_sqs/server' +require 'fake_sqs/version' +require 'fake_sqs/web_interface' module FakeSQS def self.server(options = {}) - Server.new(options.merge(queues: queues, responder: responder)) + Server.new(options) + end + + def self.api(options = {}) + API.new( + server: options.fetch(:server), + queues: queues, + responder: responder + ) end def self.queues Queues.new(queue_factory: queue_factory) end