Git Product home page Git Product logo

dry-behaviour's Introduction

dry-behaviour's People

Contributors

am-kantox avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

michaelglass

dry-behaviour's Issues

Protocol consolidation, optional type checks

  • mark protocols as consolidated one reaching the TracePoint, disallow modifications when consolidated;
  • allow annotations @spec[string, user => any | hash]
  • implement annotations with aspects, maybe allow aspects

Allow implicit interface inheritance

  • allow implicit interface inheritance (opt-in)
  • deprecate implicit delegation to the target object with a message
  • print a deprecation message for ⇑ saying it’ll raise effective 1.0

Invoking implementations of methods with keyword args don't work on Ruby 3.2.0

Hi,

I think invoking methods defined by defmethod/defimpl with keyword arguments is not working correctly on Ruby 3.2.0.

I discovered this while trying to upgrade my app from 2.7 to 3.2 and was able to verify the failure by cloning the repo and running the tests.

Repro:

  • Make sure you're using Ruby 3.2.0
  • git clone [email protected]:am-kantox/dry-behaviour.git
  • cd dry-behavior
  • bundle
  • bundle exec rspec spec/dry/behaviour_spec.rb

Failure: "works for default and keyword args (FAILED - 1)"
Error: "ArgumentError: wrong number of arguments (given 0, expected 1+)"

I'm seeing the same behavior in my app when trying to invoke a method with a positional and default keyword argument.

I'll see if I can locate the source of the issue and make a PR, but any guidance you can offer would be helpful.

Thanks!

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.