lib/google_pubsub_enhancer.rb in google-pubsub-enhancer-0.2.0 vs lib/google_pubsub_enhancer.rb in google-pubsub-enhancer-0.2.1
- old
+ new
@@ -20,10 +20,10 @@
raise Exception, 'Environment not setted properly'
end
end
def initialize(&block)
- @stack = ::Middleware::Builder.new(&block)
+ @stack = ::Middleware::Builder.new(&block).__send__(:to_app)
end
def run(subscription_short_name, opts={})
configurated_options = configurate_options(opts)
subscription = create_subscription(subscription_short_name)