Files
gollum/lib/gollum/ruby1.8.rb
T
Chris Hoffman 4e3b4e23da Ruby 1.9 compatibility
* Adds current directory to load path for tests because 1.9 does not
* Aliases String#lines to String#to_a under 1.8 to match 1.9 behavior
* Sets encoding magic comment in test file with characters outside ascii
* Require 'ostruct' explicitly

This depends on a patch to Grit to have full functionality through the
whole stack.
2010-08-14 21:37:00 +00:00

4 lines
88 B
Ruby

class String
alias :lines :to_a if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
end