neo4j 5.2.11 → 5.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/lib/neo4j/shared/callbacks.rb +1 -1
- data/lib/neo4j/shared/persistence.rb +5 -0
- data/lib/neo4j/version.rb +1 -1
- data/neo4j.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0002527f91ae9a9239543daf3349cafe86e8b8
|
4
|
+
data.tar.gz: 51fe8a0c9808b2426eae849ad1d58d638627b920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e75e90ce930902118cbef07996a902ccbf1251aca97b9d45e1f4653e86289b38ea9a9d8cd5a9f02d8dab542c45aa8aeddb2c6302b38a9918a5f3f30033371894
|
7
|
+
data.tar.gz: 2d88e7fa12b4fce00455299a45fec336c75663d67f5b0d580b4dfebad07d8f7be9585cb84fc9d129f0e05079a4c50d38868792737a21e845375770a30f0d85f0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: '5.1.x'
|
5
|
+
# gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: '5.1.x'
|
6
6
|
# gem 'neo4j-core', path: '../neo4j-core'
|
7
7
|
|
8
8
|
# gem 'active_attr', github: 'neo4jrb/active_attr', branch: 'performance'
|
@@ -10,7 +10,7 @@ module Neo4j
|
|
10
10
|
included do
|
11
11
|
include ActiveModel::Validations::Callbacks
|
12
12
|
define_model_callbacks :initialize, :find, only: :after
|
13
|
-
define_model_callbacks :save, :create, :update, :destroy
|
13
|
+
define_model_callbacks :save, :create, :update, :destroy, :touch
|
14
14
|
end
|
15
15
|
|
16
16
|
def destroy #:nodoc:
|
@@ -82,6 +82,11 @@ module Neo4j::Shared
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
+
def touch
|
86
|
+
fail "Cannot touch on a new record object" unless persisted?
|
87
|
+
update_attribute(:updated_at, Time.now) if attributes.key?('updated_at')
|
88
|
+
end
|
89
|
+
|
85
90
|
# Returns +true+ if the record is persisted, i.e. it's not a new record and it was not destroyed
|
86
91
|
def persisted?
|
87
92
|
!new_record? && !destroyed?
|
data/lib/neo4j/version.rb
CHANGED
data/neo4j.gemspec
CHANGED
@@ -30,7 +30,7 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
|
|
30
30
|
s.add_dependency('activemodel', '~> 4')
|
31
31
|
s.add_dependency('activesupport', '~> 4')
|
32
32
|
s.add_dependency('active_attr', '~> 0.8')
|
33
|
-
s.add_dependency('neo4j-core', '~> 5.1.
|
33
|
+
s.add_dependency('neo4j-core', '~> 5.1.10')
|
34
34
|
s.add_dependency('neo4j-community', '~> 2.0') if RUBY_PLATFORM =~ /java/
|
35
35
|
s.add_development_dependency('railties', '~> 4')
|
36
36
|
s.add_development_dependency('pry')
|
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: 5.2.
|
4
|
+
version: 5.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Brian Underwood, Chris Grigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 5.1.
|
75
|
+
version: 5.1.10
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 5.1.
|
82
|
+
version: 5.1.10
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: railties
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|