Sha256: f919bb87c938f2c53185e8b5f350ade1d1567fbd3e43c2e0c328fd70e9eb3ead

Contents?: true

Size: 808 Bytes

Versions: 14

Compression:

Stored size: 808 Bytes

Contents

class Roda
  module RodaPlugins

    module Rodbot
      class << self
        def load_dependencies(app)
          app.plugin :multi_run
          app.plugin :environments
          app.plugin :heartbeat
          app.plugin :public
          app.plugin :run_append_slash
          app.plugin :halt
          app.plugin :unescape_path
          app.plugin :render, layout: './layout', views: 'app/views'
          load_rodbot_dependencies(app)
        end

        private

        def load_rodbot_dependencies(app)
          ::Rodbot.plugins.extend_app
          ::Rodbot.plugins.extensions[:app].keys.each { app.plugin _1 }
        end
      end

      module RequestMethods
        def arguments
          params['arguments']
        end
      end
    end

    register_plugin :rodbot, Rodbot

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rodbot-0.4.5 lib/roda/plugins/rodbot.rb
rodbot-0.4.4 lib/roda/plugins/rodbot.rb
rodbot-0.4.3 lib/roda/plugins/rodbot.rb
rodbot-0.4.2 lib/roda/plugins/rodbot.rb
rodbot-0.4.1 lib/roda/plugins/rodbot.rb
rodbot-0.4.0 lib/roda/plugins/rodbot.rb
rodbot-0.3.4 lib/roda/plugins/rodbot.rb
rodbot-0.3.3 lib/roda/plugins/rodbot.rb
rodbot-0.3.2 lib/roda/plugins/rodbot.rb
rodbot-0.3.1 lib/roda/plugins/rodbot.rb
rodbot-0.3.0 lib/roda/plugins/rodbot.rb
rodbot-0.2.0 lib/roda/plugins/rodbot.rb
rodbot-0.1.1 lib/roda/plugins/rodbot.rb
rodbot-0.1.0 lib/roda/plugins/rodbot.rb