Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require ostruct explicitly #399

Merged
merged 1 commit into from
May 8, 2024
Merged

Commits on May 7, 2024

  1. Require ostruct explicitly

    `OpenStruct` is optional since `JSON` v 2.7.2
    
    References:
    - ruby/json#565
    - https://github.com/ruby/ostruct/blob/master/lib/ostruct.rb#L136
    
    This commit fixes error:
    
    ```
    Hutch.connect
    
    gems/hutch-1.2.0/lib/hutch/broker.rb:272:in `api_config': uninitialized constant Hutch::Broker::OpenStruct (NameError)
    
          @api_config ||= OpenStruct.new.tap do |config|
                          ^^^^^^^^^^
    ```
    sharshenov committed May 7, 2024
    Configuration menu
    Copy the full SHA
    7327344 View commit details
    Browse the repository at this point in the history