From 02d53d2d80bbf267db3edf88bb4fe782e50a2906 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 5 May 2015 17:23:06 +0100 Subject: Remove monkeypatch required when running Rails 2.3 under Ruby 1.9 This was added because TMail calls String#is_binary_data? which does not exist in Ruby 1.9.2 onwards. We don't use TMail anymore so this is no longer needed. --- lib/ruby19.rb | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 lib/ruby19.rb (limited to 'lib/ruby19.rb') diff --git a/lib/ruby19.rb b/lib/ruby19.rb deleted file mode 100644 index 39f48d74e..000000000 --- a/lib/ruby19.rb +++ /dev/null @@ -1,8 +0,0 @@ -if RUBY_VERSION.to_f == 1.9 - class String - # @see syck/lib/syck/rubytypes.rb - def is_binary_data? - self.count("\x00-\x7F", "^ -~\t\r\n").fdiv(self.size) > 0.3 || self.index("\x00") unless self.empty? - end - end -end \ No newline at end of file -- cgit v1.2.3