bin/fake_sqs in fake_sqs-0.0.3 vs bin/fake_sqs in fake_sqs-0.0.4
- old
+ new
@@ -1,9 +1,8 @@
#!/usr/bin/env ruby
require 'fake_sqs'
-require 'fake_sqs/web_interface'
require 'optparse'
options = { :port => 4567, :host => "0.0.0.0", :verbose => false }
parser = OptionParser.new do |o|
@@ -46,7 +45,8 @@
end
app.set :port, options[:port]
app.set :bind, options[:host]
app.set :server, options[:server] if options[:server]
-app.set :sqs, FakeSQS.server(port: options[:port], host: options[:host])
+server = FakeSQS.server(port: options[:port], host: options[:host])
+app.set :api, FakeSQS.api(server: server)
app.run!