pacer 1.0.2-java → 1.0.3-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/blog/2012-09-18-pacer-1.0.md +63 -0
  2. data/lib/pacer/core/graph/element_route.rb +8 -4
  3. data/lib/pacer/core/graph/vertices_route.rb +1 -1
  4. data/lib/pacer/core/route.rb +20 -0
  5. data/lib/pacer/exceptions.rb +1 -0
  6. data/lib/pacer/filter/future_filter.rb +2 -0
  7. data/lib/pacer/graph/graph_transactions_mixin.rb +13 -12
  8. data/lib/pacer/graph/hash_index.rb +29 -0
  9. data/lib/pacer/graph/pacer_graph.rb +23 -6
  10. data/lib/pacer/graph/simple_encoder.rb +9 -4
  11. data/lib/pacer/graph/yaml_encoder.rb +18 -31
  12. data/lib/pacer/loader.rb +93 -0
  13. data/lib/pacer/route/mixin/bulk_operations.rb +1 -1
  14. data/lib/pacer/route.rb +0 -151
  15. data/lib/pacer/route_builder.rb +142 -0
  16. data/lib/pacer/side_effect/as.rb +1 -3
  17. data/lib/pacer/version.rb +1 -1
  18. data/lib/pacer/wrappers/edge_wrapper.rb +13 -16
  19. data/lib/pacer/wrappers/element_wrapper.rb +12 -22
  20. data/lib/pacer/wrappers/vertex_wrapper.rb +7 -4
  21. data/lib/{pacer-1.0.2-standalone.jar → pacer-1.0.3-standalone.jar} +0 -0
  22. data/lib/pacer.rb +9 -15
  23. data/pom.xml +1 -1
  24. data/spec/pacer/blueprints/dex_spec.rb +1 -154
  25. data/spec/pacer/blueprints/neo4j_spec.rb +8 -154
  26. data/spec/pacer/blueprints/orient_spec.rb +5 -0
  27. data/spec/pacer/blueprints/tg_spec.rb +1 -76
  28. data/spec/pacer/core/graph/vertices_route_spec.rb +32 -5
  29. data/spec/pacer/graph/pacer_graph_spec.rb +304 -336
  30. data/spec/pacer/graph/simple_encoder_spec.rb +78 -0
  31. data/spec/pacer/graph/yaml_encoder_spec.rb +71 -0
  32. data/spec/pacer/transform/join_spec.rb +1 -1
  33. data/spec/pacer/utils/tsort_spec.rb +1 -3
  34. data/spec/pacer/wrapper/edge_wrapper_spec.rb +46 -40
  35. data/spec/pacer/wrapper/element_wrapper_spec.rb +8 -13
  36. data/spec/support/graph_runner.rb +12 -3
  37. metadata +13 -14
  38. data/lib/pacer/blueprints.rb +0 -3
  39. data/lib/pacer/core.rb +0 -8
  40. data/lib/pacer/filter.rb +0 -17
  41. data/lib/pacer/graph.rb +0 -12
  42. data/lib/pacer/route/mixins.rb +0 -2
  43. data/lib/pacer/routes.rb +0 -6
  44. data/lib/pacer/side_effect.rb +0 -11
  45. data/lib/pacer/support.rb +0 -10
  46. data/lib/pacer/transform.rb +0 -16
  47. data/lib/pacer/visitors.rb +0 -7
  48. data/lib/pacer/wrappers.rb +0 -21
