Coder Social home page Coder Social logo

dry-mutations's Introduction

dry-mutations's People

Contributors

am-kantox avatar saverio-kantox avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

saverio-kantox

dry-mutations's Issues

Dates are not coerced

Mutations accept as date a String that can be parsed into a Date. This same behavior is required in dry-mutations.

Dojo recommendations

  • run(params, more_params) not working for chain
  • unhelpful nested exceptions
  • optional -> methods
  • nested add_error
  • chain { chain {} } doesn't work

Add support for `discard_empty`

One of the options available in mutation gem for string is to define it as discard_empty: true. But this option is not available with dry-mutations...

prepend ⇒ revel

Silently add revel DSL to original ::Mutations::Command and/or prevent prepending ::Dry::Mutation::Command to any class.

Make a generic prepend for DSL only and reject including/prepending Command to anything save for Command since it hardly relies on the base structure.

gemspec problem makes boilerplate files globally executable

The bin directory only contains common boilerplate files. The gemspec file those common boilerplate files in the bin directory globally executable. Delete the line in the gemspec that makes everything in the bin directory globally executable.

Error running specs when `true` is replaced with `"true"`

In line
https://github.com/am-kantox/dry-mutations/blob/master/spec/dry/mutations/ulises_spec.rb#L77 I replaced true with "true" and got this error:

Failures:

  1) Dry::Mutations::Extensions::Command Ulises’ most tremendous mutation just works
     Failure/Error: memo[key] = new(key, msg.predicate, msg, message: msg.text, index: idx)

     NoMethodError:
       undefined method `predicate' for #<Dry::Validation::Message::Or:0x00000103553c10>
     # ./lib/dry/mutations/errors/error_atom.rb:24:in `block in patch_message_set'

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.