neo4j 7.0.16 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -8
- data/Gemfile +11 -11
- data/lib/neo4j/active_node/query/query_proxy_link.rb +1 -5
- data/lib/neo4j/railtie.rb +5 -1
- data/lib/neo4j/shared.rb +2 -0
- data/lib/neo4j/shared/enum.rb +4 -4
- data/lib/neo4j/shared/type_converters.rb +1 -2
- data/lib/neo4j/version.rb +1 -1
- data/neo4j.gemspec +4 -4
- metadata +36 -26
- data/bin/rake +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba15fc0f5d37d234071965eed2d43f554b975d97
|
4
|
+
data.tar.gz: 6ec523603c6fb4fe1866cd12534c537694978b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebc52066120144041f6e288c558e13fed5e25849182dfb39641a97531064e28b31866610859500943c1c74e352f80c3a661c6780b44bd241765184db7789f4f1
|
7
|
+
data.tar.gz: 29700cde539799c8ce950275c1de1bf9eedaa8c85f5d4fb57aee460653b6390709d28e1ec19dd5d0246ab74da04f59b5f172eb8617c0a69dcab189500d778193
|
data/CHANGELOG.md
CHANGED
@@ -3,17 +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
|
7
|
-
|
8
|
-
### Fixed
|
9
|
-
|
10
|
-
- `where` clause with question mark parameter and array values only using the first element (see #1247 #1290)
|
11
|
-
|
12
|
-
## [7.0.15] - 08-18-2016
|
6
|
+
## [7.1.0] - 07-14-2016
|
13
7
|
|
14
8
|
### Changed
|
15
9
|
|
16
|
-
-
|
10
|
+
- Gemspec dependency requirements were modified where ActiveModel, ActiveSupport, and Railties are concerned. The gem now requires >= 4.0, < 5.1.
|
11
|
+
- `ActiveModel::Serializers::Xml` is only included if supported if available.
|
17
12
|
|
18
13
|
## [7.0.14] - 07-10-2016
|
19
14
|
|
data/Gemfile
CHANGED
@@ -2,31 +2,31 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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'
|
12
12
|
|
13
13
|
gem 'listen', '< 3.1'
|
14
14
|
|
15
|
+
if RUBY_VERSION.to_f < 2.2
|
16
|
+
gem 'activemodel', '~> 4'
|
17
|
+
gem 'activesupport', '~> 4'
|
18
|
+
gem 'railties', '~> 4'
|
19
|
+
end
|
20
|
+
|
15
21
|
group 'test' do
|
16
22
|
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
|
24
23
|
gem 'codecov', require: false
|
25
24
|
gem 'simplecov', require: false
|
26
25
|
gem 'simplecov-html', require: false
|
27
26
|
gem 'rspec', '~> 3.4'
|
28
27
|
gem 'its'
|
29
28
|
gem 'test-unit'
|
29
|
+
gem 'overcommit'
|
30
30
|
gem 'colored'
|
31
31
|
gem 'dotenv'
|
32
32
|
gem 'timecop'
|
data/lib/neo4j/railtie.rb
CHANGED
@@ -7,7 +7,11 @@ module Neo4j
|
|
7
7
|
class Railtie < ::Rails::Railtie
|
8
8
|
config.neo4j = ActiveSupport::OrderedOptions.new
|
9
9
|
|
10
|
-
if
|
10
|
+
if defined?(ActiveSupport::Reloader)
|
11
|
+
ActiveSupport::Reloader.to_prepare do
|
12
|
+
Neo4j::ActiveNode::Labels::Reloading.reload_models!
|
13
|
+
end
|
14
|
+
elsif const_defined?(:ActionDispatch)
|
11
15
|
ActionDispatch::Reloader.to_prepare do
|
12
16
|
Neo4j::ActiveNode::Labels::Reloading.reload_models!
|
13
17
|
end
|
data/lib/neo4j/shared.rb
CHANGED
data/lib/neo4j/shared/enum.rb
CHANGED
@@ -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]
|
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)
|
92
92
|
end
|
93
93
|
|
94
|
-
def build_property_options(
|
94
|
+
def build_property_options(enum_keys, _options = {})
|
95
95
|
{
|
96
|
-
default:
|
96
|
+
default: enum_keys.keys.first
|
97
97
|
}
|
98
98
|
end
|
99
99
|
|
data/lib/neo4j/version.rb
CHANGED
data/neo4j.gemspec
CHANGED
@@ -27,11 +27,11 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h
|
|
27
27
|
s.rdoc_options = ['--quiet', '--title', 'Neo4j.rb', '--line-numbers', '--main', 'README.rdoc', '--inline-source']
|
28
28
|
|
29
29
|
s.add_dependency('orm_adapter', '~> 0.5.0')
|
30
|
-
s.add_dependency('activemodel', '
|
31
|
-
s.add_dependency('activesupport', '
|
32
|
-
s.add_dependency('neo4j-core', '>= 6.0.0'
|
30
|
+
s.add_dependency('activemodel', '>= 4.0', '< 5.1')
|
31
|
+
s.add_dependency('activesupport', '>= 4.0', '< 5.1')
|
32
|
+
s.add_dependency('neo4j-core', '>= 6.0.0')
|
33
33
|
s.add_dependency('neo4j-community', '~> 2.0') if RUBY_PLATFORM =~ /java/
|
34
|
-
s.add_development_dependency('railties', '
|
34
|
+
s.add_development_dependency('railties', '>= 4.0', '< 5.1')
|
35
35
|
s.add_development_dependency('pry')
|
36
36
|
s.add_development_dependency('os')
|
37
37
|
s.add_development_dependency('rake')
|
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
|
4
|
+
version: 7.1.0
|
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-
|
11
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -28,30 +28,42 @@ dependencies:
|
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
36
|
+
version: '5.1'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4.0'
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '5.1'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: activesupport
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '4'
|
53
|
+
version: '4.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.1'
|
48
57
|
type: :runtime
|
49
58
|
prerelease: false
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
|
-
- - "
|
61
|
+
- - ">="
|
53
62
|
- !ruby/object:Gem::Version
|
54
|
-
version: '4'
|
63
|
+
version: '4.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '5.1'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: neo4j-core
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,9 +71,6 @@ dependencies:
|
|
59
71
|
- - ">="
|
60
72
|
- !ruby/object:Gem::Version
|
61
73
|
version: 6.0.0
|
62
|
-
- - "<"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 7.0.0
|
65
74
|
type: :runtime
|
66
75
|
prerelease: false
|
67
76
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,23 +78,26 @@ dependencies:
|
|
69
78
|
- - ">="
|
70
79
|
- !ruby/object:Gem::Version
|
71
80
|
version: 6.0.0
|
72
|
-
- - "<"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 7.0.0
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: railties
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
|
-
- - "
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '4.0'
|
88
|
+
- - "<"
|
80
89
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
90
|
+
version: '5.1'
|
82
91
|
type: :development
|
83
92
|
prerelease: false
|
84
93
|
version_requirements: !ruby/object:Gem::Requirement
|
85
94
|
requirements:
|
86
|
-
- - "
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '4.0'
|
98
|
+
- - "<"
|
87
99
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
100
|
+
version: '5.1'
|
89
101
|
- !ruby/object:Gem::Dependency
|
90
102
|
name: pry
|
91
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,10 +210,8 @@ dependencies:
|
|
198
210
|
- - "~>"
|
199
211
|
- !ruby/object:Gem::Version
|
200
212
|
version: 0.34.0
|
201
|
-
description:
|
202
|
-
frameworks heavily inspired by ActiveRecord.
|
203
|
-
|
204
|
-
'
|
213
|
+
description: |
|
214
|
+
A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks heavily inspired by ActiveRecord.
|
205
215
|
email: andreas.ronge@gmail.com, brian@brian-underwood.codes, chris@subvertallmedia.com
|
206
216
|
executables:
|
207
217
|
- neo4j-jars
|
@@ -214,7 +224,6 @@ files:
|
|
214
224
|
- Gemfile
|
215
225
|
- README.md
|
216
226
|
- bin/neo4j-jars
|
217
|
-
- bin/rake
|
218
227
|
- config/locales/en.yml
|
219
228
|
- config/neo4j/add_classnames.yml
|
220
229
|
- config/neo4j/config.yml
|
@@ -333,8 +342,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
342
|
version: '0'
|
334
343
|
requirements: []
|
335
344
|
rubyforge_project: neo4j
|
336
|
-
rubygems_version: 2.5.1
|
345
|
+
rubygems_version: 2.4.5.1
|
337
346
|
signing_key:
|
338
347
|
specification_version: 4
|
339
348
|
summary: A graph database for Ruby
|
340
349
|
test_files: []
|
350
|
+
has_rdoc: true
|
data/bin/rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'rake' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require 'pathname'
|
11
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require 'rubygems'
|
15
|
-
require 'bundler/setup'
|
16
|
-
|
17
|
-
load Gem.bin_path('rake', 'rake')
|