So typically you would simply need to upgrade the rack gem by issuing the below command.
Install The Latest Rack Gem:
[root@dev ~]# gem install rack
Successfully installed rack-1.1.0
1 gem installed
Installing ri documentation for rack-1.1.0...
Installing RDoc documentation for rack-1.1.0...
[root@dev ~]#
View Rack Gem Version Installed On Linux Server:
[root@dev ~]# gem list rack
*** LOCAL GEMS ***
rack (1.1.0, 0.4.0)
rack-test (0.5.3)
However in the case you mention above you need to install the exact version of the rack gem that is being requested. You can install a specific rack gem version by using the below command.
Instal Rack Gem Version 1.0.1 On A Linux Server:
[root@dev ~]# gem install rack -v 1.0.1
Successfully installed rack-1.0.1
1 gem installed
Installing ri documentation for rack-1.0.1...
Installing RDoc documentation for rack-1.0.1...
[root@dev ~]#
Now in my example you can see that I actually have 3 versions of rack installed on the server now.
List Installed Rack Gem Versions:
[root@dev ~]# gem list rack
*** LOCAL GEMS ***
rack (1.1.0, 1.0.1, 0.4.0)
rack-test (0.5.3)
[root@dev ~]#
That should resolve your issue.