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.23.2 lib/sane/bugs.rb
sane-0.23.1 lib/sane/bugs.rb
sane-0.23.0 lib/sane/bugs.rb
sane-0.22.0 lib/sane/bugs.rb
sane-0.21.3 lib/sane/bugs.rb
sane-0.21.2 lib/sane/bugs.rb
sane-0.21.0 lib/sane/bugs.rb
sane-0.20.3 lib/sane/bugs.rb
sane-0.20.2 lib/sane/bugs.rb
sane-0.20.1 lib/sane/bugs.rb
sane-0.20.0 lib/sane/bugs.rb
sane-0.19.1 lib/sane/bugs.rb
sane-0.19.0 lib/sane/bugs.rb
sane-0.18.0 lib/sane/bugs.rb
sane-0.17.1 lib/sane/bugs.rb
sane-0.17.0 lib/sane/bugs.rb
sane-0.16.1 lib/sane/bugs.rb
sane-0.16.0 lib/sane/bugs.rb
sane-0.15.0 lib/sane/bugs.rb
sane-0.14.0 lib/sane/bugs.rb