@@ -265,13 +265,14 @@ def dont_accept_prompt_to_send_diagnostics_report
265265
266266 it "adds the installation report to the diagnostics report" do
267267 run
268- jruby = Appsignal ::System . jruby?
268+ is_jruby = Appsignal ::System . jruby?
269+ with_patchlevel = DependencyHelper . running_jruby10? || !is_jruby
269270 language = {
270271 "name" => "ruby" ,
271- "version" => "#{ RUBY_VERSION } #{ "-p#{ rbconfig [ "PATCHLEVEL" ] } " unless jruby } " ,
272- "implementation" => jruby ? "jruby" : "ruby"
272+ "version" => "#{ RUBY_VERSION } #{ "-p#{ rbconfig [ "PATCHLEVEL" ] } " unless with_patchlevel } " ,
273+ "implementation" => is_jruby ? "jruby" : "ruby"
273274 }
274- language [ "implementation_version" ] = JRUBY_VERSION if jruby
275+ language [ "implementation_version" ] = JRUBY_VERSION if is_jruby
275276 expect ( received_report [ "installation" ] ) . to match (
276277 "result" => {
277278 "status" => "success"
@@ -289,7 +290,7 @@ def dont_accept_prompt_to_send_diagnostics_report
289290 "target" => Appsignal ::System . agent_platform ,
290291 "musl_override" => false ,
291292 "linux_arm_override" => false ,
292- "library_type" => jruby ? "dynamic" : "static" ,
293+ "library_type" => is_jruby ? "dynamic" : "static" ,
293294 "source" => "remote" ,
294295 "dependencies" => kind_of ( Hash ) ,
295296 "flags" => kind_of ( Hash ) ,
0 commit comments