rom-neo4j 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a68e064a9bbe7a32f78d8b6fdfb34590672250d9
4
- data.tar.gz: ad7b84eb1940cdc4ce6f1e644c845730dad41c86
3
+ metadata.gz: f088c4d1705126603095fc53b75246885d9e480f
4
+ data.tar.gz: bc865c2a3dfe57b582e8bedb2703af068f9328fb
5
5
  SHA512:
6
- metadata.gz: bdc2bf7a5c8d80b94b41a87d49084bff332f508522ce23e5b98bae1cfe17b17e3303bf64c34443bb90efecb5742d74183e6b9e9d4beeb078f0dee2ab47c58414
7
- data.tar.gz: 75ad1454e17e1108f711c659ae08f482c4ff9f01dd74a0fd3c012d1c26e8e21585b8d294647b8ccea6b6f16860e32f78ff2693e9b2fe3418db85053d8e56405e
6
+ metadata.gz: 57496fef49f082fdfcb4b2e2a4beba9ccacd62adc1a2961516f5b3fb2a4b9acf090cc3a949f06804d6361c3aac8b26ff1352afcf901271b70ffe940b128ecfeb
7
+ data.tar.gz: ad999179ef60c8dc745c05f54e84da02da13675f7e6413885dcdc3371d382bc4e93ecef85c8bbe6fbb69283117699e37b8c9e38c7a6806d98956213b54545f36
@@ -7,5 +7,6 @@ require 'rom/neo4j/relation'
7
7
  require 'rom/neo4j/gateway'
8
8
  require 'rom/neo4j/commands'
9
9
  require 'rom/neo4j/support/core_ext'
10
+ require 'rom/neo4j/transproc_functions'
10
11
 
11
12
  ROM.register_adapter(:neo4j, ROM::Neo4j)
@@ -4,6 +4,7 @@ module ROM
4
4
  # for the relation by specifying a `match` pattern, and collect a dataset
5
5
  # for mapping by specifying nodes, edges and properties in the `returns`.
6
6
  class Relation < ROM::Relation
7
+ adapter :neo4j
7
8
 
8
9
  # TODO: document these methods
9
10
  forward(
@@ -0,0 +1,9 @@
1
+ module ROM
2
+ module Neo4j
3
+ # Collection of Transproc functions used by the adapter
4
+ module TransprocFunctions
5
+ extend Transproc::Registry
6
+ import Transproc::HashTransformations
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module ROM
2
2
  module Neo4j
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'rom', '~> 0.8', '>= 0.8.0'
22
- spec.add_runtime_dependency 'neo4j-core', '4.0.1'
21
+ spec.add_runtime_dependency 'rom', '~> 0.9', '>= 0.9.1'
22
+ spec.add_runtime_dependency 'neo4j-core', '5.1.3'
23
23
 
24
24
  spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake'
@@ -9,9 +9,11 @@ def basic_auth_config
9
9
  end
10
10
 
11
11
  def rom_neo4j_setup
12
+ rom_env = ROM::Environment.new
13
+ rom_env.use :auto_registration
12
14
  if ENV['NEO4J_VERSION'] == '2.2.0'
13
- ROM.setup(:neo4j, server_url_config, basic_auth_config)
15
+ rom_env.setup(:neo4j, server_url_config, basic_auth_config)
14
16
  else
15
- ROM.setup(:neo4j, server_url_config)
17
+ rom_env.setup(:neo4j, server_url_config)
16
18
  end
17
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickerby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rom
@@ -16,34 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: '0.9'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.8.0
22
+ version: 0.9.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.8'
29
+ version: '0.9'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.0
32
+ version: 0.9.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: neo4j-core
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 4.0.1
39
+ version: 5.1.3
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 4.0.1
46
+ version: 5.1.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +123,7 @@ files:
123
123
  - lib/rom/neo4j/gateway.rb
124
124
  - lib/rom/neo4j/relation.rb
125
125
  - lib/rom/neo4j/support/core_ext.rb
126
+ - lib/rom/neo4j/transproc_functions.rb
126
127
  - lib/rom/neo4j/version.rb
127
128
  - rom-neo4j.gemspec
128
129
  - spec/fixtures/movies.cypher