You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with Rails using TorqueBox and JRuby. I recently upgraded to TorqueBox 3.1.2 which included a JRuby upgrade from 1.7.13 to 1.7.19. I noticed a breaking change on Windows machines where the Rails.root will return a Pathname object with backslashes instead of forward slashes. This causes issues in situations where you need to match file paths. For example, this broke our AngularJS Jasmine tests because the jasmine-rails gem was not able to find the application.js file using the Dir.glob method.
I originally thought the issue was with TorqueBox, but upon comparing JRuby version while keeping TorqueBox consistent you can see that JRuby is the cause of the issue. Notice the file paths returned upon running Rails.root in a rails console.
Working Versions
Torquebox 3.1.2 with JRuby 1.7.13 (2.0.0-p195) (JRUBY_OPTS = --2.0)
About your application's environment
Ruby version 2.0.0-p195 (java)
RubyGems version 2.1.9
Rails version 4.1.1
Rails.root = <Pathname:C:/Users/jacollins/RubymineProjects/ViewPoint>
Torquebox 3.1.2 JRuby 1.7.13 (1.9.3-p392)
About your application's environment
Ruby version 1.9.3-p392 (java)
RubyGems version 2.1.9
Rails version 4.1.1
Rails.root = <Pathname:C:/Users/jacollins/RubymineProjects/ViewPoint>
About your application's environment
Ruby version 2.0.0-p598 (java)
RubyGems version 2.1.9
Rails version 4.1.1
Rails.root = <Pathname:C:\Users\jacollins\RubymineProjects\ViewPoint>
Torquebox 3.1.2 JRuby 1.7.19 (1.9.3p551)
About your application's environment
Ruby version 1.9.3-p551 (java)
RubyGems version 2.1.9
Rails version 4.1.1
Rails.root = <Pathname:C:\Users\jacollins\RubymineProjects\ViewPoint>
Let me know if you need any other information.
The text was updated successfully, but these errors were encountered:
optimistically closing this one as a JRuby 1.7.x (EOL-ed) issue.
feel free to let us know if there are any issues with back-slashed on Windows using JRuby 9K
I am working with Rails using TorqueBox and JRuby. I recently upgraded to TorqueBox 3.1.2 which included a JRuby upgrade from 1.7.13 to 1.7.19. I noticed a breaking change on Windows machines where the
Rails.root
will return aPathname
object with backslashes instead of forward slashes. This causes issues in situations where you need to match file paths. For example, this broke our AngularJS Jasmine tests because thejasmine-rails
gem was not able to find theapplication.js
file using theDir.glob
method.I originally thought the issue was with TorqueBox, but upon comparing JRuby version while keeping TorqueBox consistent you can see that JRuby is the cause of the issue. Notice the file paths returned upon running
Rails.root
in a rails console.Working Versions
Torquebox 3.1.2 with JRuby 1.7.13 (2.0.0-p195) (JRUBY_OPTS = --2.0)
Torquebox 3.1.2 JRuby 1.7.13 (1.9.3-p392)
Broken Versions
Torquebox 3.1.2 JRuby 1.7.19 (2.0.0p598) (JRUBY_OPTS = --2.0)
Torquebox 3.1.2 JRuby 1.7.19 (1.9.3p551)
Let me know if you need any other information.
The text was updated successfully, but these errors were encountered: