neo4j 7.1.2 → 7.1.3

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: bb6890e72f1082eb70684060ee58c7287ed81dc8
4
- data.tar.gz: cc8f0efb5ce531b73032cafc0eba3dcd37aad131
3
+ metadata.gz: 26b7ce1277e787c8e4e3587c6533611b88f9ff91
4
+ data.tar.gz: d583a0d749c3ecee79de5db704cd6111b70c4fc9
5
5
  SHA512:
6
- metadata.gz: 8d07ea1bcb73d2d9026b58b0a35632d0923e47dad3baf82e4e985f7304315c52d76072a5da5762f3138c038150d4180608391adcbfd97739f7db4f5c57345d06
7
- data.tar.gz: b3f443fe620ef9e13e783cacdc46dcdab2d77079269d03efe4f73717e092fb3cd5e2f2709daa0a6cb1156aaf4a4843191de010c52ff9153927730e99d5ff5555
6
+ metadata.gz: 4f2ee2471012baf883b91109e9c599216910e60b13c2c143626498381c5e9d10cc202477f55eebf661fd2d6500d10738d597ac7d63183efc97d5b46a6a041cf5
7
+ data.tar.gz: 55ebf35bf70594ed8b74a37fa0d64227d983cb7fa60f5ce03563ecd24d6471a31d48e8ef81f544b5a80d5bc29aa303f284d35b36a6bca4b4e559d4aaacf7b40d
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
  This file should follow the standards specified on [http://keepachangelog.com/]
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [7.1.3] - 08-18-2016
7
+
8
+ ### Changed
9
+
10
+ - Default value for `enum` is `nil` instead of the first value. This is a **BREAKING** change but is being released as a patch because the original behavior was considered a bug. See [this pull request](https://github.com/neo4jrb/neo4j/pull/1270) (thanks to ProGM and andyweiss1982)
11
+
6
12
  ## [7.1.2] - 08-01-2016
7
13
 
8
14
  ### Fixed
@@ -22,6 +28,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
22
28
  - Gemspec dependency requirements were modified where ActiveModel, ActiveSupport, and Railties are concerned. The gem now requires >= 4.0, < 5.1.
23
29
  - `ActiveModel::Serializers::Xml` is only included if supported if available.
24
30
 
31
+ ## [7.0.15] - 08-18-2016
32
+
33
+ ### Changed
34
+
35
+ - Default value for `enum` is `nil` instead of the first value. This is a **BREAKING** change but is being released as a patch because the original behavior was considered a bug. See [this pull request](https://github.com/neo4jrb/neo4j/pull/1270) (thanks to ProGM and andyweiss1982)
36
+
25
37
  ## [7.0.14] - 07-10-2016
26
38
 
27
39
  ### Fixed
data/Gemfile CHANGED
@@ -2,10 +2,10 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- if ENV['CI']
6
- gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master'
7
- gem 'neo4j-rake_tasks', github: 'neo4jrb/neo4j-rake_tasks', branch: 'master'
8
- end
5
+ # if ENV['CI']
6
+ # gem 'neo4j-core', github: 'neo4jrb/neo4j-core', branch: 'master'
7
+ # gem 'neo4j-rake_tasks', github: 'neo4jrb/neo4j-rake_tasks', branch: 'master'
8
+ # end
9
9
 
10
10
  # gem 'active_attr', github: 'neo4jrb/active_attr', branch: 'performance'
11
11
  # gem 'active_attr', path: '../active_attr'
@@ -20,13 +20,19 @@ end
20
20
 
21
21
  group 'test' do
22
22
  gem 'coveralls', require: false
23
+ if RUBY_VERSION.to_f < 2.0
24
+ gem 'tins', '< 1.7'
25
+ gem 'overcommit', '< 0.35.0'
26
+ else
27
+ gem 'overcommit'
28
+ gem 'activesupport', '>= 4.2'
29
+ end
23
30
  gem 'codecov', require: false
24
31
  gem 'simplecov', require: false
25
32
  gem 'simplecov-html', require: false
26
33
  gem 'rspec', '~> 3.4'
27
34
  gem 'its'
28
35
  gem 'test-unit'
29
- gem 'overcommit'
30
36
  gem 'colored'
31
37
  gem 'dotenv'
32
38
  gem 'timecop'
@@ -67,7 +67,7 @@ module Neo4j::Shared
67
67
  end
68
68
  end
69
69
 
70
- VALID_OPTIONS_FOR_ENUMS = [:_index, :_prefix, :_suffix]
70
+ VALID_OPTIONS_FOR_ENUMS = [:_index, :_prefix, :_suffix, :_default]
71
71
  DEFAULT_OPTIONS_FOR_ENUMS = {
72
72
  _index: true
73
73
  }
@@ -88,12 +88,12 @@ module Neo4j::Shared
88
88
  def define_property(property_name, enum_keys, options)
89
89
  property_options = build_property_options(enum_keys, options)
90
90
  property property_name, property_options
91
- serialize property_name, Neo4j::Shared::TypeConverters::EnumConverter.new(enum_keys)
91
+ serialize property_name, Neo4j::Shared::TypeConverters::EnumConverter.new(enum_keys, property_options)
92
92
  end
93
93
 
94
- def build_property_options(enum_keys, _options = {})
94
+ def build_property_options(_enum_keys, options = {})
95
95
  {
96
- default: enum_keys.keys.first
96
+ default: options[:_default]
97
97
  }
98
98
  end
99
99
 
@@ -264,8 +264,9 @@ module Neo4j::Shared
264
264
  end
265
265
 
266
266
  class EnumConverter
267
- def initialize(enum_keys)
267
+ def initialize(enum_keys, options)
268
268
  @enum_keys = enum_keys
269
+ @options = options
269
270
  end
270
271
 
271
272
  def converted?(value)
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '7.1.2'
2
+ VERSION = '7.1.3'
3
3
  end
@@ -29,7 +29,7 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
29
29
  s.add_dependency('orm_adapter', '~> 0.5.0')
30
30
  s.add_dependency('activemodel', '>= 4.0', '< 5.1')
31
31
  s.add_dependency('activesupport', '>= 4.0', '< 5.1')
32
- s.add_dependency('neo4j-core', '>= 6.0.0')
32
+ s.add_dependency('neo4j-core', '>= 6.0.0', '< 7.0.0')
33
33
  s.add_dependency('neo4j-community', '~> 2.0') if RUBY_PLATFORM =~ /java/
34
34
  s.add_development_dependency('railties', '>= 4.0', '< 5.1')
35
35
  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: 7.1.2
4
+ version: 7.1.3
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: 2016-08-01 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter
@@ -71,6 +71,9 @@ dependencies:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: 6.0.0
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 7.0.0
74
77
  type: :runtime
75
78
  prerelease: false
76
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -78,6 +81,9 @@ dependencies:
78
81
  - - ">="
79
82
  - !ruby/object:Gem::Version
80
83
  version: 6.0.0
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 7.0.0
81
87
  - !ruby/object:Gem::Dependency
82
88
  name: railties
83
89
  requirement: !ruby/object:Gem::Requirement
@@ -210,8 +216,10 @@ dependencies:
210
216
  - - "~>"
211
217
  - !ruby/object:Gem::Version
212
218
  version: 0.34.0
213
- description: |
214
- A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks heavily inspired by ActiveRecord.
219
+ description: 'A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack
220
+ frameworks heavily inspired by ActiveRecord.
221
+
222
+ '
215
223
  email: andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com
216
224
  executables:
217
225
  - neo4j-jars
@@ -342,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
350
  version: '0'
343
351
  requirements: []
344
352
  rubyforge_project: neo4j
345
- rubygems_version: 2.4.5.1
353
+ rubygems_version: 2.5.1
346
354
  signing_key:
347
355
  specification_version: 4
348
356
  summary: A graph database for Ruby