diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-02-17 11:01:24 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-02-17 11:01:24 -0500 |
commit | afd5812f2fcb879361c986fcce9624a5c283f783 (patch) | |
tree | 40dc575f88127af0ac2ce32c49547dfd1326bc65 /sisu-install | |
parent | document sample skins specify utf-8 (in some cases required by ruby 1.9.1) (diff) |
changelog & version updatesisu_1.0.3
Diffstat (limited to 'sisu-install')
-rwxr-xr-x | sisu-install | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sisu-install b/sisu-install index 3d78c6c1..2b981b94 100755 --- a/sisu-install +++ b/sisu-install @@ -631,28 +631,28 @@ module Rant @items.unshift(entry) if entry !~ ignore_rx self end -if Object.method_defined?(:fcall) || Object.method_defined?(:funcall) # in Ruby 1.9 like __send__ - @@__send_private__ = Object.method_defined?(:fcall) ? :fcall : :funcall - def resolve - @pending = false - @actions.each{ |action| self.__send__(@@__send_private__, *action) }.clear - ix = ignore_rx - if ix - @items.reject! { |f| f =~ ix && !@keep[f] } - end - self - end -else - def resolve - @pending = false - @actions.each{ |action| self.__send__(*action) }.clear - ix = ignore_rx - if ix - @items.reject! { |f| f =~ ix && !@keep[f] } - end - self + if Object.method_defined?(:fcall) || Object.method_defined?(:funcall) # in Ruby 1.9 like __send__ + @@__send_private__ = Object.method_defined?(:fcall) ? :fcall : :funcall + def resolve + @pending = false + @actions.each{ |action| self.__send__(@@__send_private__, *action) }.clear + ix = ignore_rx + if ix + @items.reject! { |f| f =~ ix && !@keep[f] } + end + self + end + else + def resolve + @pending = false + @actions.each{ |action| self.__send__(*action) }.clear + ix = ignore_rx + if ix + @items.reject! { |f| f =~ ix && !@keep[f] } + end + self + end end -end def include(*pats) @def_glob_dotfiles ? glob_all(*pats) : glob_unix(*pats) end |