pacer 2.0.17-java → 2.0.18-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pacer/core/route.rb +10 -10
- data/lib/pacer/filter/empty_filter.rb +1 -1
- data/lib/pacer/route.rb +2 -2
- data/lib/pacer/transform/map.rb +1 -1
- data/lib/pacer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d7905ddf1c56bda34240a62c39a2c089269ee52
|
4
|
+
data.tar.gz: 992588158de779cc22d9fc56376d85ae3274ec98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ff0dd02bdaa3949d244ba7eb61542f09794d2b3278f1bfb113a5a30a6c94747cdc0387e560335068bf65aa2302b68be1f62075b07f15e98adf51f763bb3186
|
7
|
+
data.tar.gz: 60c4e5f8e19a89e4606afd0c320988f1cba8264704e991904194a87100c8d5bcc9665fd62b737ee63ae70257dced51af3e224734d08b2a870acfc75952c3dc92
|
data/lib/pacer/core/route.rb
CHANGED
@@ -47,7 +47,7 @@ module Pacer
|
|
47
47
|
# @return [PacerGraph]
|
48
48
|
def graph
|
49
49
|
config.fetch :graph do
|
50
|
-
src = @back || @
|
50
|
+
src = @back || @pacer_source
|
51
51
|
src.graph if src.respond_to? :graph
|
52
52
|
end
|
53
53
|
end
|
@@ -82,7 +82,7 @@ module Pacer
|
|
82
82
|
|
83
83
|
# Return true if this route is at the beginning of the route definition.
|
84
84
|
def root?
|
85
|
-
!@
|
85
|
+
!@pacer_source.nil? or @back.nil?
|
86
86
|
end
|
87
87
|
|
88
88
|
# Prevents the route from being evaluated when it is inspected. Useful
|
@@ -353,7 +353,7 @@ HELP
|
|
353
353
|
other.function == function and
|
354
354
|
other.element_type == element_type and
|
355
355
|
other.back == back and
|
356
|
-
other.
|
356
|
+
other.pacer_source == pacer_source
|
357
357
|
end
|
358
358
|
|
359
359
|
# Returns true if this route currently has no elements.
|
@@ -409,7 +409,7 @@ HELP
|
|
409
409
|
if @back
|
410
410
|
@back.set_pipe_source src
|
411
411
|
else
|
412
|
-
self.
|
412
|
+
self.pacer_source = src
|
413
413
|
end
|
414
414
|
end
|
415
415
|
|
@@ -421,7 +421,7 @@ HELP
|
|
421
421
|
@back = back
|
422
422
|
else
|
423
423
|
@back = nil
|
424
|
-
@
|
424
|
+
@pacer_source = back
|
425
425
|
end
|
426
426
|
end
|
427
427
|
|
@@ -461,17 +461,17 @@ HELP
|
|
461
461
|
|
462
462
|
# This should not normally need to be set. It can be used to inject a route
|
463
463
|
# into another route during iterator generation.
|
464
|
-
def
|
464
|
+
def pacer_source=(pacer_source)
|
465
465
|
@back = nil
|
466
|
-
@
|
466
|
+
@pacer_source = pacer_source
|
467
467
|
end
|
468
468
|
|
469
469
|
# Get the actual source of data for this route.
|
470
470
|
#
|
471
471
|
# @return [java.util.Iterator]
|
472
472
|
def source_iterator
|
473
|
-
if @
|
474
|
-
iter = iterator_from_source(@
|
473
|
+
if @pacer_source
|
474
|
+
iter = iterator_from_source(@pacer_source)
|
475
475
|
iter.enablePath(true) if iter.respond_to? :enablePath
|
476
476
|
iter
|
477
477
|
elsif @back
|
@@ -484,7 +484,7 @@ HELP
|
|
484
484
|
# @see #build_pipeline
|
485
485
|
# @return [[com.tinkerpop.pipes.Pipe, com.tinkerpop.pipes.Pipe], nil]
|
486
486
|
def pipe_source
|
487
|
-
if @
|
487
|
+
if @pacer_source
|
488
488
|
nil
|
489
489
|
elsif @back
|
490
490
|
@back.send(:build_pipeline)
|
data/lib/pacer/route.rb
CHANGED
@@ -78,7 +78,7 @@ module Pacer
|
|
78
78
|
|
79
79
|
# The soure of data for the entire chain. Routes that have a source
|
80
80
|
# generally should not have a {#back}
|
81
|
-
attr_reader :
|
81
|
+
attr_reader :pacer_source
|
82
82
|
|
83
83
|
# Create a new route. It should be very rare that you would need to
|
84
84
|
# directly create a Route object.
|
@@ -134,7 +134,7 @@ module Pacer
|
|
134
134
|
if source.is_a? Route
|
135
135
|
@back = source
|
136
136
|
else
|
137
|
-
@
|
137
|
+
@pacer_source = source
|
138
138
|
end
|
139
139
|
@config = config
|
140
140
|
@args = args
|
data/lib/pacer/transform/map.rb
CHANGED
@@ -63,7 +63,7 @@ HELP
|
|
63
63
|
if back and back.element_type == :path
|
64
64
|
pf = Pacer::Wrappers::PathWrappingPipeFunction.new back, block
|
65
65
|
else
|
66
|
-
pf = Pacer::Wrappers::WrappingPipeFunction.new back ||
|
66
|
+
pf = Pacer::Wrappers::WrappingPipeFunction.new back || pacer_source, block
|
67
67
|
pf = Pacer::Wrappers::UnwrappingPipeFunction.new pf
|
68
68
|
end
|
69
69
|
pipe = com.tinkerpop.pipes.transform.TransformFunctionPipe.new pf
|
data/lib/pacer/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Pacer
|
2
|
-
VERSION = "2.0.
|
2
|
+
VERSION = "2.0.18"
|
3
3
|
# Clients may optionally define the following constants in the Pacer namespace:
|
4
4
|
# - LOAD_JARS : set to false to manage jar loading in the client. Be sure to load the jars defined in JARFILES.
|
5
5
|
# - LOCKJAR_LOCK_OPTS : set some options to be passed to LockJar.lock (ie. :lockfile, :download_artifacts, :local_repo)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pacer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.18
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Darrick Wiebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lock_jar
|