Sha256: 950036c51738d74f6d9522f7138616eaafbada76928b78cc5b55e51a72996b3c

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

class PluginWithRackApp
  include Locomotive::Plugin

  def self.rack_app
    RackApp
  end

  class RackApp
    class << self
      attr_accessor :block
    end

    def self.call(env)
      block.call
      [200, {'Content-Type' => 'text/html'}, []]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotive_plugins-1.2.0 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.1.1 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.1.0 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.0.1 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.0.0.beta10 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.0.0.beta9 spec/support/plugins/plugin_with_rack_app.rb
locomotive_plugins-1.0.0.beta8 spec/support/plugins/plugin_with_rack_app.rb