Hi Dan,

It appears we were running an edge DM 0.9.14, possibly even patched up
a little bit by us as well (the tracking for that is gone because it
was bundled prior to saving in repo -- a mistake on our part), so when
we went to thor merb:gem:install, it never reinstalled the real DM
0.9.14 because the versioning looked the same.

Here is a diff for morbid curiousity (the /Library one is the real
extlib):

release> diff /Library/Ruby/Gems/1.8/gems/extlib-0.9.14/lib/extlib/
lazy_array.rb gems/gems/extlib-0.9.14/lib/extlib/lazy_array.rb
2c2
<   include Enumerable
---
>   instance_methods.each { |m| undef_method m unless %w[ __id__ __send__ send 
> class dup object_id kind_of? respond_to? equal? assert_kind_of should 
> should_not instance_variable_set instance_variable_get extend 
> ].include?(m.to_s) }
85,89c85
<     (@tail.nil? || @tail.empty?) &&
<     (@head.nil? || @head.empty?) && begin
<       lazy_load
<       @array.empty?
<     end
---
>     !any?
408,417d403
<   def each
<     lazy_load
<     if block_given?
<       @array.each { |entry| yield entry }
<       self
<     else
<       @array.each
<     end
<   end
<
436c422
<         return false unless @head[i].__send__(operator, other[i])
---
>         return false unless @head[i].send(operator, other[i])
443c429
<         return false unless @tail[i].__send__(operator, other[i])
---
>         return false unless @tail[i].send(operator, other[i])
450a437,456
>
>   # add proxies for all remaining Array and Enumerable methods
>   (Array.public_instance_methods(false) | 
> Enumerable.public_instance_methods(false)).each do |method|
>     next if public_method_defined?(method)
>
>     target = if method.to_s[-1, 1] == '='
>       "send(:#{method}, *args, &block)"
>     else
>       "#{method}(*args, &block)"
>     end
>
>     class_eval <<-RUBY, __FILE__, __LINE__ + 1
>       public
>       def #{method}(*args, &block)                # def []=(*args, &block)
>         lazy_load                                 #   lazy_load
>         results = @array.#{target}                #   results = 
> @array.send(:[]=, *args, &block)
>         results.equal?(@array) ? self : results   #   results.equal?(@array) 
> ? self : results
>       end                                         # end
>     RUBY
>   end

--

You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en.


Reply via email to