@@ -0,0 +1,78 @@
1
+ require 'spec_helper'
2
+
3
+ Run.tg do
4
+ describe Pacer::SimpleEncoder do
5
+ use_simple_graph_data
6
+
7
+ let(:original) do
8
+ { :string => ' bob ',
9
+ :symbol => :abba,
10
+ :empty => '',
11
+ :integer => 121,
12
+ :float => 100.001,
13
+ :time => Time.utc(1999, 11, 9, 9, 9, 1),
14
+ :object => { :a => 1, 1 => :a },
15
+ :set => Set[1, 2, 3],
16
+ :nested_array => [1, 'a', [2]],
17
+ :ok_string => 'string value'
18
+ }
19
+ end
20
+
21
+ describe '#encode_property' do
22
+ subject do
23
+ pairs = original.map do |name, value|
24
+ [name, Pacer::SimpleEncoder.encode_property(value)]
25
+ end
26
+ Hash[pairs]
27
+ end
28
+
29
+ it { should_not equal(original) }
30
+
31
+ specify 'string should be stripped' do
32
+ subject[:string].should == 'bob'
33
+ end
34
+
35
+ specify 'empty string becomes nil' do
36
+ subject[:empty].should be_nil
37
+ end
38
+
39
+ it 'should not change anything else' do
40
+ # remove values that get cleaned up when encoded
41
+ original.delete :string
42
+ original.delete :empty
43
+
44
+ original.values.each do |value|
45
+ encoded = Pacer::SimpleEncoder.encode_property(value)
46
+ encoded.should == value
47
+ end
48
+ end
49
+
50
+ end
51
+
52
+ describe '#decode_property' do
53
+ it 'should round-trip cleanly' do
54
+ # remove values that get cleaned up when encoded
55
+ original.delete :string
56
+ original.delete :empty
57
+
58
+ original.values.each do |value|
59
+ encoded = Pacer::SimpleEncoder.encode_property(value)
60
+ decoded = Pacer::SimpleEncoder.decode_property(encoded)
61
+ decoded.should == value
62
+ end
63
+ end
64
+
65
+ it 'should strip strings' do
66
+ encoded = Pacer::SimpleEncoder.encode_property(' a b c ')
67
+ decoded = Pacer::SimpleEncoder.decode_property(encoded)
68
+ decoded.should == 'a b c'
69
+ end
70
+
71
+ it 'empty strings -> nil' do
72
+ encoded = Pacer::SimpleEncoder.encode_property(' ')
73
+ decoded = Pacer::SimpleEncoder.decode_property(encoded)
74
+ decoded.should be_nil
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+
3
+ describe Pacer::YamlEncoder do
4
+ let(:original) do
5
+ { :string => ' bob ',
6
+ :symbol => :abba,
7
+ :empty => '',
8
+ :integer => 121,
9
+ :float => 100.001,
10
+ :time => Time.utc(1999, 11, 9, 9, 9, 1),
11
+ :object => { :a => 1, 1 => :a },
12
+ :set => Set[1, 2, 3],
13
+ :nested_array => [1, 'a', [2]],
14
+ :ok_string => 'string value'
15
+ }
16
+ end
17
+
18
+ describe '#encode_property' do
19
+ subject do
20
+ pairs = original.map do |name, value|
21
+ [name, Pacer::YamlEncoder.encode_property(value)]
22
+ end
23
+ Hash[pairs]
24
+ end
25
+
26
+ it { should_not equal(original) }
27
+
28
+ specify 'string should be stripped' do
29
+ subject[:string].should == 'bob'
30
+ end
31
+
32
+ specify 'empty string becomes nil' do
33
+ subject[:empty].should be_nil
34
+ end
35
+
36
+ specify 'numbers should be javafied' do
37
+ subject[:integer].should == 121.to_java(:long)
38
+ subject[:float].should == 100.001
39
+ end
40
+
41
+ specify 'everything else should be yaml' do
42
+ subject[:time].should == ' ' + YAML.dump(Time.utc(1999, 11, 9, 9, 9, 1))
43
+ end
44
+ end
45
+
46
+ describe '#decode_property' do
47
+ it 'should round-trip cleanly' do
48
+ # remove values that get cleaned up when encoded
49
+ original.delete :string
50
+ original.delete :empty
51
+
52
+ original.values.each do |value|
53
+ encoded = Pacer::YamlEncoder.encode_property(value)
54
+ decoded = Pacer::YamlEncoder.decode_property(encoded)
55
+ decoded.should == value
56
+ end
57
+ end
58
+
59
+ it 'should strip strings' do
60
+ encoded = Pacer::YamlEncoder.encode_property(' a b c ')
61
+ decoded = Pacer::YamlEncoder.decode_property(encoded)
62
+ decoded.should == 'a b c'
63
+ end
64
+
65
+ it 'empty strings -> nil' do
66
+ encoded = Pacer::YamlEncoder.encode_property(' ')
67
+ decoded = Pacer::YamlEncoder.decode_property(encoded)
68
+ decoded.should be_nil
69
+ end
70
+ end
71
+ end
@@ -133,7 +133,7 @@ Run.tg :read_only do
133
133
 
