mdub / sham_rack Goto Github PK
View Code? Open in Web Editor NEWrun Rack applications in-process, without a server
License: MIT License
run Rack applications in-process, without a server
License: MIT License
Using ShamRack
with Rails 5 generates a weird error:
LoadError: cannot load such file -- rack/showexceptions
Searching for it I found that the problem is the Sinatra version vs Rails version.*
Temporary Solution -> Add gem "sinatra", "2.0.0.beta2"
to the gemfile.
However, it would be nice to resolve this dependency in the ShamRack
's gemfile
References:
Hi,
I'm packaging sham_rack for debian and would like to know what license sham-rack uses. It would be nice if you could add a LICENSE file in the repo itself.
I haven't looked into it too thoroughly, but when I setup ShamRack with a domain, say example.com, then hit https://example.com, it still hits example.com (doesn't go through ShamRack).
see bblimke/webmock#391 for a similar request to webmock.
Added sham_rack to my gemfile, and then tried: ShamRack.at(url).sinatra do ... end
Failed because I don't have sinatra... Should it be part of sham_racks dependencies in gem files?
Failures:
1) ShamRack Rack environment supports POST
Failure/Error: expect(env["rack.input"].read).to eq("q=rack")
expected: "q=rack"
got: ""
(compared using ==)
# ./spec/sham_rack_spec.rb:301:in `block (3 levels) in <top (required)>'
2) ShamRack Rack environment supports PUT
Failure/Error: expect(env["rack.input"].read).to eq("stuff")
expected: "stuff"
got: ""
(compared using ==)
# ./spec/sham_rack_spec.rb:335:in `block (3 levels) in <top (required)>'
Finished in 0.62369 seconds (files took 3.11 seconds to load)
40 examples, 2 failures, 4 pending
Failed examples:
rspec ./spec/sham_rack_spec.rb:295 # ShamRack Rack environment supports POST
rspec ./spec/sham_rack_spec.rb:329 # ShamRack Rack environment supports PUT
Failures:
1) ShamRack Rack environment supports POST
Failure/Error: expect(env["rack.input"].read).to eq("q=rack")
expected: "q=rack"
got: ""
(compared using ==)
# ./spec/sham_rack_spec.rb:301:in `block (3 levels) in <top (required)>'
2) ShamRack Rack environment supports PUT
Failure/Error: expect(env["rack.input"].read).to eq("stuff")
expected: "stuff"
got: ""
(compared using ==)
# ./spec/sham_rack_spec.rb:335:in `block (3 levels) in <top (required)>'
Finished in 0.62369 seconds (files took 3.11 seconds to load)
40 examples, 2 failures, 4 pending
Failed examples:
rspec ./spec/sham_rack_spec.rb:295 # ShamRack Rack environment supports POST
rspec ./spec/sham_rack_spec.rb:329 # ShamRack Rack environment supports PUT
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868750
reproduced with both rack 1.6 and 2.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.