Skip to content

Commit

Permalink
use neo4j spatial 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Mar 21, 2014
1 parent a493167 commit 5bd7a93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/neography/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,15 @@
end

task :get_spatial, :version do |t, args|
args.with_defaults(:version => "2.0.0")
args.with_defaults(:version => "2.0.1")
puts "Installing Neo4j-Spatial #{args[:version]}"

unless File.exist?('neo4j-spatial.zip')
df = File.open('neo4j-spatial.zip', 'wb')
case args[:version]
when "2.0.1"
dist = "dist.neo4j.org"
request = "/spatial/neo4j-spatial-0.12-neo4j-2.0.1-server-plugin.zip"
when "2.0.0"
dist = "dist.neo4j.org"
request = "/spatial/neo4j-spatial-0.12-neo4j-2.0.0-server-plugin.zip"
Expand Down

0 comments on commit 5bd7a93

Please sign in to comment.