134
134
  specify do
135
135
  counted_group.inspect.should ==
136
- "#<GraphV -> V-Join(#<V -> Obj(type)>: {:count=>#<V -> outE -> Obj-Cap(E-Counted)>, :out_e=>#<V -> outE>})>"
136
+ "#<GraphV -> V-Join(#<V -> Obj(type) -> decode>: {:count=>#<V -> outE -> Obj-Cap(E-Counted)>, :out_e=>#<V -> outE>})>"
137
137
  end
138
138
  end
139
139
  end
@@ -76,9 +76,7 @@ describe Pacer::Utils::TSort do
76
76
  vertices = graph.v.only([a,b]).result
77
77
  edges = graph.e.lookahead(:min => 2) { |e| e.both_v.only(vertices) }.result
78
78
  subgraph = (vertices.to_a + edges.to_a).to_route(:graph => graph, :element_type => :mixed).subgraph
79
- # The elements aren't the same since they've been copied into a
80
- # new graph:
81
- subgraph.v(Pacer::Utils::TSort).tsort.element_ids.to_a.should == ['b', 'a']
79
+ subgraph.v(Pacer::Utils::TSort).tsort.element_ids.to_a.should == ['a', 'b']
82
80
  end
83
81
 
84
82
  it 'can be sorted with a custom dependencies block' do
@@ -1,9 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  Run.all :read_only do
4
- use_pacer_graphml_data :read_only
5
-
6
4
  describe Pacer::Wrappers::EdgeWrapper do
5
+ use_pacer_graphml_data :read_only
7
6
 
8
7
  let(:e_exts) { [Tackle::SimpleMixin, TP::Wrote] }
9
8
  let(:e_wrapper_class) { Pacer::Wrappers::EdgeWrapper.wrapper_for e_exts }
@@ -32,9 +31,8 @@ Run.all :read_only do
32
31
  end
33
32
  end
34
33
  end
35
- end
36
34
 
37
- shared_examples_for Pacer::Wrappers::EdgeWrapper do
35
+ describe Pacer::Wrappers::EdgeWrapper do
38
36
  use_simple_graph_data
39
37
 
40
38
  describe '#e' do
@@ -66,6 +64,30 @@ shared_examples_for Pacer::Wrappers::EdgeWrapper do
66
64
  end
67
65
  end
68
66
 
67
+ subject { e0 }
68
+ its(:graph) { should equal(graph) }
69
+ its(:display_name) { should == "#{ v0.element_id }-links-#{ v1.element_id }" }
70
+ its(:inspect) { should == "#<E[#{ e0.element_id }]:#{ v0.element_id }-links-#{ v1.element_id }>" }
71
+ context 'with label proc' do
72
+ before do
73
+ graph.edge_name = proc { |e| "some name" }
74
+ end
75
+ its(:display_name) { should == "some name" }
76
+ its(:inspect) { should == "#<E[#{ e0.element_id }]:some name>" }
77
+ end
78
+
79
+ context '', :transactions => true do
80
+ it { should_not == e1 }
81
+ it { should == e0 }
82
+ it { should_not == v0 }
83
+ end
84
+ end
85
+ end
86
+
87
+ Run.all :read_write do
88
+ use_simple_graph_data
89
+
90
+ describe Pacer::Wrappers::EdgeWrapper do
69
91
  describe '#delete!' do
70
92
  before do
71
93
  @edge_id = e0.element_id
@@ -83,25 +105,32 @@ shared_examples_for Pacer::Wrappers::EdgeWrapper do
83
105
  let(:dest) { Pacer.tg }
84
106
  },
85
107
  'into graph2' => proc {
86
- let(:dest) { graph2 }
108
+ let(:dest) {
109
+ c = example.metadata[:graph2_commit]
110
+ c.call() if c
111
+ graph2.v.delete!
112
+ c.call() if c
113
+ graph2
114
+ }
87
115
  }) do
