Permalink
Browse files

Consolidate all of the files that just do loading.

  • Loading branch information...
1 parent 1cc5d8f commit e77816ecf6beb1a06f785c174f6ba4d61268a0d9 @pangloss committed Sep 21, 2012
View
@@ -39,22 +39,7 @@ module Pacer
require JAR
- require 'pacer/exceptions'
- require 'pacer/pipes'
- require 'pacer/core'
- require 'pacer/graph'
- require 'pacer/routes'
- require 'pacer/wrappers'
- require 'pacer/route_builder'
- require 'pacer/route'
- require 'pacer/blueprints'
- require 'pacer/support'
- require 'pacer/utils'
- require 'pacer/visitors'
- require 'pacer/filter'
- require 'pacer/transform'
- require 'pacer/side_effect'
- require 'pacer/function_resolver'
+ require 'pacer/loader'
class << self
# A global place for pacer to put debug info if it's tucked deep in
@@ -181,6 +166,14 @@ def clear_plugin_cache
FunctionResolver.clear_cache
end
+ def vertex_wrapper(*exts)
+ Wrappers::VertexWrapper.wrapper_for(exts)
+ end
+
+ def edge_wrapper(*exts)
+ Wrappers::EdgeWrapper.wrapper_for(exts)
+ end
+
# Is the object a vertex?
def vertex?(element)
element.is_a? Pacer::Wrappers::VertexWrapper
View
@@ -1,3 +0,0 @@
-require 'pacer/blueprints/tg'
-require 'pacer/blueprints/ruby_graph'
-require 'pacer/blueprints/multi_graph'
View
@@ -1,8 +0,0 @@
-module Pacer
- module Core
- end
-end
-
-require 'pacer/core/route'
-require 'pacer/core/graph'
-require 'pacer/core/side_effect'
View
@@ -1,17 +0,0 @@
-module Pacer
- module Filter
- end
-end
-
-require 'pacer/filter/collection_filter'
-require 'pacer/filter/empty_filter'
-require 'pacer/filter/future_filter'
-require 'pacer/filter/property_filter'
-require 'pacer/filter/range_filter'
-require 'pacer/filter/uniq_filter'
-require 'pacer/filter/index_filter'
-require 'pacer/filter/loop_filter'
-require 'pacer/filter/block_filter'
-require 'pacer/filter/object_filter'
-require 'pacer/filter/where_filter'
-require 'pacer/filter/random_filter'
View
@@ -1,13 +0,0 @@
-module Pacer
- import com.tinkerpop.blueprints.Graph
- import com.tinkerpop.blueprints.Element
- import com.tinkerpop.blueprints.Vertex
- import com.tinkerpop.blueprints.Edge
-end
-
-require 'pacer/graph/graph_transactions_mixin'
-require 'pacer/graph/pacer_graph'
-require 'pacer/graph/simple_encoder'
-require 'pacer/graph/yaml_encoder'
-require 'pacer/graph/graph_ml'
-require 'pacer/graph/hash_index'
View
@@ -0,0 +1,93 @@
+module Pacer
+ import com.tinkerpop.blueprints.Graph
+ import com.tinkerpop.blueprints.Element
+ import com.tinkerpop.blueprints.Vertex
+ import com.tinkerpop.blueprints.Edge
+
+ module Core end
+ module Routes end
+ module Wrappers end
+ module Support end
+ module Visitors end
+ module Filter end
+ module Transform end
+ module SideEffect end
+end
+
+
+require 'pacer/exceptions'
+require 'pacer/pipes'
+
+require 'pacer/core/route'
+require 'pacer/core/graph'
+require 'pacer/core/side_effect'
+
+require 'pacer/graph/graph_transactions_mixin'
+require 'pacer/graph/pacer_graph'
+require 'pacer/graph/simple_encoder'
+require 'pacer/graph/yaml_encoder'
+require 'pacer/graph/graph_ml'
+require 'pacer/graph/hash_index'
+
+require 'pacer/route/mixin/bulk_operations'
+require 'pacer/route/mixin/route_operations'
+
+require 'forwardable'
+require 'pacer/wrappers/element_wrapper'
+require 'pacer/wrappers/vertex_wrapper'
+require 'pacer/wrappers/edge_wrapper'
+require 'pacer/wrappers/index_wrapper'
+require 'pacer/wrappers/wrapper_selector'
+require 'pacer/wrappers/wrapping_pipe_function'
+
+require 'pacer/route_builder'
+require 'pacer/function_resolver'
+require 'pacer/route'
+
+require 'pacer/blueprints/tg'
+require 'pacer/blueprints/ruby_graph'
+require 'pacer/blueprints/multi_graph'
+
+require 'pacer/support/array_list'
+require 'pacer/support/enumerable'
+require 'pacer/support/proc'
+require 'pacer/support/hash'
+require 'pacer/support/native_exception'
+require 'pacer/support/nil_class'
+
+require 'pacer/utils'
+
+require 'pacer/visitors/visits_section'
+require 'pacer/visitors/section'
+
+require 'pacer/filter/collection_filter'
+require 'pacer/filter/empty_filter'
+require 'pacer/filter/future_filter'
+require 'pacer/filter/property_filter'
+require 'pacer/filter/range_filter'
+require 'pacer/filter/uniq_filter'
+require 'pacer/filter/index_filter'
+require 'pacer/filter/loop_filter'
+require 'pacer/filter/block_filter'
+require 'pacer/filter/object_filter'
+require 'pacer/filter/where_filter'
+require 'pacer/filter/random_filter'
+
+require 'pacer/transform/cap'
+require 'pacer/transform/stream_sort'
+require 'pacer/transform/stream_uniq'
+require 'pacer/transform/gather'
+require 'pacer/transform/map'
+require 'pacer/transform/process'
+require 'pacer/transform/join'
+require 'pacer/transform/path'
+require 'pacer/transform/scatter'
+require 'pacer/transform/has_count_cap'
+require 'pacer/transform/sort_section'
+
+require 'pacer/side_effect/aggregate'
+require 'pacer/side_effect/as'
+require 'pacer/side_effect/group_count'
+require 'pacer/side_effect/is_unique'
+require 'pacer/side_effect/counted'
+require 'pacer/side_effect/visitor'
@@ -1,2 +0,0 @@
-require 'pacer/route/mixin/bulk_operations'
-require 'pacer/route/mixin/route_operations'
View
@@ -1,6 +0,0 @@
-module Pacer
- module Routes
- # Defines the Routes namespace
- end
-end
-require 'pacer/route/mixins'
View
@@ -1,11 +0,0 @@
-module Pacer
- module SideEffect
- end
-end
-
-require 'pacer/side_effect/aggregate'
-require 'pacer/side_effect/as'
-require 'pacer/side_effect/group_count'
-require 'pacer/side_effect/is_unique'
-require 'pacer/side_effect/counted'
-require 'pacer/side_effect/visitor'
View
@@ -1,10 +0,0 @@
-module Pacer
- module Support
- end
-end
-require 'pacer/support/array_list'
-require 'pacer/support/enumerable'
-require 'pacer/support/proc'
-require 'pacer/support/hash'
-require 'pacer/support/native_exception'
-require 'pacer/support/nil_class'
View
@@ -1,16 +0,0 @@
-module Pacer
- module Transform
- end
-end
-
-require 'pacer/transform/cap'
-require 'pacer/transform/stream_sort'
-require 'pacer/transform/stream_uniq'
-require 'pacer/transform/gather'
-require 'pacer/transform/map'
-require 'pacer/transform/process'
-require 'pacer/transform/join'
-require 'pacer/transform/path'
-require 'pacer/transform/scatter'
-require 'pacer/transform/has_count_cap'
-require 'pacer/transform/sort_section'
View
@@ -1,7 +0,0 @@
-module Pacer
- module Visitors
- end
-end
-
-require 'pacer/visitors/visits_section'
-require 'pacer/visitors/section'
View
@@ -1,21 +0,0 @@
-require 'forwardable'
-
-module Pacer
- def self.vertex_wrapper(*exts)
- Wrappers::VertexWrapper.wrapper_for(exts)
- end
-
- def self.edge_wrapper(*exts)
- Wrappers::EdgeWrapper.wrapper_for(exts)
- end
-
- module Wrappers
- end
-end
-
-require 'pacer/wrappers/element_wrapper'
-require 'pacer/wrappers/vertex_wrapper'
-require 'pacer/wrappers/edge_wrapper'
-require 'pacer/wrappers/index_wrapper'
-require 'pacer/wrappers/wrapper_selector'
-require 'pacer/wrappers/wrapping_pipe_function'

0 comments on commit e77816e

Please sign in to comment.