neo4j 3.0.0 → 3.0.1

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: 8c7dc4797f55611d07474d42b4618485691dc613
4
- data.tar.gz: 8b8dd2f9eee185c7a157eeba14afcbe8cfbf043c
3
+ metadata.gz: 99403c4083f1e8b94fca74b9a70367a182f51b88
4
+ data.tar.gz: 4bf1f031533437c899b09e80f71d130f035d5b88
5
5
  SHA512:
6
- metadata.gz: 97484101ffda9dc168e5f1ce39bde7fc28f019231dc9cfa82ae74dbc49fc75942279882023da33329453644d3734ea072415d9996fdeb6089f404e952f2aa262
7
- data.tar.gz: 2770dacf06cbb2816acf892c0e162e3049ff18af305013b358ab5b850cf20462a556b3197760ed128aad870d57f362302296b00c32906325b23b963ece0419a7
6
+ metadata.gz: 62d115d92d918698a84f92a5b589409becf59791181a0cf3bc124ea6c736b5bd3d3fa6c63eab3d3f95a9043c15ebd5bce4b2ece0237ff54fc56fe0cadfa2e35d
7
+ data.tar.gz: 744d4bf8e8e872cace8c9b316ed3176bdc6a8efea1765fbcb42bf8ae5067a445892a0365eff4ed783ee6359a99efbe99fa29242cbc49ca45bd2872e78151767e
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 3.0.1
2
+ * Removed reference to neo4j-core from Gemfile and set neo4j.gemspec to use neo4j-core ~>3.0.0
3
+
1
4
  == 3.0.0
2
5
  No change from rc 4
3
6
 
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  #gem 'neo4j-core', path: '../neo4j-core'
6
- gem 'neo4j-core', git: 'https://github.com/neo4jrb/neo4j-core'
6
+ #gem 'neo4j-core', git: 'https://github.com/neo4jrb/neo4j-core'
7
7
  #gem 'orm_adapter', :path => '../orm_adapter'
8
8
 
9
9
  gem 'coveralls', require: false
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for [the Neo4j graph database](http://www.neo4j.org/). It uses the [neo4j-core](https://github.com/neo4jrb/neo4j-core) and [active_attr](https://github.com/cgriego/active_attr) gems.
4
4
 
5
- ## Documentation version 3.0.0.rc
5
+ ## Documentation version 3.0.0
6
6
 
7
7
  * [Wiki](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v3-Introduction)
8
8
 
@@ -7,6 +7,8 @@ module Neo4j::ActiveRel
7
7
 
8
8
  class ModelClassInvalidError < RuntimeError; end
9
9
 
10
+ def clear_association_cache; end
11
+
10
12
  def save(*)
11
13
  update_magic_properties
12
14
  create_or_update
@@ -79,7 +79,8 @@ module Neo4j
79
79
 
80
80
  def id_batch_set(label, property, new_ids, to_set)
81
81
  Benchmark.realtime do
82
- Neo4j::Transaction.run do
82
+ begin
83
+ tx = Neo4j::Transaction.new
83
84
  Neo4j::Session.query("MATCH (n:`#{label}`) WHERE NOT has(n.#{property})
84
85
  with COLLECT(n) as nodes, #{new_ids} as ids
85
86
  FOREACH(i in range(0,#{to_set - 1})|
@@ -87,6 +88,8 @@ module Neo4j
87
88
  SET node.#{property} = ids[i]))
88
89
  RETURN distinct(true)
89
90
  LIMIT #{to_set}")
91
+ ensure
92
+ tx.close
90
93
  end
91
94
  end
92
95
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.summary = "A graph database for Ruby"
17
17
  s.license = 'MIT'
18
18
  s.description = <<-EOF
19
- A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
19
+ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
20
20
  EOF
21
21
 
22
22
  s.require_path = 'lib'
@@ -31,7 +31,7 @@ A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete
31
31
  s.add_dependency("activesupport", "~> 4")
32
32
  s.add_dependency("railties", "~> 4")
33
33
  s.add_dependency('active_attr', "~> 0.8")
34
- s.add_dependency("neo4j-core", "= 3.0.0")
34
+ s.add_dependency("neo4j-core", "~> 3.0.0")
35
35
 
36
36
  if RUBY_PLATFORM =~ /java/
37
37
  s.add_dependency("neo4j-community", '~> 2.0')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-26 00:00:00.000000000 Z
11
+ date: 2014-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -84,18 +84,18 @@ dependencies:
84
84
  name: neo4j-core
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 3.0.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.0.0
97
97
  description: |
98
- A Neo4j OGM for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
98
+ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks, intended as a complete replacement for ActiveRecord.
99
99
  email: andreas.ronge@gmail.com
100
100
  executables:
101
101
  - neo4j-jars