Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/twine
diff options
context:
space:
mode:
authorSebastian Celis <sebastian@sebastiancelis.com>2016-04-01 22:58:57 +0300
committerSebastian Celis <sebastian@sebastiancelis.com>2016-04-01 22:58:57 +0300
commit035afe3df3607682307bfdbf223e85a9520c42f4 (patch)
treedc1a7b4b9f3463fea7a796adb4e8b02d38c89d65 /lib/twine
parentae31911a627eae4cd2fb784a29793b6f2484eab0 (diff)
Be explicit when requiring formatters.
I think I prefer this explicitness over the prior automatic importing code. It feels safer (it won't load files that are placed into the formatters folder that shouldn't be there) and it avoids the issue we had in #145 where formatters can load in arbitrary order.
Diffstat (limited to 'lib/twine')
-rw-r--r--lib/twine/formatters.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/twine/formatters.rb b/lib/twine/formatters.rb
index d75b1c1..49f4aa5 100644
--- a/lib/twine/formatters.rb
+++ b/lib/twine/formatters.rb
@@ -18,8 +18,3 @@ module Twine
end
end
end
-
-require File.join(File.dirname(__FILE__), 'formatters', 'abstract.rb')
-Dir[File.join(File.dirname(__FILE__), 'formatters', '*.rb')].each do |file|
- require file
-end