stevenhaddox / rvm_fw

RVM::FW - Exposing hidden Rubies for firewalled RVMs
http://rvm-fw.herokuapp.com
MIT License
31 stars 9 forks source link

Modify how MD5 values are accessed #2

Closed stevenhaddox closed 14 years ago

stevenhaddox commented 14 years ago

Currently (application.rb) MD5 values are generated manually and then stuck into a hash of rubies by version that contains path-prefix (see issue #1) and MD5 hash value.

We should modify this so that we extract MD5 hashes from: http://github.com/wayneeseguin/rvm/blob/master/config/md5. This will probably mean that we need to copy the md5 file from RVM itself into our project as we cannot assume the server hosting the sinatra app will have a local RVM install. It will also prevent us from having to update MD5 values by hand / including them in application.rb and is worth parsing the md5 file RVM provides for us I think.

These MD5 values are currently displayed in this view: http://github.com/stevenhaddox/rvm_fw/blob/master/views/files.haml

stevenhaddox commented 14 years ago

No longer applicable. Just pull the MD5 sum from ~/.rvm/config/md5 and paste into our /config/rubies.yml file when manually adding rubies.