rubyzip Questions

3

I'm reading a lot of zip file with rubyzip. However this error message is always showing in only specific file even it is zip file. /app/vendor/bundle/ruby/2.3.0/gems/rubyzip-1.2.1/lib/zip/cent...
Paraboloid asked 12/8, 2017 at 11:58

1

Solved

I have a model with one attachment that uses ActiveStorage: class ProofreadDocument < ApplicationRecord has_one_attached :file end I am working on a rake task to attach files to a proofrea...
Sarilda asked 2/10, 2018 at 10:10

2

Solved

I have a ruby script that downloads a remote ZIP file from a server using rubys opencommand. When I look into the downloaded content, it shows something like this: PK\x03\x04\x14\x00\b\x00\b\x00\x...
Helbonna asked 16/10, 2015 at 14:43

0

Actually my requirement is to zip some files in some folders. I have already many files saved on my server and associated with some objects. So I have to zip all the files related to one object som...
Dorice asked 27/10, 2016 at 16:10

2

Solved

I am looking for a way to create multiple csv files and download them as one zip archive within one request in my rails application. To build the archive I use rubyzip gem - to download it just th...
Egor asked 13/9, 2014 at 15:2

8

Solved

I'm using rubyzip to zip a csv file so uses can download it. This works perfectly in development mode. But when I tried zipping the file on the production server (rackspace) I received the error: L...
Bukharin asked 22/8, 2012 at 18:33

1

Solved

I have problem where I need to download, unzip, and then process line by line a very large CSV file. I think it's useful to give you an idea how large the file is: big_file.zip ~700mb big_file.cs...
Scholem asked 29/4, 2014 at 23:48

3

I know how to retrieve the contents of a normal zip-file with rubyzip. But i got trouble unzipping the contents of a zipped folder and i hope any of u guys can help me out. this is the code i use ...
Locris asked 16/5, 2011 at 12:31

1

Solved

In my invoice system, I want a backup function to download all invoices at once in one zip file. This system is running on heroku - so it's only possible to save the pdfs temporary. I've the rubyz...
Birddog asked 12/3, 2013 at 11:34

6

Solved

I've got a ruby on rails site here (rails 2.0.2, ruby 1.8.6) with both rubyzip and zipruby installed, but they conflict on the File.exists? method so I want to remove one. What's the general consen...
Astrogation asked 2/8, 2011 at 3:25

4

I'm struggling with getting rubyzip to append directories to a zipoutputstream. (I want the output stream so I can send it from a rails controller). My code follows this example: http://info.micha...
Wonky asked 24/2, 2010 at 0:48

3

Solved

I am attempting to use the roo gem to process .xlsx spreadsheets that are uploaded by an outside party. I'm getting the following error: LoadError (cannot load such file -- zip/zipfilesystem): I'...
Caravansary asked 6/9, 2013 at 13:55

1

Solved

Consider, we have following directory structure: Location: /Users/me/Desktop/directory_to_zip/ dir1 dir2 somefile.txt now, If I use rubyzip to zip the contents of directory_to_zip using the foll...
Benzedrine asked 2/2, 2014 at 20:39

3

I'm using a combination of rubyzip and nokogiri to edit a .docx file. I'm using rubyzip to unzip the .docx file and then using nokogiri to parse and change the body of the word/document.xml file bu...
Awhirl asked 7/10, 2010 at 20:0

7

Solved

I know there is another thread on this subject but I still face this problem even after using all solutions. Is there any other way to generate zip files? Can i use Ubuntu system commands? I did ...
Thay asked 13/5, 2011 at 20:41

1

Solved

Im attempting to open a docx file and write back into it using rubyzip 1.0.0 and rails 3. In my gemfile I have: gem 'rubyzip' and the code i'm running is; module Look class Generator def i...
Hundley asked 29/8, 2013 at 19:0

1

Solved

I have this code, which writes a zip file to disk, reads it back, uploads to s3, then deletes the file: compressed_file = some_temp_path Zip::ZipOutputStream.open(compressed_file) do |zos| some_...
Deforce asked 11/4, 2013 at 10:52

1

I want to download photos from my website after zipping. I am using rubyZip gem but unable to zip remote files. Following is the scenario: I am trying to zip content from server. Content is someth...
Melano asked 23/6, 2012 at 11:50

3

I used the rubyzip gem in Ruby 1.8.7 before, but I heard rubyzip doesn't work well with ruby 1.9.2. What zip libraries work well with Ruby 1.9.2?
Laurielaurier asked 5/5, 2011 at 3:41

2

How do i go about zipping a directory in ruby on rails? I've tried rubyzip without success. I don't need to zip the contents of the dir individually just zip the dir itself.
Mosley asked 16/7, 2012 at 17:54

1

Solved

I am running a Rails (3.2.3) application with Ruby 1.9.3p194 on the basic Ubuntu lucid32 image in a Vagrant virtual box. The virtual box is running on Leopard, for what it's worth. I'm trying to us...
Brogue asked 14/5, 2012 at 2:55

1

Solved

I am creating a zip file using the technique described here: http://info.michael-simons.eu/2008/01/21/using-rubyzip-to-create-zip-files-on-the-fly/ The client has asked that I include subdirector...
Hyalite asked 6/12, 2011 at 2:33

2

I'm currently trying to attach image files to a model directly from a zip file (i.e. without first saving them on a disk). It seems like there should be a clearer way of converting a ZipEntry to a ...
Dysentery asked 4/2, 2011 at 0:28

1

Solved

I am working on writing code which can read/write Excel xlsx files. xlsx files are simply zip archives of several xml files, so in order to test out if I could write a file, I used a gem called rub...
Dioscuri asked 27/5, 2011 at 14:16

2

Solved

I have a Ruby program that zips a directory tree of XML files using the rubyzip gem. My problem is that the file is starting to be heavy and I would like to increase the compression level, since co...
Phidias asked 18/3, 2010 at 16:9

© 2022 - 2024 — McMap. All rights reserved.