Skip to content

Add observer to the SDK's gemspec to avoid warnings in ruby 3.3/support ruby 3.4 #271

Closed

Description

@dgollahon

Describe the bug
I get the following warning in ruby 3.3.1 using sdk version 7.2.0 (but looks to still apply on master):

warning: [...]/lib/ruby/3.3.0/observer.rb was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add observer to your Gemfile or gemspec. Also contact author of launchdarkly-server-sdk-7.2.0 to add observer into its gemspec.

To reproduce
Require the gem with $VERBOSE = true on ruby 3.3.x

Expected behavior
No warnings are emitted.

Logs
N/A

SDK version
7.2.0

Language version, developer tools
Ruby 3.3.1

OS/platform
MacOS

Additional context
N/A

Activity

  1. keelerm84 commented on Apr 25, 2024

    @keelerm84
    Member

    Thank you for bringing this to our attention. I will make sure it gets addressed soon and will let you know once it has been resolved.

  2. added a commit that references this issue on Apr 29, 2024
    1bc8652
  3. added 2 commits that reference this issue on Apr 29, 2024
    f2226a6
    caead08
  4. keelerm84 commented on Apr 29, 2024

    @keelerm84
    Member

    This has been resolved in 8.4.1

  5. dgollahon commented on Apr 29, 2024

    @dgollahon
    Author

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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