From francesco.malvezzi at unimore.it Wed Dec 12 04:30:28 2007 From: francesco.malvezzi at unimore.it (Francesco Malvezzi) Date: Wed, 12 Dec 2007 10:30:28 +0100 Subject: [asl-devel 00008] Problem with release 0.0.5 Message-ID: <475FAA34.3040207@unimore.it> Regards! Compliment for this very useful software. I used since version 0.0.4 without trouble. With version 0.0.5 I found two problem: gem install activesambaldap fails with: ERROR: Error installing activesambaldap: activesambaldap requires ruby-activeldap (>= 0.9.0) of course it's not possible, because ruby-activeldap changed name to: activeldap with version 0.9.0 Maybe something wrong with my gem conf: RubyGems Environment: - RUBYGEMS VERSION: 0.9.5 (0.9.5) - RUBY VERSION: 1.8.5 (2006-08-25) [i486-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /usr/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org (Debian/Etch) If I install gem with gem fetch/update it works, but then: # asl-populate /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant Reloadable (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:465:in `const_missing' from /usr/local/lib/site_ruby/1.8/active_samba_ldap/reloadable.rb:5:in `included' from /usr/local/lib/site_ruby/1.8/active_samba_ldap/reloadable.rb:4:in `class_eval' from /usr/local/lib/site_ruby/1.8/active_samba_ldap/reloadable.rb:4:in `included' from /usr/local/lib/site_ruby/1.8/active_samba_ldap/base.rb:116:in `include' from /usr/local/lib/site_ruby/1.8/active_samba_ldap/base.rb:116 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:496:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:342:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:496:in `require' from /usr/local/lib/site_ruby/1.8/active_samba_ldap.rb:21 from /usr/bin/asl-populate:7:in `require' from /usr/bin/asl-populate:7 Should I get activesambaldap from svn? Thank you again, Francesco Malvezzi From kou at cozmixng.org Wed Dec 12 05:46:26 2007 From: kou at cozmixng.org (Kouhei Sutou) Date: Wed, 12 Dec 2007 19:46:26 +0900 (JST) Subject: [asl-devel 00009] Re: Problem with release 0.0.5 In-Reply-To: <475FAA34.3040207@unimore.it> References: <475FAA34.3040207@unimore.it> Message-ID: <20071212.194626.-319648204.kou@cozmixng.org> Hi, > Compliment for this very useful software. Thanks. :) > With version 0.0.5 I found two problem: > > gem install activesambaldap fails with: > ERROR: Error installing activesambaldap: > activesambaldap requires ruby-activeldap (>= 0.9.0) > of course it's not possible, because ruby-activeldap changed name to: > activeldap with version 0.9.0 > > Maybe something wrong with my gem conf: No. It's ActiveSambaLdap's problem. I've fixed in trunk. > If I install gem with gem fetch/update it works, but then: > # asl-populate > /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:266:in > `load_missing_constant': uninitialized constant Reloadable (NameError) I've fixed this too in trunk. > Should I get activesambaldap from svn? You can apply a small patch to fix the problem: (super is optional.) Index: lib/active_samba_ldap/reloadable.rb =================================================================== --- lib/active_samba_ldap/reloadable.rb (revision 136) +++ lib/active_samba_ldap/reloadable.rb (revision 137) @@ -1,6 +1,8 @@ module ActiveSambaLdap module Reloadable def self.included(base) + super + return unless Object.const_defined?(:Reloadable) base.class_eval do if ::Reloadable.const_defined?(:Deprecated) include ::Reloadable::Deprecated Thanks, -- kou From francesco.malvezzi at unimore.it Fri Dec 14 03:22:50 2007 From: francesco.malvezzi at unimore.it (Francesco Malvezzi) Date: Fri, 14 Dec 2007 09:22:50 +0100 Subject: [asl-devel 00010] Re: Problem with release 0.0.5 In-Reply-To: <20071212.194626.-319648204.kou@cozmixng.org> References: <475FAA34.3040207@unimore.it> <20071212.194626.-319648204.kou@cozmixng.org> Message-ID: <47623D5A.4040206@unimore.it> > > Index: lib/active_samba_ldap/reloadable.rb > =================================================================== > --- lib/active_samba_ldap/reloadable.rb (revision 136) > +++ lib/active_samba_ldap/reloadable.rb (revision 137) > @@ -1,6 +1,8 @@ > module ActiveSambaLdap > module Reloadable > def self.included(base) > + super > + return unless Object.const_defined?(:Reloadable) > base.class_eval do > if ::Reloadable.const_defined?(:Deprecated) > include ::Reloadable::Deprecated > thanks: it works like a charm, Francesco