Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

URI.encode deprecated on ruby 3.0.0 #36

@MittchoBaroco

Description

@MittchoBaroco

Reproduce

content_type = "application/json"
accept       = "application/json"
body         = JCAPIv1::Systemuserputpost.new
x_org_id     = ENV['JC_ORG_ID']

opts         = {
    body: body,
    x_org_id: ""
}

JCAPIv1::SystemusersApi.new.systemusers_post(content_type, accept, opts)

Result

 NoMethodError:
       undefined method `encode' for URI:Module
     # ./app/services/jumpcloud/create_system_user.rb:13:in `call'

Resolve

https://docs.knapsackpro.com/2020/uri-escape-is-obsolete-percent-encoding-your-query-string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions