Sha256: 281bc892ae2b46a771526014ad3b36617f22239644e129fdb8a84fa656ba2230

Contents?: true

Size: 437 Bytes

Versions: 12

Compression:

Stored size: 437 Bytes

Contents

major, minor, patch = RUBY_VERSION.split('.')

$RUBY_1_9 = if major.to_i == 1 && minor.to_i < 9
  # Ruby 1.8 KCODE check. Not needed on 1.9 and later.
  raise("twitter-text requires the $KCODE variable be set to 'UTF8' or 'u'") unless $KCODE[0].chr =~ /u/i
  false
else
  true
end

%w(
  deprecation
  regex
  rewriter
  autolink
  extractor
  unicode
  validation
  hit_highlighter
).each do |name|
  require "twitter-text/#{name}"
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
twitter-text-1.9.2 lib/twitter-text.rb
twitter-text-1.9.1 lib/twitter-text.rb
twitter-text-1.9.0 lib/twitter-text.rb
twitter-text-1.8.0 lib/twitter-text.rb
twitter-text-1.7.0 lib/twitter-text.rb
twitter-text-1.6.4 lib/twitter-text.rb
twitter-text-relative-1.6.2.1 lib/twitter-text.rb
twitter-text-1.6.3 lib/twitter-text.rb
twitter-text-1.6.2 lib/twitter-text.rb
ritter-0.0.88 lib/twitter-text.rb
twitter-text-editted-1.0.0 lib/twitter-text.rb
twitter-text-1.6.1 lib/twitter-text.rb