-
Após adicionar a gem no projeto e tentar adicionar uma migration, apareceu esse erro. Alguma ideia do que pode ser? Obrigado!
stacktrace:
```shell
/home/diegopolido/.asdf/installs/ruby/3.3.0/li…
-
I've gotten into the habit of writing dry-transaction operations as individual classes that `include Dry::Transaction::Operation`. (It avoids the scary 5-letter "m" word.) If you use this in an oper…
-
## Describe the bug
I am trying to use a `dry-type` of `Types::Hash.map(Types::String, Types::String)` in a `Dry::Validation::Contract` class, however `Dry:Schema::Compiler` attempts to call the no…
-
## Describe the bug
The error reporting when a function is wrongly composed is not useful.
## To Reproduce
Let's take the example from the documentation
```ruby
require 'dry/transformer'
…
-
Method `Dry::Schema::Result#errors` raises an error when using `array(...)` with XOR predicate.
```ruby
schema = Dry::Schema.Params do
required(:ids) do
array(:integer) ^ eql?([''])
end…
-
Following issue #245, I tried to implement a similar situation inside a `dry-validators` contract,
but the following code fails when there is at least one rule involved, see example below
```ruby…
-
**Describe the bug**
Using a `maybe` in a schema breaks the info option to generate an AST-parsed hash with the following stack-trace:
```
irb(main):007:0> p schema.info
Traceback (most recent…
-
Something like this should work:
```ruby
require "dry-monads"
require "dry-auto_inject"
RSpec.describe "Using dry-auto_inject" do
let(:transaction) {
Class.new do
include Dry::T…
-
Can not run any program after writing `require 'telegraph_api_ruby'` i just simply getting an error
I tried updating all gems and it didn't help
Code
```
require 'telegraph_api_ruby'
puts "test"
…
-
Take this example:
```ruby
# example.rb
require "dry/transformer"
module F
extend Dry::Transformer::Registry
def self.constantly(n)
n
end
def self.square(n)
n ** 2
…