turbine-graph 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/turbine/node.rb +2 -2
- data/lib/turbine/pipeline/dsl.rb +15 -14
- data/lib/turbine/version.rb +1 -1
- data/turbine.gemspec +5 -9
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 387fd5eb3109808727f67fd41b5cbd338a750df7
|
4
|
+
data.tar.gz: 733c48e04171a6dd5c9d79d7a5fccf800f49ad63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdef2f4177c2b8bc65c04ab58463fb492216c752fcd93bf3a8e99a479e89dced4851a1eea77512118a2399541d8a9d3005b48c29daf00c761648a55441536b0d
|
7
|
+
data.tar.gz: 733df7c17957d590e6ba4ed11010c4481df3a93553929878790502ec90d31c4d253dd78363786571377add894c9fa80c86a06afeabdd30bc3b4b194d8d2f8cd3
|
data/Rakefile
CHANGED
data/lib/turbine/node.rb
CHANGED
@@ -78,7 +78,7 @@ module Turbine
|
|
78
78
|
#
|
79
79
|
# Returns an Enumerator containing Nodes.
|
80
80
|
def descendants(label = nil)
|
81
|
-
Pipeline.dsl(self).
|
81
|
+
Pipeline.dsl(self).descendants(label)
|
82
82
|
end
|
83
83
|
|
84
84
|
# Public: Returns an enumerator containing all nodes which are inward
|
@@ -89,7 +89,7 @@ module Turbine
|
|
89
89
|
#
|
90
90
|
# Returns an Enumerator containing Nodes.
|
91
91
|
def ancestors(label = nil)
|
92
|
-
Pipeline.dsl(self).
|
92
|
+
Pipeline.dsl(self).ancestors(label)
|
93
93
|
end
|
94
94
|
|
95
95
|
# Internal: Low-level method which retrieves all of the edges in a given
|
data/lib/turbine/pipeline/dsl.rb
CHANGED
@@ -87,25 +87,26 @@ module Turbine
|
|
87
87
|
end
|
88
88
|
|
89
89
|
# Public: Using the breadth-first traversal strategy, fetches all of a
|
90
|
-
# node's adjacent nodes, and their adjacent nodes, and so on
|
91
|
-
# +direction+
|
90
|
+
# node's adjacent "in" nodes, and their adjacent "in" nodes, and so on.
|
92
91
|
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
# label - An optional label which is used to restrict the edges
|
96
|
-
# traversed to those with the label.
|
92
|
+
# label - An optional label which is used to restrict the edges
|
93
|
+
# traversed to those with the label.
|
97
94
|
#
|
98
|
-
#
|
99
|
-
|
100
|
-
|
101
|
-
|
95
|
+
# Returns a new DSL.
|
96
|
+
def ancestors(label = nil)
|
97
|
+
append(Traverse.new(:in, label))
|
98
|
+
end
|
99
|
+
|
100
|
+
# Public: Using the breadth-first traversal strategy, fetches all of a
|
101
|
+
# node's adjacent "out" nodes, and their adjacent "out" nodes, and so
|
102
|
+
# on.
|
102
103
|
#
|
103
|
-
#
|
104
|
-
#
|
104
|
+
# label - An optional label which is used to restrict the edges
|
105
|
+
# traversed to those with the label.
|
105
106
|
#
|
106
107
|
# Returns a new DSL.
|
107
|
-
def
|
108
|
-
append(Traverse.new(
|
108
|
+
def descendants(label = nil)
|
109
|
+
append(Traverse.new(:out, label))
|
109
110
|
end
|
110
111
|
|
111
112
|
# Public: Given a block, emits input elements for which the block
|
data/lib/turbine/version.rb
CHANGED
data/turbine.gemspec
CHANGED
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.required_rubygems_version = '>= 1.3.6'
|
6
6
|
|
7
|
-
# The following four lines are automatically
|
7
|
+
# The following four lines are automatically updated by the "gemspec"
|
8
8
|
# rake task. It it completely safe to edit them, but using the rake task
|
9
9
|
# is easier.
|
10
10
|
s.name = 'turbine-graph'
|
11
|
-
s.version = '0.1.
|
12
|
-
s.date = '2013-
|
11
|
+
s.version = '0.1.2'
|
12
|
+
s.date = '2013-09-19'
|
13
13
|
s.rubyforge_project = 'turbine-graph'
|
14
14
|
|
15
15
|
# You may safely edit the section below.
|
@@ -17,14 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.platform = Gem::Platform::RUBY
|
18
18
|
|
19
19
|
s.authors = [ 'Anthony Williams',
|
20
|
-
'Dennis Schoenmakers'
|
21
|
-
'Paolo Zaccagnini',
|
22
|
-
'Sebastian Burkhard' ]
|
20
|
+
'Dennis Schoenmakers' ]
|
23
21
|
|
24
22
|
s.email = [ 'hi@antw.me',
|
25
|
-
'dennis.schoenmakers@quintel.com'
|
26
|
-
'paolo.zaccagnini@quintel.com',
|
27
|
-
'sebastian.burkhard@quintel.com' ]
|
23
|
+
'dennis.schoenmakers@quintel.com' ]
|
28
24
|
|
29
25
|
s.homepage = 'http://github.com/quintel/turbine'
|
30
26
|
s.summary = 'An in-memory graph database written in Ruby.'
|
metadata
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbine-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Williams
|
8
8
|
- Dennis Schoenmakers
|
9
|
-
- Paolo Zaccagnini
|
10
|
-
- Sebastian Burkhard
|
11
9
|
autorequire:
|
12
10
|
bindir: bin
|
13
11
|
cert_chain: []
|
14
|
-
date: 2013-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
15
13
|
dependencies:
|
16
14
|
- !ruby/object:Gem::Dependency
|
17
15
|
name: rake
|
@@ -45,8 +43,6 @@ description: An experiment in graph databases, with Ruby...
|
|
45
43
|
email:
|
46
44
|
- hi@antw.me
|
47
45
|
- dennis.schoenmakers@quintel.com
|
48
|
-
- paolo.zaccagnini@quintel.com
|
49
|
-
- sebastian.burkhard@quintel.com
|
50
46
|
executables: []
|
51
47
|
extensions: []
|
52
48
|
extra_rdoc_files:
|
@@ -107,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
103
|
version: 1.3.6
|
108
104
|
requirements: []
|
109
105
|
rubyforge_project: turbine-graph
|
110
|
-
rubygems_version: 2.0.
|
106
|
+
rubygems_version: 2.0.3
|
111
107
|
signing_key:
|
112
108
|
specification_version: 4
|
113
109
|
summary: An in-memory graph database written in Ruby.
|