From 629e3a8b44c204df3a3c5f548d952866dc7ea8b6 Mon Sep 17 00:00:00 2001 From: Brian Koh Date: Thu, 8 Feb 2024 00:19:24 +0800 Subject: [PATCH] Fix parser dependency (#490) --- README.markdown | 4 ++++ scout_apm.gemspec | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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.