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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16a068f36afad76fd754acf72df1e603742a0826
4
- data.tar.gz: 9da1d516939d4957fe80b31bc60510d2bcc6bf01
3
+ metadata.gz: 6595c7bcaa05d14677fb57ff4030c61602ecc0ad
4
+ data.tar.gz: c13d10c3d17cc35f4eb663ed5cb425bd800cde06
5
5
  SHA512:
6
- metadata.gz: bd3f47e62c077752f70b12cf60bdde8a4be94fe8a28fae30f959ce5ad764d3f716ef86e995b3c55815ea2411a7e2576a01b5dfcad97ffb24e4648864a2191188
7
- data.tar.gz: 80cfe52b5b76be46e5ceb5a948f1959ad4e36f8de5552a1cb8b6d86601c7263878d92c4028afab45b65ef7d3252938c5f38b60b1d91aa3540e3af1b9cc55f3aa
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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "3.0.0.alpha.5"
2
+ VERSION = "3.0.0.alpha.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.5
4
+ version: 3.0.0.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge