neo4j 7.0.14 → 7.0.15

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: 2f5e92e1dbf3a5c68cdb7db4c5ceca400b3811ad
4
- data.tar.gz: 5708b52d084150761bbe442f38bf6464bdd64fa1
3
+ metadata.gz: 92d43ae1a09aea6252ca9b1ee6c7148e96e4456a
4
+ data.tar.gz: 8767c8a92efa689ae7afec6a97cc0e4cd47e39ac
5
5
  SHA512:
6
- metadata.gz: e0162cb551b1f35a5784d12da7cfa13990faadcb06f0389571153980186c4cbb71bbc2aac526e0d4ecc12a6331f7a456266db4ccc0d8ed42f8f73ac613cd59ce
7
- data.tar.gz: 9613b2c10db7b05b2730e099431fbaf335facdfed8a08e791828a5263545333608e62ec576af7bcfa50b7972acfd7529fbda436b2f2ac8eabd54f615820213f3
6
+ metadata.gz: dbc745a08247ad376ac4cde429622839b963fe39bb7f8277bb0a42fbc7a80b741fd7c4ddcf0d085ae83b772b952419436a215d8a71cb057e496914742f201f35
7
+ data.tar.gz: db5240ea93ff1dc3c71f44d050746c8fd1a3500f837950cc3b893737dbd4b0984869a3202d60dcee050d4ff16b7d17b8113c5a0fd3574e62d2cc15b8471071dd
@@ -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.0.15] - 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.0.14] - 07-10-2016
7
13
 
8
14
  ### 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'
@@ -14,13 +14,19 @@ gem 'listen', '< 3.1'
14
14
 
15
15
  group 'test' do
16
16
  gem 'coveralls', require: false
17
+ if RUBY_VERSION.to_f < 2.0
18
+ gem 'tins', '< 1.7'
19
+ gem 'overcommit', '< 0.35.0'
20
+ else
21
+ gem 'overcommit'
22
+ gem 'activesupport', '>= 4.2'
23
+ end
17
24
  gem 'codecov', require: false
18
25
  gem 'simplecov', require: false
19
26
  gem 'simplecov-html', require: false
20
27
  gem 'rspec', '~> 3.4'
21
28
  gem 'its'
22
29
  gem 'test-unit'
23
- gem 'overcommit'
24
30
  gem 'colored'
25
31
  gem 'dotenv'
26
32
  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.0.14'
2
+ VERSION = '7.0.15'
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')
31
31
  s.add_dependency('activesupport', '~> 4')
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')
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.0.14
4
+ version: 7.0.15
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-07-10 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
@@ -59,6 +59,9 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 6.0.0
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: 7.0.0
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -66,6 +69,9 @@ dependencies:
66
69
  - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: 6.0.0
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: 7.0.0
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: railties
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -192,8 +198,10 @@ dependencies:
192
198
  - - "~>"
193
199
  - !ruby/object:Gem::Version
194
200
  version: 0.34.0
195
- description: |
196
- A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks heavily inspired by ActiveRecord.
201
+ description: 'A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack
202
+ frameworks heavily inspired by ActiveRecord.
203
+
204
+ '
197
205
  email: andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com
198
206
  executables:
199
207
  - neo4j-jars
@@ -293,8 +301,6 @@ files:
293
301
  - lib/neo4j/type_converters.rb
294
302
  - lib/neo4j/version.rb
295
303
  - lib/neo4j/wrapper.rb
296
- - lib/rails/generators/neo4j/migration/migration_generator.rb
297
- - lib/rails/generators/neo4j/migration/templates/migration.erb
298
304
  - lib/rails/generators/neo4j/model/model_generator.rb
299
305
  - lib/rails/generators/neo4j/model/templates/model.erb
300
306
  - lib/rails/generators/neo4j_generator.rb
@@ -326,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
332
  version: '0'
327
333
  requirements: []
328
334
  rubyforge_project: neo4j
329
- rubygems_version: 2.4.5.1
335
+ rubygems_version: 2.5.1
330
336
  signing_key:
331
337
  specification_version: 4
332
338
  summary: A graph database for Ruby
@@ -1,18 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'neo4j.rb')
2
-
3
- module Neo4j
4
- module Generators
5
- class Migration < ::Neo4j::Generators::Base
6
- def create_migration_file
7
- real_file_name = "#{Time.zone.now.strftime('%Y%m%d%H%M%S')}_#{file_name.parameterize}"
8
- @migration_class_name = file_name.camelize
9
-
10
- if args[0] == 'force_add_index'
11
- @content = "force_add_index #{args[1].to_s.classify.to_sym.inspect}, #{args[2].to_sym.inspect}"
12
- end
13
-
14
- template 'migration.erb', File.join('db/neo4j/migrate', real_file_name)
15
- end
16
- end
17
- end
18
- end
@@ -1,9 +0,0 @@
1
- class <%= @migration_class_name %> < Neo4j::Migrations::Base
2
- def up
3
- <%= @content %>
4
- end
5
-
6
- def down
7
- raise Neo4j::IrreversibleMigration
8
- end
9
- end