neo4j 5.1.0.rc.1 → 5.1.0.rc.2

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: 7f1d7952f8318fc3525d1e1bfbf90729ddcd02f5
4
- data.tar.gz: aaea4557f810905866707c6c19e480b3816efbd0
3
+ metadata.gz: f2fc8fdc0533ca1dfbfa9253ecae0ed833267048
4
+ data.tar.gz: 58295ba854140ebddaaf04974d848de2d25e7caa
5
5
  SHA512:
6
- metadata.gz: eed94e2d7d99f61592a341e233995b730c312ad8c71bc460f59a8d2b34a4c0cb63b918e803fd2fd13d18f5c221a82d890961fdaac8bf2ed5a122d82252ee044b
7
- data.tar.gz: bf2c82d7b1c138964010b6bb80f01b0cc0341babc279adb8ee2a4cd3921d384e064a399927309b5a1114437cb2b86f7e74b2539b742372eec29ec6d55661e5f4
6
+ metadata.gz: 04b3b4a9e03d657b0d83c08a15a63c55cf7f2b8c97f2d08c12ad692d7fa653becca7768402caa2791e5899b999cd6c24be1409d383a49e0673557d330ed6d097
7
+ data.tar.gz: a234fb10c17b6c5d7aafa092d09c0b80edea0a5332506ec466e8ae44960bd4aef93953733d4bf6bdb1dc2fdac37fc0d82419a3c78a3a07bcbb8f074ca9c787be
@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
+ ## [5.1.0.rc.1] - 08-14-2015
9
+
8
10
  ### Fixed
9
11
  - Added a `before_remove_const` method to clear cached models when Rails `reload!` is called. 5.0.1 included a workaround but this appears to cut to the core of the issue. See https://github.com/neo4jrb/neo4j/pull/855.
10
12
  - To prevent errors, changing an index to constraint or constraint to index will drop the existing index/constraint before adding the new.
@@ -19,6 +21,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
19
21
  - On `QueryProxy` objects you can now use an `:id` key in `where` and `find_by` methods to refer to the property from `id_property` (`uuid` by default)
20
22
  - Added `ActiveRel.creates_unique` and deprecated `ActiveRel.creates_unique_rel`
21
23
  - Added #inspect method to ActiveRel to show Cypher-style representation of from node, to node, and relationship type
24
+ - Added `Neo4j::Timestamps`, `Neo4j::Timestamps::Created`, and `Neo4j::Timestamps::Updated` mixins to add timestamp properties to `ActiveNode` or `ActiveRel` classes
22
25
 
23
26
  ### Changed
24
27
 
@@ -0,0 +1,8 @@
1
+ module Neo4j
2
+ # This mixin includes timestamps in the included class
3
+ module Timestamps
4
+ extend ActiveSupport::Concern
5
+ include Created
6
+ include Updated
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ module Neo4j
2
+ module Timestamps
3
+ # This mixin includes a created_at timestamp property
4
+ module Created
5
+ extend ActiveSupport::Concern
6
+ included do
7
+ property :created_at, type: DateTime
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Neo4j
2
+ module Timestamps
3
+ # This mixin includes a updated_at timestamp property
4
+ module Updated
5
+ extend ActiveSupport::Concern
6
+ included do
7
+ property :updated_at, type: DateTime
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.1.0.rc.1'
2
+ VERSION = '5.1.0.rc.2'
3
3
  end
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.1.0.rc.1
4
+ version: 5.1.0.rc.2
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-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -285,6 +285,9 @@ files:
285
285
  - lib/neo4j/shared/typecaster.rb
286
286
  - lib/neo4j/shared/validations.rb
287
287
  - lib/neo4j/tasks/migration.rake
288
+ - lib/neo4j/timestamps.rb
289
+ - lib/neo4j/timestamps/created.rb
290
+ - lib/neo4j/timestamps/updated.rb
288
291
  - lib/neo4j/type_converters.rb
289
292
  - lib/neo4j/version.rb
290
293
  - lib/neo4j/wrapper.rb