Sha256: edfabf0e04381c710d3c7ee999e36f00b5a388478d0419123fb398fd2bb0ce2b

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

# Copyright 2018 Twitter, Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

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
  emoji_regex
  regex
  rewriter
  autolink
  extractor
  unicode
  weighted_range
  configuration
  validation
  hit_highlighter
).each do |name|
  require "twitter-text/#{name}"
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/twitter-text-3.1.0/lib/twitter-text.rb
twitter-text-3.1.0 lib/twitter-text.rb
twitter-text-simpleidn-3.0.0.0 lib/twitter-text.rb
twitter-text-3.0.0 lib/twitter-text.rb