Giter Club home page Giter Club logo

ruby-middleware's People

Contributors

askl56 avatar bearded avatar bolshakov avatar craiglittle avatar gitter-badger avatar ktdreyer avatar lilobase avatar lulalala avatar mitchellh avatar mockturtl avatar rlivsey avatar sebastianedwards avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ruby-middleware's Issues

New Release

Can we get a new release on rubygems to include the latest kwargs changes in main?

Updates and help maintaining?

Hi @lilobase! I'm looking to move to this fork for my project as mitchell's original hasn't been updated for a while

Just looking through #7 #5 #8 and I can see there's been some movement last year around updating docs, fixing a bug and adding tags to the git repo... but there's not been any changes to the repo since 2015 still

Can I help? I don't want to end up forking again if I can help it ๐Ÿ˜„

Default value for env is nil. Why? :)

Hi guys.

Do we have some kind of motivation to set the value of env to nil?

Cause, to my mind, it makes some features of current Ruby usable only in certain ways.

For example - keyword arguments:

Middleware::Builder.new do |b|
  b.use -> (a: 1, b: 3) { p a, b }
end.call

So, in order for that snippet to work, I have to pass some value (empty hash) to the #call method.
That snippet would fail due to the fact, that default argument is nil.

The second aspect is about explicitness of what we're trying to achieve. With nil as default value protocol makes unexpected decision for me.

Thanks in advance, waiting for your comments. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.