Sha256: 7371974f05f72ac82a1e8339911c4c38e6a05c7751440235d6ded9fe8d4fdff7

Contents?: true

Size: 367 Bytes

Versions: 11

Compression:

Stored size: 367 Bytes

Contents

# coding: utf-8

unless Symbol.include?(Comparable)
  class Symbol
    include Comparable
    def <=>(other)
      return nil unless other.is_a?(String) || other.is_a?(Symbol)
      to_s <=> other.to_s
    end
  end
end

if RUBY_VERSION < '1.9'
  $KCODE = 'u'
  require 'jcode'
  
  BibTeX::NameParser.patterns[:upper] = /[[:upper:]ÄÖÜ][^\t\r\n\s\{\}\d\\,]*/o
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bibtex-ruby-2.3.4 lib/bibtex/compatibility.rb
bibtex-ruby-2.3.3 lib/bibtex/compatibility.rb
bibtex-ruby-2.3.2 lib/bibtex/compatibility.rb
bibtex-ruby-2.3.1 lib/bibtex/compatibility.rb
bibtex-ruby-2.3.0 lib/bibtex/compatibility.rb
bibtex-ruby-2.2.2 lib/bibtex/compatibility.rb
bibtex-ruby-2.2.1 lib/bibtex/compatibility.rb
bibtex-ruby-2.2.0 lib/bibtex/compatibility.rb
bibtex-ruby-2.1.2 lib/bibtex/compatibility.rb
bibtex-ruby-2.1.1 lib/bibtex/compatibility.rb
bibtex-ruby-2.1.0 lib/bibtex/compatibility.rb