diff --git a/bin/fake_sns b/bin/fake_sns index 0d01d5d..27b587d 100755 --- a/bin/fake_sns +++ b/bin/fake_sns @@ -12,6 +12,7 @@ options = { :verbose => false, :daemonize => false, :database => nil, + :remove_sqs_queues_url => false, } parser = OptionParser.new do |o| @@ -32,6 +33,11 @@ parser = OptionParser.new do |o| options[:server] = server end + o.on "-r", "--remove_sqs_queues_url", "Removes Aws::Plugins::SQSQueueUrls" do |queues_url| + puts "-- Aws::SQS::Client.remove_plugin(Aws::Plugins::SQSQueueUrls)" + options[:remove_sqs_queues_url] = queues_url + end + o.on "-P", "--pid PIDFILE", "Where to write the pid" do |pid| options[:pid] = pid end @@ -58,6 +64,10 @@ end parser.parse! +if options[:remove_sqs_queues_url] + Aws::SQS::Client.remove_plugin(Aws::Plugins::SQSQueueUrls) +end + if options[:daemonize] Process.daemon(true, true) end diff --git a/fake_sns.gemspec b/fake_sns.gemspec index c9eb2d9..d728408 100644 --- a/fake_sns.gemspec +++ b/fake_sns.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |spec| spec.add_dependency "virtus", "~> 1.0" spec.add_dependency "verbose_hash_fetch" spec.add_dependency "faraday", "~> 0.8" - spec.add_dependency 'aws-sdk', '~> 2.0' + spec.add_dependency 'aws-sdk', "~> 2.1" spec.add_development_dependency "bundler" spec.add_development_dependency "rake"