neo4j 3.0.0.alpha.5 → 3.0.0.alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/neo4j/railtie.rb +5 -0
- data/lib/neo4j/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6595c7bcaa05d14677fb57ff4030c61602ecc0ad
|
4
|
+
data.tar.gz: c13d10c3d17cc35f4eb663ed5cb425bd800cde06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970671d94e9487eef74d52649d98bb84defba021fb5ca9730c8bcd319052e83abb07fe195544b4a1fa7c643d476ad77c3d72731f4beca5c6cc2b0f857a0ac302
|
7
|
+
data.tar.gz: 476ce721897c6e5d703fc43d23a366bc9b06e312e9030e1e58b6f9a86fbf7beae7e6c945bfa79a73002ffab3689e87e687f69adab2067bd418644c1b122b606d
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== 3.0.0.alpha.6
|
2
|
+
* Support for Heroku URLs, see wiki https://github.com/andreasronge/neo4j/wiki/Neo4j-v3 (#334)
|
3
|
+
|
1
4
|
== 3.0.0.alpha.5
|
2
5
|
* Added allow session options via 'config.neo4j.session_options' so it can run on heroku (#333)
|
3
6
|
* Relaxed Dependencies for Rails 4.1 (#332)
|
data/lib/neo4j/railtie.rb
CHANGED
@@ -18,6 +18,11 @@ module Neo4j
|
|
18
18
|
cfg.session_options ||= {}
|
19
19
|
cfg.sessions ||= []
|
20
20
|
|
21
|
+
unless (uri = URI(cfg.session_path)).user.blank?
|
22
|
+
cfg.session_options.reverse_merge!({ basic_auth: { username: uri.user, password: uri.password } })
|
23
|
+
cfg.session_path = cfg.session_path.gsub("#{uri.user}:#{uri.password}@", '')
|
24
|
+
end
|
25
|
+
|
21
26
|
if cfg.sessions.empty?
|
22
27
|
cfg.sessions << {type: cfg.session_type, path: cfg.session_path, options: cfg.session_options}
|
23
28
|
end
|
data/lib/neo4j/version.rb
CHANGED