coercible icon indicating copy to clipboard operation
coercible copied to clipboard

Powerful, flexible and configurable coercion library. And nothing more.

Results 14 coercible issues
Sort by recently updated
recently updated
newest added

Hi, we're using v1.0.0 (via Virtus v1.0.5), and running memory_profiler gem's report on a loop-intensive part of our code reports that coercible is allocating 90% of strings: ```rb Allocated String...

I was experiencing troubles with 'telegram/bot' file from 'telegram-bot-ruby' gem due to the 'coercible' library in ruby-2.7.0-preview1 interpreter. Error boils down to `Undefined = Class.new.freeze` line inside options.rb file. ```shell...

Hello, I use [Virtus](https://github.com/solnic/virtus) for building models and declare an attribute with type `Integer`. Virtus has dependency to coercible. The problem is that sometimes the model attribute receives a Date...

When a value is `nil` `Coercible::UnsupportedCoercion` is raised. This raise is a real expensive operation. When I simply create a virtus model 1000.times I get the following profile result ```...

As identified in and , coercible's use of errors to signal unsupported coercions has a measurable impact on performance, especially when using JRuby. To workaround this problem, this PR adds...

Benchmark code: https://gist.github.com/kml/0fb1588fc1b6ba4c60fa While testing on JRuby I'm gaining at least x2 improvement thanks to defining method. Other solution (maybe even better) could be to staticaly define methods like: ```...

Hi, Could you please release the 1.0.1 version with RSpec3 support as a gem? Thanks! Cédric

Some small performance enhancements. coercible at `performance` branch: ``` Comparison: Virtus: integer values for integer attributes : 20948.6 i/s Virtus: string values for integer attributes : 18220.3 i/s - 1.15x...