Actually I'm pretty sure that the new way to include md5 in ruby 1.9.1 is: require 'digest/md5'. There seems to be some chatter about this on the intarwebs, e.g.:
http://forums.rightscale.com/showthread.php?t=169 I tried a hardlink from digest/md5.rb to md5.rb, but that doesn't help. This is a major pain as a great many programs include md5 and will thus have to be updated. When I edit /opt/lib/ ruby/gems/1.9.1/gems/rflickr-2006.02.01/lib/flickr/base.rb and then run LBL, I find that my changes magically vanish and it gets reset to the original file. How does this happen, and where should I be making these edits instead? I'm such a n00b ;). I'll eventually remove the offending gems, create a locally modified version (submitting my changes to the respective projects), and re-install them, but I'd like to know how that happens. Thanks, Brent On Mar 24, 5:46 am, Steven Bristol <[email protected]> wrote: > On Tue, Mar 23, 2010 at 7:27 PM, Brent <[email protected]> wrote: > > OK, more progress! The problem seems to be that LBL is essentially > > not ready for ruby 1.9.1. > > > Here's what I did so far: > > > Removed these plugins: shoulda, thinking-sphinx and installed them as > > gems instead. > > > Changed config/environment.rb so that: > > config.gem 'hpricot', :version=> '0.8.2' > > > The => was somehow being interpreted as =0.6.164, and the -v0.6.164 > > hpricot wouldn't build for me. > > > Modified these two lines at the top of the flickr gem file "/opt/lib/ > > ruby/gems/1.9.1/gems/rflickr-2006.02.01/lib/flickr/base.rb": > > > require 'digest/md5' > > # no longer needed in 1.9.1 # require 'parsedate' > > > And now... > > > :~/lovd/lovdbyless]$ rake --trace lovdbyless:getting_started > > (in /home/admin/brentk/lovd/lovdbyless) > > ** Invoke lovdbyless:getting_started (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > ** Invoke lovdbyless:check (first_time) > > ** Execute lovdbyless:check > > TODO - check that all config ready > > ** Invoke gems:dependent:install (first_time) > > ** Execute gems:dependent:install > > Updating class cache with 3136 classes... > > Updating class cache with 3136 classes... > > Updating class cache with 3136 classes... > > ** Invoke db:create:all (first_time) > > ** Invoke db:load_config (first_time) > > ** Invoke rails_env (first_time) > > ** Execute rails_env > > ** Execute db:load_config > > ** Execute db:create:all > > Couldn't create database for {"adapter"=>"mysql", > > "database"=>"lovdbyless_development", "username"=>"rails", > > "password"=>"...", "encoding"=>"utf8"}, charset: utf8, collation: > > utf8_unicode_ci (if you set the charset manually, make sure you have a > > matching collation) > > Couldn't create database for {"adapter"=>"mysql", > > "database"=>"lovdbyless_test", "username"=>"rails", "password"=>"...", > > "encoding"=>"utf8"}, charset: utf8, collation: utf8_unicode_ci (if you > > set the charset manually, make sure you have a matching collation) > > Couldn't create database for {"adapter"=>"mysql", > > "database"=>"lovdbyless_production", "username"=>"rails", > > "password"=>"...", "encoding"=>"utf8"}, charset: utf8, collation: > > utf8_unicode_ci (if you set the charset manually, make sure you have a > > matching collation) > > ** Invoke mig (first_time) > > ** Execute mig > > rake db:migrate RAILS_ENV="development" > > (in /home/admin/brentk/lovd/lovdbyless) > > rake aborted! > > no such file to load -- md5 > > > (See full trace by running task with --trace) > > rake db:test:clone > > (in /home/admin/brentk/lovd/lovdbyless) > > rake aborted! > > no such file to load -- md5 > > > (See full trace by running task with --trace) > > (in /home/admin/brentk/lovd/lovdbyless) > > rake aborted! > > no such file to load -- md5 > > > (See full trace by running task with --trace) > > ** Execute lovdbyless:getting_started > > Finished setting up enviornment and application! > > /home/admin/brentk/lovd/lovdbyless/vendor/gems/redgreen-1.2.2/lib/ > > redgreen.rb:17:in `initialize': wrong number of arguments (3 for 2) > > (ArgumentError) > > from /opt/lib/ruby/gems/1.9.1/gems/test-unit-2.0.7/lib/test/ > > unit/ui/testrunnerutilities.rb:24:in `new' > > from /opt/lib/ruby/gems/1.9.1/gems/test-unit-2.0.7/lib/test/ > > unit/ui/testrunnerutilities.rb:24:in `run' > > from /opt/lib/ruby/gems/1.9.1/gems/test-unit-2.0.7/lib/test/ > > unit/autorunner.rb:304:in `run' > > from /opt/lib/ruby/gems/1.9.1/gems/test-unit-2.0.7/lib/test/ > > unit/autorunner.rb:52:in `run' > > from /opt/lib/ruby/gems/1.9.1/gems/test-unit-2.0.7/lib/test/ > > unit.rb:321:in `block in <top (required)>' > > It looks like the file/gem md5 is missing. You are correct, no one has > ported loved to 1.9 yet. Looks like you are doing good work, keep it > up! > > cheers, > steven bristol -- You received this message because you are subscribed to the Google Groups "Lovd by Less" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/lovdbyless?hl=en Who loves ya baby? To unsubscribe from this group, send email to lovdbyless+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
