neo4j 8.0.5 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed65404b4ce14b8954c173c41fa6075587ef5394
4
- data.tar.gz: 711a76dd1c7fdf1483a6bca709e362fcd7b42e00
3
+ metadata.gz: fad6e30fed3d07cbba87f2c74e137b3e420a92d4
4
+ data.tar.gz: d1cb7be8c903d549832ea04e006ec94f753b3885
5
5
  SHA512:
6
- metadata.gz: 5420076c376efd118458720e7607235f38c0dec1014199836907b8d4b8ecd6f07014de681b1ce77bdab51de9a7005d41801c521b29e4d180c8053e8a27e4989a
7
- data.tar.gz: 4e04692112bfffc79bc3422cfa0c6ed1cdcb3bda6d467053cb53504a5c18ef270404dfc08315cb95e2dccfb2e40f4c2c17378f21254975c886f3506961382668
6
+ metadata.gz: b58852b7113d7c1d993b99d4bad6dda03d1bc076e4f4034a701e3f71cd5b854f438f2c977b8eb319c3e1217e67f3aef1ecf1f6335e33030ddb6c2f7e49bdb50b
7
+ data.tar.gz: 1dd0b62a6f71318ed08b4485b1df1ce176a10a06ead73c0de2c2c67f49ed362d3c6f9355af99388f334870ed4fe0817c3e73ab10d9ffdf740d31432fb687e3b8
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
+ ## [8.0.6] 2016-02-04
7
+
8
+ ### Fixed
9
+
10
+ - Rake tasks broken without Rails (thanks @CoralineAda, @phreakocious, and @Joshfindit, see #1330, #1331, and #1353)
11
+
6
12
  ## [8.0.5] 2016-01-05
7
13
 
8
14
  ### Fixed
data/lib/neo4j/railtie.rb CHANGED
@@ -36,10 +36,6 @@ module Neo4j
36
36
  config.i18n.load_path += Dir[File.join(File.dirname(__FILE__), '..', '..', '..', 'config', 'locales', '*.{rb,yml}')]
37
37
  end
38
38
 
39
- rake_tasks do
40
- load 'neo4j/tasks/migration.rake'
41
- end
42
-
43
39
  console do
44
40
  Neo4j::Config[:logger] = ActiveSupport::Logger.new(STDOUT)
45
41
  end
@@ -6,7 +6,12 @@ if !defined?(Rails) && !Rake::Task.task_defined?('environment')
6
6
  task :environment do
7
7
  require 'neo4j/session_manager'
8
8
  require 'ostruct'
9
- Neo4j::Railtie.setup!
9
+ neo4j_url = ENV['NEO4J_URL'] || 'http://localhost:7474'
10
+ $LOAD_PATH.unshift File.dirname('./')
11
+ Neo4j::ActiveBase.on_establish_session do
12
+ type = neo4j_url =~ /^bolt/ ? :bolt : :http
13
+ Neo4j::SessionManager.open_neo4j_session(type, neo4j_url)
14
+ end
10
15
  end
11
16
  end
12
17
 
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.0.5'
2
+ VERSION = '8.0.6'
3
3
  end
data/lib/neo4j.rb CHANGED
@@ -101,6 +101,8 @@ module Neo4j
101
101
  autoload :Migration
102
102
  end
103
103
 
104
+ load 'neo4j/tasks/migration.rake'
105
+
104
106
  require 'neo4j/active_node/orm_adapter'
105
107
  if defined?(Rails)
106
108
  require 'rails/generators'
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: 8.0.5
4
+ version: 8.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: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter