diff --git a/README.markdown b/README.markdown index 03dfca9b..9ee67e37 100644 --- a/README.markdown +++ b/README.markdown @@ -21,6 +21,10 @@ Add the gem to your Gemfile gem 'scout_apm' +Add [a version of the `parser` gem that supports your version of Ruby](https://github.com/whitequark/parser?tab=readme-ov-file#backwards-compatibility). For example, if you're on Ruby 3.3.0: + + gem 'parser', '~> 3.3.0.0' + Update your Gemfile bundle install diff --git a/scout_apm.gemspec b/scout_apm.gemspec index 07e3faea..882651a9 100644 --- a/scout_apm.gemspec +++ b/scout_apm.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |s| s.add_development_dependency "rake-compiler" s.add_development_dependency "addressable" s.add_development_dependency "activesupport" - s.add_runtime_dependency "parser", Gem::Version.new(RUBY_VERSION).approximate_recommendation + s.add_runtime_dependency "parser" # These are general development dependencies which are used in instrumentation # tests. Specific versions are pulled in using specific gemfiles, e.g.