Skip to content

Commit

Permalink
Add observer gem to gemspec (#294)
Browse files Browse the repository at this point in the history
Ruby 3.4 removes the `observer` gem from the standard gems which is why
we have the declare the dependency explicitly now.

From https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/:

> ### Standard library updates
> RubyGems and Bundler warn if users do require the following gems
without adding them to Gemfile or gemspec. This is because they will
become the bundled gems in the future version of Ruby.

Fixes #293
  • Loading branch information
marcoroth committed May 2, 2024
1 parent 55bb972 commit 9cfa12c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PATH
actionpack (>= 5.2)
actionview (>= 5.2)
activesupport (>= 5.2)
observer (~> 0.1)
railties (>= 5.2)
thread-local (>= 1.1.0)

Expand Down Expand Up @@ -114,6 +115,7 @@ GEM
racc (~> 1.4)
nokogiri (1.14.3-x86_64-linux)
racc (~> 1.4)
observer (0.1.2)
parallel (1.22.1)
parser (3.2.1.0)
ast (~> 2.4.1)
Expand Down
1 change: 1 addition & 0 deletions cable_ready.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Gem::Specification.new do |gem|
gem.add_dependency "activesupport", rails_version
gem.add_dependency "railties", rails_version
gem.add_dependency "thread-local", ">= 1.1.0"
gem.add_dependency "observer", "~> 0.1"

gem.add_development_dependency "magic_frozen_string_literal"
gem.add_development_dependency "mocha"
Expand Down

0 comments on commit 9cfa12c

Please sign in to comment.