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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e9a0320ef3f65275a365194724340a28f173c24
4
- data.tar.gz: 300e1f501077eea60bf2e506f680da9aeda895f0
3
+ metadata.gz: ba0002527f91ae9a9239543daf3349cafe86e8b8
4
+ data.tar.gz: 51fe8a0c9808b2426eae849ad1d58d638627b920
5
5
  SHA512:
6
- metadata.gz: aa686b46d9da99da6f1aeac490947a93dc1863b689e9965ead7a97779d41a30842426c17013e25e11b9348e8c6642d03428b215580ddc8bdfb2681ec206a600a
7
- data.tar.gz: 113e60149740f0b311cfef4ad30f0f6b8fab962ffbc66d639a6f18265d65043553f9bf12af9f32cfc5a8b43b32268b21be23f4a473e323df1b060b987bb56fa0
6
+ metadata.gz: e75e90ce930902118cbef07996a902ccbf1251aca97b9d45e1f4653e86289b38ea9a9d8cd5a9f02d8dab542c45aa8aeddb2c6302b38a9918a5f3f30033371894
7
+ data.tar.gz: 2d88e7fa12b4fce00455299a45fec336c75663d67f5b0d580b4dfebad07d8f7be9585cb84fc9d129f0e05079a4c50d38868792737a21e845375770a30f0d85f0
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
+ ## [5.2.12] - 10-25-2015
9
+
10
+ ### Fixed
11
+ - Fix the `#touch` method for `ActiveNode` and `ActiveRel`
12
+
8
13
  ## [5.2.11] - 10-18-2015
9
14
 
10
15
  ### Fixed
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?
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.11'
2
+ VERSION = '5.2.12'
3
3
  end
@@ -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.0')
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.11
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-18 00:00:00.000000000 Z
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.0
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.0
82
+ version: 5.1.10
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: railties
85
85
  requirement: !ruby/object:Gem::Requirement