summary refs log tree commit diff
path: root/pkgs/servers/web-apps/discourse/plugin_gem_api_version.patch
blob: ca7aa850ec51528c41d5b90712b2eef504a86ad3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/plugin_gem.rb b/lib/plugin_gem.rb
index 855d1aca2c..8115623547 100644
--- a/lib/plugin_gem.rb
+++ b/lib/plugin_gem.rb
@@ -4,7 +4,7 @@ module PluginGem
   def self.load(path, name, version, opts = nil)
     opts ||= {}
 
-    gems_path = File.dirname(path) + "/gems/#{RUBY_VERSION}"
+    gems_path = File.dirname(path) + "/gems/#{Gem.ruby_api_version}"
 
     spec_path = gems_path + "/specifications"