Skip to content

Commit c80a277

Browse files
committed
rbconfig not accurate on ruby version
1 parent 4ab296b commit c80a277

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/raven/context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def os_context
3434
def runtime_context
3535
@runtime_context ||= {
3636
"name" => RbConfig::CONFIG["ruby_install_name"],
37-
"version" => RbConfig::CONFIG["ruby_version"]
37+
"version" => Raven.sys_command("ruby -v")
3838
}
3939
end
4040
end

spec/raven/event_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
end
6868

6969
it 'has runtime' do
70-
expect(hash[:contexts][:runtime]["version"]).to eq(RbConfig::CONFIG["ruby_version"])
70+
expect(hash[:contexts][:runtime]["version"]).to eq(`ruby -v`)
7171
end
7272
end
7373

0 commit comments

Comments
 (0)