Sha256: 2ec6a5a95981d1ccbbbe63e321e1c70179293e532c2b98da9417529f44361f25

Contents?: true

Size: 564 Bytes

Versions: 37

Compression:

Stored size: 564 Bytes

Contents

# NOTE: Ruby 1.9 isn't fully supported yet.
# There are some encoding handlers and some of the dependencies are not fully working yet.
# One should wait for Ruby 2.0 for production use anyway.

# Ruby 1.9 encoding defaults.
# This is clearly not enough but a good start for fixing the encoding madness.
Encoding.default_external = Encoding::BINARY
Encoding.default_internal = Encoding::BINARY

# Ruby 1.9 doesn't have String#each anymore.
# This is a backwards-compatible work-around.
class String
  def each 
    self.split($/).each { |e| yield e } 
  end 
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
rsence-2.1.6 lib/util/ruby19_fixes.rb
rsence-2.1.5 lib/util/ruby19_fixes.rb
rsence-2.1.4 lib/util/ruby19_fixes.rb
rsence-2.1.3 lib/util/ruby19_fixes.rb
rsence-2.1.2 lib/util/ruby19_fixes.rb
rsence-2.1.1 lib/util/ruby19_fixes.rb
rsence-2.1.0 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.21 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.20 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.19 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.18 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.17 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.16 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.15 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.14 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.13 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.12 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.11 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.10 lib/util/ruby19_fixes.rb
rsence-pre-2.1.0.9 lib/util/ruby19_fixes.rb