Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PATH
pmap (~> 1.0, >= 1.0.2)
pry (~> 0.10, >= 0.10.3)
rest-client (>= 1.8.0, < 2.1)
rubyzip (~> 1.3)
rubyzip (~> 2.0)
terminal-table (~> 3.0.2)
thread_safe

Expand Down Expand Up @@ -76,7 +76,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubyzip (1.3.0)
rubyzip (2.4.1)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thread_safe (0.3.6)
Expand Down
2 changes: 1 addition & 1 deletion gutdata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Gem::Specification.new do |s|
s.add_dependency 'pmap', '~> 1.0', '>= 1.0.2'
s.add_dependency 'pry', '~> 0.10', '>= 0.10.3'
s.add_dependency 'rest-client', '>= 1.8.0', '< 2.1'
s.add_dependency 'rubyzip', '~> 1.3'
s.add_dependency 'rubyzip', '~> 2.0'
s.add_dependency 'terminal-table', '~> 3.0.2'
s.add_dependency 'thread_safe'
end
2 changes: 1 addition & 1 deletion lib/gutdata/models/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def upload_multiple_data(data, project_blueprint, options = { :client => GutData
# create a temporary zip file
dir = Dir.mktmpdir
begin
Zip::File.open("#{dir}/upload.zip", Zip::File::CREATE) do |zip|
Zip::File.open("#{dir}/upload.zip", create: true) do |zip|
# TODO: make sure schema columns match CSV column names
zip.get_output_stream('upload_info.json') { |f| f.puts JSON.pretty_generate(manifest) }

Expand Down
2 changes: 1 addition & 1 deletion lib/gutdata/models/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def with_zip(opts = {})
Tempfile.open('deploy-graph-archive') do |temp|
zip_filename = temp.path
File.open(zip_filename, 'w') do |zip|
Zip::File.open(zip.path, Zip::File::CREATE) do |zipfile|
Zip::File.open(zip.path, create: true) do |zipfile|
yield zipfile
end
end
Expand Down