Sha256: b928cf9adc860847e2467787f86084c61e8728c0c6b88c2e8baa6fc35c42c7ea
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 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, env={} File.open(File::NULL) do |input| app.call({'PATH_INFO' => path , 'REQUEST_METHOD' => '#{method}'.upcase, 'SCRIPT_NAME' => '' , 'rack.input' => input }.merge(env)) end end RUBY end end module Kernel def eq? rhs self == rhs end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jellyfish-0.9.2 | lib/jellyfish/test.rb |
jellyfish-0.9.1 | lib/jellyfish/test.rb |
jellyfish-0.9.0 | lib/jellyfish/test.rb |
jellyfish-0.8.0 | lib/jellyfish/test.rb |