neo4j 5.0.5 → 5.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4j/railtie.rb +8 -4
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba168983e2a2af0eb628d81329aa14f7f0ffae8
|
4
|
+
data.tar.gz: 9785f72a45278db7810578a5cb8fc0d053402a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5597182030aed02d00abcd855276d9057cbb35a0bcfa333d969d4565a1d8a36e01ab1d3a488fdae9329bfd4e02fd3df2b124bb921fefdc63aab87f682d41f754
|
7
|
+
data.tar.gz: 247e9c2c4175ff9ec335f4016b2230c8e3f3745c34cb5b762be6f34247191f8ae645b4a61fdad25696f9a9f57ac8ff592a8ba531cb6c944c2a06db82342b2287
|
data/lib/neo4j/railtie.rb
CHANGED
@@ -72,12 +72,18 @@ module Neo4j
|
|
72
72
|
return if @neo4j_cypher_logging_registered
|
73
73
|
|
74
74
|
Neo4j::Server::CypherSession.log_with do |message|
|
75
|
-
|
75
|
+
(Neo4j::Config[:logger] || Rails.logger).info message
|
76
76
|
end
|
77
77
|
|
78
78
|
@neo4j_cypher_logging_registered = true
|
79
79
|
end
|
80
80
|
|
81
|
+
console do
|
82
|
+
Neo4j::Config[:logger] = ActiveSupport::Logger.new(STDOUT)
|
83
|
+
|
84
|
+
register_neo4j_cypher_logging
|
85
|
+
end
|
86
|
+
|
81
87
|
# Starting Neo after :load_config_initializers allows apps to
|
82
88
|
# register migrations in config/initializers
|
83
89
|
initializer 'neo4j.start', after: :load_config_initializers do |app|
|
@@ -90,10 +96,8 @@ module Neo4j
|
|
90
96
|
end
|
91
97
|
Neo4j::Config.configuration.merge!(cfg.to_hash)
|
92
98
|
|
93
|
-
|
94
|
-
end
|
99
|
+
Neo4j::Config[:logger] ||= Rails.logger
|
95
100
|
|
96
|
-
console do
|
97
101
|
register_neo4j_cypher_logging
|
98
102
|
end
|
99
103
|
end
|
data/lib/neo4j/version.rb
CHANGED
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.0.
|
4
|
+
version: 5.0.6
|
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-07-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|