incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1159107 - /incubator/deltacloud/trunk/client/lib/deltacloud.rb
Date Thu, 18 Aug 2011 09:17:53 GMT
Author: mfojtik
Date: Thu Aug 18 09:17:53 2011
New Revision: 1159107

URL: http://svn.apache.org/viewvc?rev=1159107&view=rev
Log:
Client: don't require lib/base_object

client/lib/deltacloud.rb was recently changed to require 'lib/base_object'
rather than 'base_object' which results in:

  $ irb -rubygems
  irb(main):001:0> require 'deltacloud'
  LoadError: no such file to load -- lib/base_object
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:26
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
    from (irb):1

When you load a gem, 'lib' is automatically included in the load path.

Modified:
    incubator/deltacloud/trunk/client/lib/deltacloud.rb

Modified: incubator/deltacloud/trunk/client/lib/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/lib/deltacloud.rb?rev=1159107&r1=1159106&r2=1159107&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/lib/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/client/lib/deltacloud.rb Thu Aug 18 09:17:53 2011
@@ -23,7 +23,7 @@ require 'logger'
 require 'hwp_properties'
 require 'instance_state'
 require 'documentation'
-require 'lib/base_object'
+require 'base_object'
 require 'client_bucket_methods'
 
 module DeltaCloud



Mime
View raw message