88
- describe '#clone_into', :transactions => false do
89
- before { pending 'support temporary hash indices for clone/copy' unless graph.features.supportsIndices }
116
+ describe '#clone_into' do
90
117
  context 'including vertices' do
91
118
  subject { e0.clone_into(dest, :create_vertices => true) }
92
119
 
93
120
  its('element_id.to_s') { should == e0.element_id.to_s unless graph.features.ignoresSuppliedIds }
94
121
  its(:label) { should == 'links' }
95
122
  its(:graph) { should equal(dest) }
96
- its('in_vertex.properties') { should == { 'name' => 'eliza' } }
97
- its('out_vertex.properties') { should == { 'name' => 'darrick' } }
123
+ its('in_vertex.properties') { should == e0.in_vertex.properties }
124
+ its('out_vertex.properties') { should == e0.out_vertex.properties }
98
125
  end
99
126
 
100
127
  context 'without vertices' do
101
- subject { e0.clone_into(dest) rescue nil }
102
- it { should be_nil }
128
+ context 'not existing' do
129
+ subject { e0.clone_into(dest) rescue nil }
130
+ it { should be_nil }
131
+ end
103
132
 
104
- context 'but already existing' do
133
+ context 'existing' do
105
134
  before do
106
135
  v0.clone_into(dest)
107
136
  v1.clone_into(dest)
@@ -110,42 +139,19 @@ shared_examples_for Pacer::Wrappers::EdgeWrapper do
110
139
  its('element_id.to_s') { should == e0.element_id.to_s unless graph.features.ignoresSuppliedIds }
111
140
  its(:label) { should == 'links' }
112
141
  its(:graph) { should equal(dest) }
113
- its('in_vertex.properties') { should == { 'name' => 'eliza' } }
114
- its('out_vertex.properties') { should == { 'name' => 'darrick' } }
142
+ its('in_vertex.properties') { should == e0.in_vertex.properties }
143
+ its('out_vertex.properties') { should == e0.out_vertex.properties }
115
144
  end
116
145
  end
117
146
  end
118
147
 
119
- describe '#copy_into', :transactions => false do
120
- before { pending unless graph.features.supportsIndices }
148
+ describe '#copy_into' do
121
149
  subject { v0.clone_into(dest); v1.clone_into(dest); e0.copy_into(dest) }
122
150
  its(:label) { should == 'links' }
123
151
  its(:graph) { should equal(dest) }
124
- its('in_vertex.properties') { should == { 'name' => 'eliza' } }
125
- its('out_vertex.properties') { should == { 'name' => 'darrick' } }
126
- end
127
-
128
- end
129
-
130
- subject { e0 }
131
- its(:graph) { should equal(graph) }
132
- its(:display_name) { should == "#{ v0.element_id }-links-#{ v1.element_id }" }
133
- its(:inspect) { should == "#<E[#{ e0.element_id }]:#{ v0.element_id }-links-#{ v1.element_id }>" }
134
- context 'with label proc' do
135
- before do
136
- graph.edge_name = proc { |e| "some name" }
152
+ its('in_vertex.properties') { should == e0.in_vertex.properties }
153
+ its('out_vertex.properties') { should == e0.out_vertex.properties }
137
154
  end
138
- its(:display_name) { should == "some name" }
139
- its(:inspect) { should == "#<E[#{ e0.element_id }]:some name>" }
140
- end
141
-
142
- context '', :transactions => true do
143
- it { should_not == e1 }
144
- it { should == e0 }
145
- it { should_not == v0 }
146
155
  end
147
156
  end
148
-
149
- Run.all do
150
- it_uses Pacer::Wrappers::EdgeWrapper
151
157
  end
@@ -316,14 +316,14 @@ end
316
316
  describe Pacer, '.wrap_vertex' do
317
317
  before { Pacer.edge_wrapper Tackle::SimpleMixin }
318
318
  subject { Pacer.vertex_wrapper Tackle::SimpleMixin }
319
- its(:name) { should =~ /^Pacer::Wrap::/ }
319
+ its(:name) { should be_nil }
320
320
  its(:ancestors) { should include Pacer::Wrappers::VertexWrapper }
321
321
  end
322
322
 
