Sha256: 26db446770554e5ce37fc28493c07423ba13cd6e17d0466edd36e98e37664834

Contents?: true

Size: 622 Bytes

Versions: 49

Compression:

Stored size: 622 Bytes

Contents

if RUBY_PLATFORM =~ /mingw|mswin/
  class File
    # buggy File.executable? on windows
    class << self
      undef :executable?
      def executable? *args
        File.stat(*args).executable? rescue nil
      end
    end
  end
end

if RUBY_VERSION == '1.9.1'
  # 1.9.1 bug
  if File.basename(__FILE__).frozen?
    class File
      class << self
        alias :original_basename :basename
        def File.basename *args
          original_basename(*args).dup
        end
      end
    end
  end

end


=begin
rubydoctest: non frozen
>> File.basename(__FILE__).frozen?
=> false

=end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
sane-0.25.8 lib/sane/bugs.rb
sane-0.25.7 lib/sane/bugs.rb
sane-0.25.6 lib/sane/bugs.rb
sane-0.25.5 lib/sane/bugs.rb
sane-0.25.4 lib/sane/bugs.rb
sane-0.25.3 lib/sane/bugs.rb
sane-0.25.2 lib/sane/bugs.rb
sane-0.25.1 lib/sane/bugs.rb
sane-0.25.0 lib/sane/bugs.rb
sane-0.24.6 lib/sane/bugs.rb
sane-0.24.5 lib/sane/bugs.rb
sane-0.24.4 lib/sane/bugs.rb
sane-0.24.3 lib/sane/bugs.rb
sane-0.23.6 lib/sane/bugs.rb
sane-0.24.2 lib/sane/bugs.rb
sane-0.24.1 lib/sane/bugs.rb
sane-0.24.0 lib/sane/bugs.rb
sane-0.23.5 lib/sane/bugs.rb
sane-0.23.4 lib/sane/bugs.rb
sane-0.23.3 lib/sane/bugs.rb