mongo-graph 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,5 +10,5 @@ require "mongoid/graph"
10
10
  # first_node.save!
11
11
  # second_node.save!
12
12
  # Node.neighbours_of(first_node).size.should == 1
13
- module MongoGraph
13
+ module Mongo
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module MongoGraph
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/mongoid/graph.rb CHANGED
@@ -19,7 +19,7 @@ module Mongoid
19
19
  module ClassMethods
20
20
 
21
21
  def neighbours_of(node)
22
- all_in(node_index: node._neighbours.to_a)
22
+ any_in(node_index: node._neighbours.to_a)
23
23
  end
24
24
 
25
25
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "rspec"
2
2
  require "spork"
3
3
  require "mongoid"
4
- require "mongo_graph"
4
+ require "mongo-graph"
5
5
  require "support/node"
6
6
 
7
7
  Spork.prefork do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000 Z
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -200,7 +200,7 @@ files:
200
200
  - LICENSE
201
201
  - README.md
202
202
  - Rakefile
203
- - lib/mongo_graph.rb
203
+ - lib/mongo-graph.rb
204
204
  - lib/mongo_graph/version.rb
205
205
  - lib/mongoid/graph.rb
206
206
  - mongo-graph.gemspec