lib/csd/extensions.rb in csd-0.1.5 vs lib/csd/extensions.rb in csd-0.1.6
- old
+ new
@@ -1,2 +1,3 @@
-# encoding: utf-8
-Dir.glob(File.join(File.dirname(__FILE__), 'extensions', '**', '*.rb')) { |file| require file }
+# -*- encoding: UTF-8 -*-
+Dir[File.join(File.dirname(__FILE__), 'extensions', 'core', '*.rb')].sort.each { |path| require "csd/extensions/core/#{File.basename(path, '.rb')}" }
+Dir[File.join(File.dirname(__FILE__), 'extensions', 'gem', '*.rb')].sort.each { |path| require "csd/extensions/gem/#{File.basename(path, '.rb')}" }