Skip to content

Commit

Permalink
Merge pull request #109 from simonoff/master
Browse files Browse the repository at this point in the history
Rubyzip 1.0 compatibility
  • Loading branch information
maxdemarzi committed Sep 4, 2013
2 parents 215b743 + 9583b70 commit 76bad11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/neography.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'logger'
require 'ostruct'
require 'os'
require 'zip/zipfilesystem'
require 'zip/filesystem'

require 'neography/multi_json_parser'

Expand Down
4 changes: 2 additions & 2 deletions lib/neography/tasks.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# borrowed from architect4r
require 'os'
require 'httpclient'
require 'zip/zip'
require 'zip'
require 'net/http'

namespace :neo4j do
Expand Down Expand Up @@ -29,7 +29,7 @@

# Extract and move to neo4j directory
unless File.exist?('neo4j')
Zip::ZipFile.open('neo4j.zip') do |zip_file|
Zip::File.open('neo4j.zip') do |zip_file|
zip_file.each do |f|
f_path=File.join(".", f.name)
FileUtils.mkdir_p(File.dirname(f_path))
Expand Down
4 changes: 2 additions & 2 deletions neography.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Gem::Specification.new do |s|
s.add_dependency "rake", ">= 0.8.7"
s.add_dependency "json", ">= 1.7.7"
s.add_dependency "os", ">= 0.9.6"
s.add_dependency "rubyzip", "~> 0.9.7"
s.add_dependency "multi_json", ">= 1.3.2"
s.add_dependency "rubyzip", "~> 1.0.0"
s.add_dependency "multi_json", ">= 1.3.2"
end

0 comments on commit 76bad11

Please sign in to comment.