lib/core/facets/string.rb in facets-2.9.1 vs lib/core/facets/string.rb in facets-2.9.2
- old
+ new
@@ -1,6 +1,136 @@
-dir, base = *File.split(__FILE__)
-base = base.chomp('.rb')
-Dir[File.join(dir, base, '*.rb')].each do |lib|
- require "facets/#{base}/#{File.basename(lib)}"
+# Require all String core extensions.
+
+if RUBY_VERSION < '1.9'
+ require "facets/string/align.rb"
+ require "facets/string/bracket.rb"
+ require "facets/string/bytes.rb"
+ require "facets/string/camelcase.rb"
+ require "facets/string/capitalized.rb"
+ require "facets/string/characters.rb"
+ require "facets/string/cleanlines.rb"
+ require "facets/string/cleave.rb"
+ require "facets/string/cmp.rb"
+ require "facets/string/compress_lines.rb"
+ require "facets/string/divide.rb"
+ require "facets/string/each_char.rb"
+ require "facets/string/each_word.rb"
+ require "facets/string/edit_distance.rb"
+ require "facets/string/end_with.rb"
+ require "facets/string/exclude.rb"
+ require "facets/string/expand_tab.rb"
+ require "facets/string/file.rb"
+ require "facets/string/fold.rb"
+ require "facets/string/indent.rb"
+ require "facets/string/index_all.rb"
+ require "facets/string/interpolate.rb"
+ require "facets/string/lchomp.rb"
+ require "facets/string/line_wrap.rb"
+ require "facets/string/lines.rb"
+ require "facets/string/lowercase.rb"
+ require "facets/string/margin.rb"
+ require "facets/string/methodize.rb"
+ require "facets/string/modulize.rb"
+ require "facets/string/mscan.rb"
+ require "facets/string/natcmp.rb"
+ require "facets/string/nchar.rb"
+ require "facets/string/newlines.rb"
+ require "facets/string/op_div.rb"
+ require "facets/string/op_sub.rb"
+ require "facets/string/outdent.rb"
+ require "facets/string/pathize.rb"
+ require "facets/string/quote.rb"
+ require "facets/string/random_binary.rb"
+ require "facets/string/range.rb"
+ require "facets/string/range_all.rb"
+ require "facets/string/range_of_line.rb"
+ require "facets/string/rewrite.rb"
+ require "facets/string/shatter.rb"
+ require "facets/string/similarity.rb"
+ require "facets/string/snakecase.rb"
+ require "facets/string/splice.rb"
+ require "facets/string/squish.rb"
+ require "facets/string/start_with.rb"
+ require "facets/string/store.rb"
+ require "facets/string/subtract.rb"
+ require "facets/string/tab.rb"
+ require "facets/string/tabto.rb"
+ require "facets/string/titlecase.rb"
+ require "facets/string/to_re.rb"
+ require "facets/string/unbracket.rb"
+ require "facets/string/underscore.rb"
+ require "facets/string/unfold.rb"
+ require "facets/string/unindent.rb"
+ require "facets/string/unquote.rb"
+ require "facets/string/uppercase.rb"
+ require "facets/string/variablize.rb"
+ require "facets/string/word_wrap.rb"
+ require "facets/string/words.rb"
+ require "facets/string/xor.rb"
+else
+ require_relative "string/align.rb"
+ require_relative "string/bracket.rb"
+ require_relative "string/bytes.rb"
+ require_relative "string/camelcase.rb"
+ require_relative "string/capitalized.rb"
+ require_relative "string/characters.rb"
+ require_relative "string/cleanlines.rb"
+ require_relative "string/cleave.rb"
+ require_relative "string/cmp.rb"
+ require_relative "string/compress_lines.rb"
+ require_relative "string/divide.rb"
+ require_relative "string/each_char.rb"
+ require_relative "string/each_word.rb"
+ require_relative "string/edit_distance.rb"
+ require_relative "string/end_with.rb"
+ require_relative "string/exclude.rb"
+ require_relative "string/expand_tab.rb"
+ require_relative "string/file.rb"
+ require_relative "string/fold.rb"
+ require_relative "string/indent.rb"
+ require_relative "string/index_all.rb"
+ require_relative "string/interpolate.rb"
+ require_relative "string/lchomp.rb"
+ require_relative "string/line_wrap.rb"
+ require_relative "string/lines.rb"
+ require_relative "string/lowercase.rb"
+ require_relative "string/margin.rb"
+ require_relative "string/methodize.rb"
+ require_relative "string/modulize.rb"
+ require_relative "string/mscan.rb"
+ require_relative "string/natcmp.rb"
+ require_relative "string/nchar.rb"
+ require_relative "string/newlines.rb"
+ require_relative "string/op_div.rb"
+ require_relative "string/op_sub.rb"
+ require_relative "string/outdent.rb"
+ require_relative "string/pathize.rb"
+ require_relative "string/quote.rb"
+ require_relative "string/random_binary.rb"
+ require_relative "string/range.rb"
+ require_relative "string/range_all.rb"
+ require_relative "string/range_of_line.rb"
+ require_relative "string/rewrite.rb"
+ require_relative "string/shatter.rb"
+ require_relative "string/similarity.rb"
+ require_relative "string/snakecase.rb"
+ require_relative "string/splice.rb"
+ require_relative "string/squish.rb"
+ require_relative "string/start_with.rb"
+ require_relative "string/store.rb"
+ require_relative "string/subtract.rb"
+ require_relative "string/tab.rb"
+ require_relative "string/tabto.rb"
+ require_relative "string/titlecase.rb"
+ require_relative "string/to_re.rb"
+ require_relative "string/unbracket.rb"
+ require_relative "string/underscore.rb"
+ require_relative "string/unfold.rb"
+ require_relative "string/unindent.rb"
+ require_relative "string/unquote.rb"
+ require_relative "string/uppercase.rb"
+ require_relative "string/variablize.rb"
+ require_relative "string/word_wrap.rb"
+ require_relative "string/words.rb"
+ require_relative "string/xor.rb"
end