I need to pay Rack with the following patch: http://github.com/rack/rack/commit/dae12e088592ee69545b5f2f81b87f4959859164
What is the best practice for this? Should I print the card, apply the patch, and then repack the gem and send it using capistrano to make sure my version of the gem gets to the destination server?
Can I just put the rack in the vendor / plugins / and rely on the fact that it is loaded first before the system crashes?
I want to take the path of least resistance and can easily deploy it in many environments.
, bundler, , Gemfile:
bundler
gem 'rack',: git = > 'git://github.com/my-account/rack.git'
. , .
- , , , , , vendor/plugins.
vendor/plugins
git Bundler , vendor/:
vendor/
gem 'rack', :path => File.join(File.dirname(__FILE__), '/vendor/gems/rack')
" " git / .
Other answers seem to require Bundler / Rails 3. Since I use Rails 2.3.10 and the old Rails config.gem system, they did not work for me.
I managed to find a working solution for the same problem here . The author included the fixed code from Rack 1.2 in the monkey patch for rack 1.1 , and then downloaded the patch file through the initializer.
Source: https://habr.com/ru/post/1750690/More articles:The difference between events with an event with SomeEvent (arg) and SomeEvent.Invoke (arg) - c #Collapse taxonomy in default node field - viewsRails: loss of quotes in message parameters - ruby-on-railsSilverlight DataGridTemplateColumn vs DataGridTextColumn - silverlightIs there a set of open source Netflow Collector C ++ libraries? - c ++Web service does not accept input - .netCrystal Reports Dynamic Image Using URL Formula - imageI am learning C # in vs2008, while vs2010 is available. Am I missing something? - c #Как получить все элементыиз div с помощью Watin? - htmlIs there a way to integrate Google Analytics reports into a website - asp.netAll Articles