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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 538fa724f1d3376bc74d58595e616e28c1f9ef43
4
- data.tar.gz: 0524117ac901b92a962127bdf5c8bdfda50206f3
3
+ metadata.gz: 387fd5eb3109808727f67fd41b5cbd338a750df7
4
+ data.tar.gz: 733c48e04171a6dd5c9d79d7a5fccf800f49ad63
5
5
  SHA512:
6
- metadata.gz: ce835d380b324c121c69bd08cce3f45d0fec520ae218c8cf91f06c957e9c8569679e6915664331ac625b19e1813d361a67ca5198af0eaaf48fb45e72b595946c
7
- data.tar.gz: 3128d951e3084eef1d262d764d065522c75319f5d0c4377b6da1817c4cdcc9144838575cc98ea87c419c32a991c0ab32b13aa6d047b78f9590cc13b5efba8ffa
6
+ metadata.gz: bdef2f4177c2b8bc65c04ab58463fb492216c752fcd93bf3a8e99a479e89dced4851a1eea77512118a2399541d8a9d3005b48c29daf00c761648a55441536b0d
7
+ data.tar.gz: 733df7c17957d590e6ba4ed11010c4481df3a93553929878790502ec90d31c4d253dd78363786571377add894c9fa80c86a06afeabdd30bc3b4b194d8d2f8cd3
data/Rakefile CHANGED
@@ -36,7 +36,7 @@ desc 'Builds the gem'
36
36
  task :build => [:gemspec] do
37
37
  sh "mkdir -p pkg"
38
38
  sh "gem build turbine.gemspec"
39
- sh "mv turbine-#{Turbine::VERSION}.gem pkg"
39
+ sh "mv turbine-graph-#{Turbine::VERSION}.gem pkg"
40
40
  end
41
41
 
42
42
  desc 'Create a fresh gemspec'
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).traverse(:out, label)
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).traverse(:in, label)
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
@@ -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, in a given
91
- # +direction+
90
+ # node's adjacent "in" nodes, and their adjacent "in" nodes, and so on.
92
91
  #
93
- # direction - In which direction from the current node do you wat to
94
- # traverse? :in or :out?
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
- # For example
99
- #
100
- # # Fetches all nodes via outgoing edges.
101
- # dsl.traverse(:out).to_a
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
- # # Gets all out nodes via edges which have the :child label.
104
- # dsl.traverse(:out, :child)
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 traverse(direction, label = nil)
108
- append(Traverse.new(direction, label))
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
@@ -1,4 +1,4 @@
1
1
  module Turbine
2
2
  # The current version of the Turbine library.
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
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 updates by the "gemspec"
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.1'
12
- s.date = '2013-06-27'
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.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-06-27 00:00:00.000000000 Z
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.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.