323
323
  describe Pacer, '.wrap_vertex' do
324
324
  before { Pacer.vertex_wrapper Tackle::SimpleMixin }
325
325
  subject { Pacer.edge_wrapper Tackle::SimpleMixin }
326
- its(:name) { should =~ /^Pacer::Wrap::/ }
326
+ its(:name) { should be_nil }
327
327
  its(:ancestors) { should include Pacer::Wrappers::EdgeWrapper }
328
328
  end
329
329
 
@@ -333,7 +333,7 @@ Run.tg :read_only do
333
333
  describe Pacer::Wrappers::ElementWrapper do
334
334
  subject { Pacer.vertex_wrapper Tackle::SimpleMixin }
335
335
 
336
- its(:name) { should =~ /^Pacer::Wrap::/ }
336
+ its(:name) { should be_nil }
337
337
  its(:extensions) { should == [Tackle::SimpleMixin] }
338
338
 
339
339
  describe '.clear_cache' do
@@ -364,8 +364,7 @@ Run.tg :read_only do
364
364
  it 'should have the ancestors set in the correct order' do
365
365
  # Ruby searches for methods down this list, so order is
366
366
  # important for method overrides.
367
- subject.ancestors[0...6].should == [
368
- Pacer::Wrap::VertexWrapperTP_PersonTackle_SimpleMixinTP_Coder,
367
+ subject.ancestors[1...6].should == [
369
368
  TP::Coder::Route,
370
369
  Tackle::SimpleMixin::Vertex,
371
370
  Tackle::SimpleMixin::Route,
@@ -388,8 +387,7 @@ Run.tg :read_only do
388
387
  end
389
388
 
390
389
  it 'should have ancestors in the correct order' do
391
- subject.ancestors[0...9].should == [
392
- Pacer::Wrap::VertexWrapperTP_PersonTackle_SimpleMixinTP_CoderPacer_Utils_TSort,
390
+ subject.ancestors[1...9].should == [
393
391
  Pacer::Utils::TSort::Vertex,
394
392
  Pacer::Utils::TSort::Route,
395
393
  TSort,
@@ -411,8 +409,7 @@ Run.tg :read_only do
411
409
  end
412
410
 
413
411
  it 'should have ancestors in the correct order' do
414
- subject.ancestors[0...6].should == [
415
- Pacer::Wrap::VertexWrapperTP_PersonTackle_SimpleMixinTP_Coder,
412
+ subject.ancestors[1...6].should == [
416
413
  TP::Coder::Route,
417
414
  Tackle::SimpleMixin::Vertex,
418
415
  Tackle::SimpleMixin::Route,
@@ -430,8 +427,7 @@ Run.tg :read_only do
430
427
  it 'should have the ancestors set in the correct order' do
431
428
  # Ruby searches for methods down this list, so order is
432
429
  # important for method overrides.
433
- subject.ancestors[0...6].should == [
434
- Pacer::Wrap::VertexWrapperTackle_SimpleMixinTP_PersonTP_Coder,
430
+ subject.ancestors[1...6].should == [
435
431
  TP::Coder::Route,
436
432
  TP::Person::Route,
437
433
  Tackle::SimpleMixin::Vertex,
@@ -450,8 +446,7 @@ Run.tg :read_only do
450
446
 
451
447
  it { should_not be_nil }
452
448
  it 'should have ancestors in the correct order' do
453
- subject.ancestors[0...6].should == [
454
- Pacer::Wrap::VertexWrapperTackle_SimpleMixinTP_PersonTP_Coder,
449
+ subject.ancestors[1...6].should == [
455
450
  TP::Coder::Route,
456
451
  TP::Person::Route,
457
452
  Tackle::SimpleMixin::Vertex,
@@ -149,13 +149,22 @@ protected
149
149
  end
150
150
  if transactions and spec.use_transactions?
151
151
  graph.transaction do |g1_commit, g1_rollback|
152
- graph2.transaction do |_, g2_rollback|
152
+ graph2.transaction do |g2_commit, g2_rollback|
153
153
  spec.metadata[:graph_commit] = g1_commit
154
+ spec.metadata[:graph2_commit] = g2_commit
154
155
  begin
155
156
  spec.run
156
157
  ensure
157
- g1_rollback.call rescue nil
158
- g2_rollback.call rescue nil
158
+ graph.drop_temp_indices
159
+ graph2.drop_temp_indices
160
+ begin
161
+ g1_rollback.call
162
+ rescue Pacer::NestedTransactionRollback, Pacer::NestedMockTransactionRollback
163
+ end
164
+ begin
165
+ g2_rollback.call #rescue nil
166
+ rescue Pacer::NestedTransactionRollback, Pacer::NestedMockTransactionRollback
167
+ end
159
168
  end
160
169
  end
161
170
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: pacer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: java
7
7
  authors:
8
8
  - Darrick Wiebe
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-08 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Pacer defines routes through a graph and then traverses them very quickly.
15
15
  email: darrick@innatesoftware.com
@@ -34,12 +34,11 @@ files:
34
34
  - bin/rspec
35
35
  - bin/yard
36
36
  - bin/yardoc
37
+ - blog/2012-09-18-pacer-1.0.md
37
38
  - lib/pacer.rb
38
- - lib/pacer/blueprints.rb
39
39
  - lib/pacer/blueprints/multi_graph.rb
40
40
  - lib/pacer/blueprints/ruby_graph.rb
41
41
  - lib/pacer/blueprints/tg.rb
42
- - lib/pacer/core.rb
43
42
  - lib/pacer/core/graph.rb
44
43
  - lib/pacer/core/graph/edges_route.rb
45
44
  - lib/pacer/core/graph/element_route.rb
@@ -50,7 +49,6 @@ files:
50
49
  - lib/pacer/core/route.rb
51
50
  - lib/pacer/core/side_effect.rb
52
51
  - lib/pacer/exceptions.rb
53
- - lib/pacer/filter.rb
54
52
  - lib/pacer/filter/block_filter.rb
55
53
  - lib/pacer/filter/collection_filter.rb
56
54
  - lib/pacer/filter/empty_filter.rb
@@ -67,12 +65,13 @@ files:
67
65
  - lib/pacer/filter/where_filter.rb
68
66
  - lib/pacer/filter/where_filter/node_visitor.rb
69
67
  - lib/pacer/function_resolver.rb
70
- - lib/pacer/graph.rb
71
68
  - lib/pacer/graph/graph_ml.rb
72
69
  - lib/pacer/graph/graph_transactions_mixin.rb
70
+ - lib/pacer/graph/hash_index.rb
73
71
  - lib/pacer/graph/pacer_graph.rb
74
72
  - lib/pacer/graph/simple_encoder.rb
75
73
  - lib/pacer/graph/yaml_encoder.rb
74
+ - lib/pacer/loader.rb
76
75
  - lib/pacer/pipe/blackbox_pipeline.rb
77
76
  - lib/pacer/pipe/block_filter_pipe.rb
78
77
  - lib/pacer/pipe/collection_filter_pipe.rb
@@ -104,23 +103,19 @@ files:
104
103
  - lib/pacer/route.rb
105
104
  - lib/pacer/route/mixin/bulk_operations.rb
106
105
  - lib/pacer/route/mixin/route_operations.rb
107
- - lib/pacer/route/mixins.rb
108
- - lib/pacer/routes.rb
109
- - lib/pacer/side_effect.rb
106
+ - lib/pacer/route_builder.rb
110
107
  - lib/pacer/side_effect/aggregate.rb
111
108
  - lib/pacer/side_effect/as.rb
112
109
  - lib/pacer/side_effect/counted.rb
113
110
  - lib/pacer/side_effect/group_count.rb
114
111
  - lib/pacer/side_effect/is_unique.rb
115
112
  - lib/pacer/side_effect/visitor.rb
116
- - lib/pacer/support.rb
117
113
  - lib/pacer/support/array_list.rb
118
114
  - lib/pacer/support/enumerable.rb
119
115
  - lib/pacer/support/hash.rb
120
116
  - lib/pacer/support/native_exception.rb
121
117
  - lib/pacer/support/nil_class.rb
122
118
  - lib/pacer/support/proc.rb
123
- - lib/pacer/transform.rb
124
119
  - lib/pacer/transform/cap.rb
125
120
  - lib/pacer/transform/gather.rb
126
121
  - lib/pacer/transform/has_count_cap.rb
@@ -138,10 +133,8 @@ files:
138
133
  - lib/pacer/utils/tsort.rb
139
134
  - lib/pacer/utils/y_files.rb
140
135
  - lib/pacer/version.rb
141
- - lib/pacer/visitors.rb
142
136
  - lib/pacer/visitors/section.rb
143
137
  - lib/pacer/visitors/visits_section.rb
144
- - lib/pacer/wrappers.rb
145
138
  - lib/pacer/wrappers/edge_wrapper.rb
146
139
  - lib/pacer/wrappers/element_wrapper.rb
147
140
  - lib/pacer/wrappers/index_wrapper.rb
@@ -158,6 +151,7 @@ files:
158
151
  - spec/data/pacer.graphml
159
152
  - spec/pacer/blueprints/dex_spec.rb
160
153
  - spec/pacer/blueprints/neo4j_spec.rb
154
+ - spec/pacer/blueprints/orient_spec.rb
161
155
  - spec/pacer/blueprints/tg_spec.rb
162
156
  - spec/pacer/core/graph/edges_route_spec.rb
163
157
  - spec/pacer/core/graph/element_route_spec.rb
@@ -175,6 +169,8 @@ files:
175
169
  - spec/pacer/filter/uniq_filter_spec.rb
176
170
  - spec/pacer/filter/where_filter_spec.rb
177
171
  - spec/pacer/graph/pacer_graph_spec.rb
172
+ - spec/pacer/graph/simple_encoder_spec.rb
173
+ - spec/pacer/graph/yaml_encoder_spec.rb
178
174
  - spec/pacer/pipe/block_filter_pipe_spec.rb
179
175
  - spec/pacer/pipe/labels_filter_pipe_spec.rb
180
176
  - spec/pacer/pipe/ruby_pipe_spec.rb
@@ -203,7 +199,7 @@ files:
203
199
  - spec/support/use_transactions.rb
204
200
  - spec/tackle/simple_mixin.rb
205
201
  - spec/tackle/tinkerpop_graph_mixins.rb
206
- - lib/pacer-1.0.2-standalone.jar
202
+ - lib/pacer-1.0.3-standalone.jar
207
203
  homepage: http://github.com/pangloss/pacer
208
204
  licenses:
209
205
  - MIT
@@ -242,6 +238,7 @@ test_files:
242
238
  - spec/data/pacer.graphml
243
239
  - spec/pacer/blueprints/dex_spec.rb
244
240
  - spec/pacer/blueprints/neo4j_spec.rb
241
+ - spec/pacer/blueprints/orient_spec.rb
245
242
  - spec/pacer/blueprints/tg_spec.rb
246
243
  - spec/pacer/core/graph/edges_route_spec.rb
247
244
  - spec/pacer/core/graph/element_route_spec.rb
@@ -259,6 +256,8 @@ test_files:
259
256
  - spec/pacer/filter/uniq_filter_spec.rb
260
257
  - spec/pacer/filter/where_filter_spec.rb
261
258
  - spec/pacer/graph/pacer_graph_spec.rb
259
+ - spec/pacer/graph/simple_encoder_spec.rb
260
+ - spec/pacer/graph/yaml_encoder_spec.rb
262
261
  - spec/pacer/pipe/block_filter_pipe_spec.rb
263
262
  - spec/pacer/pipe/labels_filter_pipe_spec.rb
264
263
  - spec/pacer/pipe/ruby_pipe_spec.rb
@@ -1,3 +0,0 @@
1
- require 'pacer/blueprints/tg'
2
- require 'pacer/blueprints/ruby_graph'
3
- require 'pacer/blueprints/multi_graph'
data/lib/pacer/core.rb DELETED
@@ -1,8 +0,0 @@
1
- module Pacer
2
- module Core
3
- end
4
- end
5
-
6
- require 'pacer/core/route'
7
- require 'pacer/core/graph'
8
- require 'pacer/core/side_effect'
data/lib/pacer/filter.rb DELETED
@@ -1,17 +0,0 @@
1
- module Pacer
2
- module Filter
3
- end
4
- end
5
-
6
- require 'pacer/filter/collection_filter'
7
- require 'pacer/filter/empty_filter'
8
- require 'pacer/filter/future_filter'
9
- require 'pacer/filter/property_filter'
10
- require 'pacer/filter/range_filter'
11
- require 'pacer/filter/uniq_filter'
12
- require 'pacer/filter/index_filter'
13
- require 'pacer/filter/loop_filter'
14
- require 'pacer/filter/block_filter'
15
- require 'pacer/filter/object_filter'
16
- require 'pacer/filter/where_filter'
17
- require 'pacer/filter/random_filter'
data/lib/pacer/graph.rb DELETED
@@ -1,12 +0,0 @@
1
- module Pacer
2
- import com.tinkerpop.blueprints.Graph
3
- import com.tinkerpop.blueprints.Element
4
- import com.tinkerpop.blueprints.Vertex
5
- import com.tinkerpop.blueprints.Edge
6
- end
7
-
8
- require 'pacer/graph/graph_transactions_mixin'
9
- require 'pacer/graph/pacer_graph.rb'
10
- require 'pacer/graph/simple_encoder.rb'
11
- require 'pacer/graph/yaml_encoder.rb'
12
- require 'pacer/graph/graph_ml'
@@ -1,2 +0,0 @@
1
- require 'pacer/route/mixin/bulk_operations'
2
- require 'pacer/route/mixin/route_operations'
data/lib/pacer/routes.rb DELETED
@@ -1,6 +0,0 @@
1
- module Pacer
2
- module Routes
3
- # Defines the Routes namespace
4
- end
5
- end
6
- require 'pacer/route/mixins'
@@ -1,11 +0,0 @@
1
- module Pacer
2
- module SideEffect
3
- end
4
- end
5
-
6
- require 'pacer/side_effect/aggregate'
7
- require 'pacer/side_effect/as'
8
- require 'pacer/side_effect/group_count'
9
- require 'pacer/side_effect/is_unique'
10
- require 'pacer/side_effect/counted'
11
- require 'pacer/side_effect/visitor'
data/lib/pacer/support.rb DELETED
@@ -1,10 +0,0 @@
1
- module Pacer
2
- module Support
3
- end
4
- end
5
- require 'pacer/support/array_list'
6
- require 'pacer/support/enumerable'
7
- require 'pacer/support/proc'
8
- require 'pacer/support/hash'
9
- require 'pacer/support/native_exception'
10
- require 'pacer/support/nil_class'
@@ -1,16 +0,0 @@
1
- module Pacer
2
- module Transform
3
- end
4
- end
5
-
6
- require 'pacer/transform/cap'
7
- require 'pacer/transform/stream_sort'
8
- require 'pacer/transform/stream_uniq'
9
- require 'pacer/transform/gather'
10
- require 'pacer/transform/map'
11
- require 'pacer/transform/process'
12
- require 'pacer/transform/join'
13
- require 'pacer/transform/path'
14
- require 'pacer/transform/scatter'
15
- require 'pacer/transform/has_count_cap'
16
- require 'pacer/transform/sort_section'
@@ -1,7 +0,0 @@
1
- module Pacer
2
- module Visitors
3
- end
4
- end
5
-
6
- require 'pacer/visitors/visits_section'
7
- require 'pacer/visitors/section'
@@ -1,21 +0,0 @@
1
- require 'forwardable'
2
-
3
- module Pacer
4
- def self.vertex_wrapper(*exts)
5
- Wrappers::VertexWrapper.wrapper_for(exts)
6
- end
7
-
8
- def self.edge_wrapper(*exts)
9
- Wrappers::EdgeWrapper.wrapper_for(exts)
10
- end
11
-
12
- module Wrappers
13
- end
14
- end
15
-
16
- require 'pacer/wrappers/element_wrapper'
17
- require 'pacer/wrappers/vertex_wrapper'
18
- require 'pacer/wrappers/edge_wrapper'
19
- require 'pacer/wrappers/index_wrapper'
20
- require 'pacer/wrappers/wrapper_selector'
21
- require 'pacer/wrappers/wrapping_pipe_function'