DEV: Replace Rails ends_with? with Ruby end_with? (#12507)

DEV: Replace Rails ends_with? with Ruby end_with? (#12507)

diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
index 6551987..9febcec 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -755,9 +755,9 @@ class Plugin::Instance
         f_str = f.to_s
         if File.directory?(f)
           yield [f, true]
-        elsif f_str.ends_with?(".js.es6") || f_str.ends_with?(".hbs") || f_str.ends_with?(".hbr")
+        elsif f_str.end_with?(".js.es6") || f_str.end_with?(".hbs") || f_str.end_with?(".hbr")
           yield [f, false]
-        elsif transpile_js && f_str.ends_with?(".js")
+        elsif transpile_js && f_str.end_with?(".js")
           yield [f, false]
         end
       end

GitHub sha: 9dca7fe9

This commit appears in #12507 which was approved by eviltrout. It was merged by nbianca.