From aac74c545725387e227b0bda00adf3f420c29698 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Wed, 25 Jan 2012 12:09:25 -0600 Subject: [PATCH] heroku compatability (thanks Marcel Scherf for the idea) --- lib/neography/rest.rb | 2 +- lib/neography/tasks.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/neography/rest.rb b/lib/neography/rest.rb index f862b46..73781a3 100644 --- a/lib/neography/rest.rb +++ b/lib/neography/rest.rb @@ -4,7 +4,7 @@ class Rest attr_accessor :protocol, :server, :port, :directory, :log_file, :log_enabled, :logger, :max_threads, :authentication, :username, :password - def initialize(options={}) + def initialize(options=ENV['NEO4J_URL'] || {}) init = {:protocol => Neography::Config.protocol, :server => Neography::Config.server, :port => Neography::Config.port, diff --git a/lib/neography/tasks.rb b/lib/neography/tasks.rb index 348a173..c25f599 100644 --- a/lib/neography/tasks.rb +++ b/lib/neography/tasks.rb @@ -4,7 +4,7 @@ namespace :neo4j do desc "Install Neo4j" task :install, :edition, :version do |t, args| - args.with_defaults(:edition => "community", :version => "1.6.M03") + args.with_defaults(:edition => "community", :version => "1.6") puts "Installing Neo4j-#{args[:edition]}-#{args[:version]}" if OS::Underlying.windows?