Sha256: 7ab894d89dff52490541217ff0e1be30636482c62257a59b938ab17848b578e4

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

require 'bacon'
require 'rack'
require 'jellyfish'

Bacon.summary_on_exit

shared :jellyfish do
  %w[options get head post put delete patch].each do |method|
    instance_eval <<-RUBY
      def #{method} path='/', app=app
        app.call('PATH_INFO' => path, 'REQUEST_METHOD' => '#{method}'.upcase)
      end
    RUBY
  end
end

module Kernel
  def eq? rhs
    self == rhs
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jellyfish-0.6.0 lib/jellyfish/test.rb
jellyfish-0.5.3 lib/jellyfish/test.rb
jellyfish-0.5.2 lib/jellyfish/test.rb
jellyfish-0.5.1 lib/jellyfish/test.rb
jellyfish-0.5.0 lib/jellyfish/test.rb