lib/vault-tree.rb in vault-tree-0.1.0 vs lib/vault-tree.rb in vault-tree-0.3.3
- old
+ new
@@ -1,7 +1,24 @@
-# require_relative - Ruby > 1.9 method
-# require_rel - 'gem require_all' helper method to require all relative
+# *.rb
+require_relative 'vault-tree/path_helpers'
+require_relative 'vault-tree/version'
-require_relative 'vault-tree/config/dependencies'
-require_relative 'vault-tree/config/path_helpers'
-require_relative 'vault-tree/config/string'
-require_relative 'vault-tree/config/lib'
+# util/*.rb
+require_relative 'vault-tree/util/json'
+require_relative 'vault-tree/util/string'
+
+# lock_smith.rb
+require_relative 'vault-tree/lock_smith'
+
+# exceptions/*.rb
+require_relative 'vault-tree/exceptions/vault_tree_exception'
+VaultTree::PathHelpers.exceptions_files.each {|file| require_relative file }
+
+# contract/*.rb
+VaultTree::PathHelpers.contract_files.each {|file| require_relative file }
+
+# keywords/*.rb
+require_relative 'vault-tree/keywords/keyword'
+VaultTree::PathHelpers.keywords_files.each {|file| require_relative file }
+
+# lock_smith/*.rb
+VaultTree::PathHelpers.lock_smith_files.each {|file| require_relative file }