Displaying 20 results from an estimated 40000 matches similar to: "Stream rubyzip"
2011 Sep 21
4
rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails
I''m trying to move my application from Rails 2.3.5 to Rails 3.1 which is
a challenge.
In my application,
require ''zip/zip''
fails with ''no such file to load -- zip/zip
gem list --local
shows
rubyzip (0.9.4)
I see zip.rb in
d:\ruby192\lib\ruby\gems\1.9.1\gems\rubyzip-0.9.4\lib\zip\
--
Posted via http://www.ruby-forum.com/.
--
You received this message
2010 Jan 19
5
Rubyzip gem installed but not recognised
Hi,
I have installed rubyzip successfully(see output below)
Successfully installed rubyzip-0.9.1
1 gem installed
Installing ri documentation for rubyzip-0.9.1...
Installing RDoc documentation for rubyzip-0.9.1...
if I put config.gem ''rubyzip'' in environment.rb and then run rails it
fails to load rubyzip .. see below
george@geolaptop:~/Dropbox/git/paua$ ruby script/server
=>
2007 Aug 07
3
XSendFile problem
I am trying to user XSendFile in my application.
I have installed the plugin and in the environment.rb included this line
XSendFile::Plugin.replace_send_file!
but it is unable to read the files.
Earlier i had used send_file but it increases the mongrel size and slows
down the application.
Any suggestions about how to make it work?
--
Posted via http://www.ruby-forum.com/.
2012 Jul 18
0
Zipping files contained in a dir (rubyzip)
hey so I''m trying to zip all the files contained in a directory
(RubyZip). heres what I have:
def bundle
#create the ZIPfile with the title of (:id).zip
bundle_filename = "public/attachments/#{self.id}/#{self.id}.zip"
#open the ZIPfile in order to add items in
Zip::ZipFile.open(bundle_filename, Zip::ZipFile::CREATE) {
|zipfile|
2012 May 09
12
out of memory (java heap space) on zip creation (jruby)
I am using rubyzip and am trying to put a huge csv file with 1.4
million rows into the zip file.
Using jruby I get a out of heap error.
I believe the error happens in the block below:
Zip::ZipOutputStream.open(zip_path) do |zos|
zos.put_next_entry(File.basename(csv_path))
zos.print IO.read(csv_path)
end
--
You received this message because you are subscribed to the Google
2006 Aug 03
1
Unzipping a file
Hi !
I''m attempting to write a simple gallery in Rails. The thing is I''d like to
be able to upload a lot of pictures at once with a zip file.
I''ve so far managed to upload the zip file (containing pictures) to the
server. But how do I unzip the file to have access to the pictures ? I
haven''t been able to understand how to use Zlib to do this.
Any tips or
2010 Oct 27
0
RubyZip Exceptions
Hi,
I am wondering if there is a way of catching exceptions that are
thrown within rubyzip.rb.
For example:
in rubyzip line 583,
private
def set_time(binaryDosDate, binaryDosTime)
@time = Time.parse_binary_dos_format(binaryDosDate,
binaryDosTime)
rescue ArgumentError
puts "Invalid date/time in zip entry"
end
I need to be able to ''catch'' the
2006 Apr 01
5
Upload a zip using a form and extract if afterwards on srv?
Hi all
It like my visitors to be able to upload a zip file (or any other
possible compressed file archive) to my server. After upload, my web app
should extract the content to the server and delete the zip file.
Is this possible somehow? I''m very thankful for help.
Have a nice weekend,
Joshua
--
Posted via http://www.ruby-forum.com/.
2006 Aug 09
10
Is there QA on Rails gem releases?
The ActionMailer/ActionPack gem release is still screwed up.
Does someone test the gem releases to ensure that they work?
Just an idea.
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Mar 16
2
Bulk upload of pictures
Hi everyone,
I am working on a Rails application with photo upload
capablility and I need to add some bulk ulpoad tool.
I decided for using a zip file with JPEG pictures inside.
The zip would be uploaded, then extracted into some temp
directory with the help of rubyzip extension. Then all the
photo files should be copied into their final places in the
file system.
I am interested in your
2013 Jun 13
4
Rails 3 application capable of generating an offline version of itself for download as zip archive
I''m kinda newbie in RoR yet and I''m having a hard time trying to figure
out how should I implement this. I''m writing an application to store and
display information about insects and their distribution. Currently I
have almost all functionality implemented, except for a **very**
important one: The application must be capable of "crawling" itself and
generate a
2007 Nov 23
3
Mongrel+Apache 2.2 Proxy
Hi,
I''m running a rails (mongrel) based web service behind an apache proxy,
on windows 2003.
Sometimes I see a POST in the apache log that returned a 404 but nothing
about it in the rails log.
It doesn''t happen every time, 9 out of 10 times it works just fine.
The post (is actually a put) comes from a .NET application uploading a
small xml-file.
The log message in apache
2009 Mar 26
2
Deleting files after they are sent via send_file
Hello guys,
I am having the option to download certain folders on my app in zip
format. So every time a user requests one I''m doing a system call to
zip the folder (ex: system(''cd ''+path+'' && zip ...) and then the
send_file method to send it.
What happens is that I''m keeping track of disk space so I need to
delete the zip immediately. I was
2007 Jul 09
1
Dir.glob does not find ".project"
Hi,
I am trying to zip up my application folder using RubyZip.
It works fine except for one glitch: There is a RadRails project file
".project" which does not get included.
When I test Dir.glob("#{app_dir}/**/*) it does not return ".project"
Is there some problem with filenames starting with "."
(I am using Windows)
Thanks
George
2007 Jun 07
1
Plugin installation similar to rails
Hey all,
I''m considering including a plugin installation mechanism similar to
the one available with the rails script/plugin command in the next
major webgen version.
There would be a repository index located on the webgen homepage,
something like http://webgen.rubyforge.org/plugin-repository.yaml.
This file contains a list of repositories (http and ftp) which
provide webgen
2008 Oct 27
8
why can't johnny download?
I''m working on an app that includes the feature to allow user to
download a csv file of their data.
I''ve got it working on my local machine, but when I deploy it, the link
I''m making doesn''t work for doing the download. The file IS being
created in the location I''m intending, but the file download only works
on my local machine and not on the server.
2006 Mar 26
1
Newbie Question: How do I zip stuff
I''m using file column to upload files.
What I need is to be able to select a few of them, zip them together and
download them. Is this possible?
--
Posted via http://www.ruby-forum.com/.
2007 Jun 10
6
Securing private file area
I''m building an application for a company that has thousands of clients, and
for each client there will a set of documents that are private to that
client. Rails makes it easy, of course, to show the list of documents on a
per-client basis, using acts_as_authenticated and using current_user as part
of the find any time a document list is displayed.
The part for which I''m looking
2004 Oct 31
1
Problem in building a package in R 2.0.0
Dear all
I am trying to build a package in Windows.
I use the following command (which it used to work with previous
versions ) and I am getting the following error
#--------------------------------------------------------------------------------------------------------------
C:\PROGRA~1\R\rw2000\bin>Rcmd build --binary --use-zip
C:\PROGRA~1\R\rw2000\src\library\gamlss
* checking for
2004 Aug 27
2
Packing of data files in packages
Hola!
I am writing a package with some large data files, so it would be good to
use the feature of zipping data.
However, I use .R files to read in the data from one (sometimes more)
files, so Rcmd build --zip-data
gives a package which does'nt work. How should I do it, is it better ti
zip each data file individually and use the functions to read from
zipped files, or are there some other