Skip to content

Commit 0e901b5

Browse files
committed
Let application_id also respect RUBY_VERSION for the use case of switching between Ruby versions for a given Rails app
1 parent 0c12b2b commit 0e901b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
snippet of code inserted into generated binstubs just after Spring is
77
set up. #329 - @merhard
88
* Change monkey-patched `Kernel.raise` from public to private (to match default Ruby behavior) #351 - @mattbrictson
9+
* Let application_id also respect RUBY_VERSION for the use case of switching between Ruby versions for a given Rails app - @methodmissing
910

1011
## 1.1.3
1112

lib/spring/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def tmp_path
3838
end
3939

4040
def application_id
41-
Digest::MD5.hexdigest(project_root.to_s)
41+
Digest::MD5.hexdigest(RUBY_VERSION + project_root.to_s)
4242
end
4343

4444
def socket_path

0 commit comments

Comments
 (0)