Questions tagged [ruby-upgrade]

Any questions related to ruby version upgrade can be tagged with this tag.

13 questions
30
votes
3 answers

How to upgrade to ruby 1.9.2

mac os x how to upgrade to ruby 1.9.2
Ethan Zhang
  • 319
  • 1
  • 4
  • 5
13
votes
3 answers

How to upgrade Ruby to 2.0

My ruby version is ruby 1.9.3p374 (2013-01-15) [i386-mingw32] and I am running under Windows 8 with mingw installed. How can I upgrade it to ruby 2.0 ?
Znatz
  • 1,530
  • 2
  • 18
  • 31
3
votes
4 answers

Troubles upgrading from ruby 2.7 to 3.0 - error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING'

I've been struggling with trying to upgrade rails 3.0 for about a week now. I'm not entirely sure what the issue is but I was thinking it could be due to the fact that I have both rvm and rbenv. I've followed the upgrade tutorial from gorails here:…
3
votes
0 answers

Getting "ruby-2.4.2/lib/ruby/2.4.0/forwardable.rb:157 forwarding to private method" while running rspec

I have upgraded my application from Ruby 2.2.3 to Ruby 2.4.2, Rails version is 5.1.4. I am able to upgrade the application but when I run 'bundle exec rspec' getting too many lines similar to ..... "ruby-2.4.2/lib/ruby/2.4.0/forwardable.rb:157…
Ritesh Kumar
  • 2,183
  • 2
  • 20
  • 32
3
votes
2 answers

How to upgrade Ruby patch level for 1.9.3 in RVM?

Based on a previous StackOverflow question it looked like the correct way to upgrade Ruby to the latest patch level was this: $ rvm upgrade 1.9.2 1.9.2-p0 Are you sure you wish to upgrade from ruby-1.9.2-p0 to ruby-1.9.2-p136? (Y/n): Y However,…
at.
  • 50,922
  • 104
  • 292
  • 461
1
vote
0 answers

What is causing the 'Alias parsing was not enabled' error in Psych while upgrading Rails to 6.0.6.1 and how can it be resolved?

Alias parsing was not enabled getting psych error when upgrading rails from 5.2 to 6.0.6.1 .rvm/gems/ruby-2.7.8@reports2/gems/psych-5.1.0/lib/psych/visitors/to_ruby.rb:432:in `visit_Psych_Nodes_Alias': Cannot load database configuration: Alias…
1
vote
1 answer

Upgade to Ruby 3.1 breaks code when using CSV class from standard library

I'm upgrading a Project written for JRuby 1.7 (corresponding on the language level to Ruby 1.9) to JRuby 9.4 (corresponding to Ruby 3.1.0). In this code, we have require 'csv' .... CSV.parse(string, csv_options) { .... } where string is of class…
user1934428
  • 19,864
  • 7
  • 42
  • 87
1
vote
1 answer

Ruby upgrade / downgrade from 1.9.3-p194 to 1.9.3-p286

I just upgraded from ruby 1.9.3-p194 to 1.9.3-p286 via the rvm upgrade command and the gemset. Now when I run rake rails upgrade on my rails app it gives me the following trace: nosh@nosh-VirtualBox:~/Projects/icon$ rake rails update --trace rake…
Nosh
  • 485
  • 7
  • 24
0
votes
2 answers

Ruby 1.8.7 -> upgrade to 1.9.2

I have my app built on Rails 3.0.9 and Ruby 1.8.7. My app works fine, but with one important negative: it's really slow. I have been looking for possible solution for this problem and the best solution seems to be upgrade of my current Ruby version…
user984621
  • 46,344
  • 73
  • 224
  • 412
0
votes
1 answer

Hash collect Ruby23 --> Ruby27 and Rails 5.2 --> Rails 6.1 giving wrong element type nil at 0 (expected array)

I am upgrading Ruby and Rails version for some code package. I have the following code block that is giving me error of wrong element type nil at 0 (expected array) . def some_method(var1) address_to_field_mapping = { 'name' => 'name' …
0
votes
0 answers

`require': libruby.so.1.8: cannot open shared object file: No such file or directory - /app/path/vendor/local/libxml-ruby-2.4.0/lib/libxml_ruby.so

we are trying to upgrade ruby version of our rails application, currently, it's running in ruby 1.8.7 as a initial step trying to upgrade 1.9.2 when we trying to run ./bundle exec rails s we are getting below error …
sakthivel
  • 71
  • 2
  • 10
-1
votes
1 answer

Ruby version mismatch after ruby upgrade without rvm or rbenv

I am using bluepill to manage unicorn and after ruby upgrade unicorn start is failing with below error: /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.17.3/lib/bundler/definition.rb:495:in `validate_ruby!': Your Ruby version is 2.1.4, but your…
vikram
  • 423
  • 4
  • 19
-7
votes
1 answer

Upgrade ruby to 2.4.0

I have upgraded Ruby to version 2.4.0 in my Rails app, but when I try to bundle install, I face with the following error: An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that `gem install json -v '1.8.3'`…