neo4j 6.0.0.alpha.2 → 6.0.0.alpha.3

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: 40cad7a0b402768974f1cfa94e429cab6ab052d9
4
- data.tar.gz: f64ed69a5270e3acec6e30001ef330af13a2bcc1
3
+ metadata.gz: 57610410963cadcd884d3d98a99b4d6e6096f65f
4
+ data.tar.gz: c5b7fa5ec84dc568de492f8268af1722c81d3079
5
5
  SHA512:
6
- metadata.gz: 7a6de685b001381d41e4302d2c3771c0f1d02cab9af8ca2c2c79f2f1c6fdb3ad93df8f4c619c102f0c3659a32df6197c9ca5380eb1febcc576b68ba3fc77ffb7
7
- data.tar.gz: a221e15d1366df5b7b4c5a7fb3da3d4e62d596c6a3a91e4be1d979b60df05e8220bf4511a9ffb4ed799d5c2da422aadfab907432236e8dcd9500de70c94da36f
6
+ metadata.gz: ce92ab426be488520f21e7303e362797ad7c75f5a36085bbba88cf5b0080118ac401e5088c5ab0de7b90b862e24a80351cd888916a6f3746b199515eac9aac45
7
+ data.tar.gz: ea9eb580701ad8c463758173562b27e48e14608116ee2760879e1b0eecb073129fdb791344f742e641f462c4e8978e72528851c659c581001c869e4260edc8d8
data/CHANGELOG.md CHANGED
@@ -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
+ ## [6.0.0.alpha.3] - 10-14-2015
7
+
8
+ ### Removed
9
+
10
+ - Railtie was removing username/password and putting them into the session options. This has been unneccessary in `neo4j-core` for a while now
11
+
6
12
  ## [6.0.0.alpha.2] - 10-14-2015
7
13
 
8
14
  ### Added
data/lib/neo4j/railtie.rb CHANGED
@@ -34,18 +34,19 @@ module Neo4j
34
34
  end
35
35
 
36
36
  def setup_config_defaults!(cfg)
37
- cfg.session_type ||= ENV['NEO4J_PATH'] ? :embedded_db : :server_db
38
- cfg.session_path ||= ENV['NEO4J_URL'] || ENV['NEO4J_PATH'] || 'http://localhost:7474'
37
+ cfg.session_type ||= default_session_type
38
+ cfg.session_path ||= default_session_path
39
39
  cfg.session_options ||= {}
40
40
  cfg.sessions ||= []
41
+ end
41
42
 
42
- uri = URI(cfg.session_path)
43
- return if uri.user.blank?
44
-
45
- cfg.session_options.reverse_merge!(basic_auth: {username: uri.user, password: uri.password})
46
- cfg.session_path = cfg.session_path.gsub("#{uri.user}:#{uri.password}@", '')
43
+ def default_session_type
44
+ ENV['NEO4J_PATH'] ? :embedded_db : :server_db
47
45
  end
48
46
 
47
+ def default_session_path
48
+ ENV['NEO4J_URL'] || ENV['NEO4J_PATH'] || 'http://localhost:7474'
49
+ end
49
50
 
50
51
  def start_embedded_session(session)
51
52
  # See https://github.com/jruby/jruby/wiki/UnlimitedStrengthCrypto
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '6.0.0.alpha.2'
2
+ VERSION = '6.0.0.alpha.3'
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: 6.0.0.alpha.2
4
+ version: 6.0.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg