search for: rubyzip

Displaying 20 results from an estimated 35 matches for "rubyzip".

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 .. s...
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 because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk...
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'&...
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/.
2007 May 29
2
Stream rubyzip
I have a Rails app that needs to create a Zip archive of a folder and send it to the client''s browser for download. I have no need for the Zip file on disk, so ideally, the Zip is created and streamed "on the fly". Is this possible? If not, I''ll create a temp file and send that via xsendfile, but I''d rather avoid the extra (unnecessary) step if I could. --
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)...
2006 Aug 09
0
Rails security update
I see there is a mandatory security update out for rails today (http://tinyurl.com/lvqjs), but I cannot get it to install on XP. Anyone having a similar experience? C:\ruby\bin>gem install rubyzip Attempting local installation of ''rubyzip'' Local gem file not found: rubyzip*.gem Attempting remote installation of ''rubyzip'' Successfully installed rubyzip-0.9.1 C:\ruby\bin>gem install rails --include-dependencies Attempting local installation of ''...
2006 Mar 17
0
Installed Gems on godaddy.com
...structure. *instiki 0.10.2* [www] <http://www.instiki.org/> - depends on madeleine<http://www.situationman.com/_h_admin_/gems.html#madeleine>, rails <http://www.situationman.com/_h_admin_/gems.html#rails>, RedCloth<http://www.situationman.com/_h_admin_/gems.html#RedCloth>, rubyzip <http://www.situationman.com/_h_admin_/gems.html#rubyzip>. Easy to install WikiClone running on WEBrick and Madeleine Executable is instiki. *login_generator 1.1.0* [www] <http://www.rubyonrails.org/show/Generators>- depends on rails <http://www.situationman.com/_h_admin_/gems.html...
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
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)...
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/.
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) Tha...
2010 Oct 25
2
Fail to load spec/rake/spectask
...em install rake gem install rspec Here is the list of installed gems: builder (2.1.2) childprocess (0.1.3) ci_reporter (1.6.3) diff-lcs (1.1.2) ffi (0.6.3 x86-mingw32) json_pure (1.4.6) rake (0.8.7) rspec (2.0.1) rspec-core (2.0.1) rspec-expectations (2.0.1) rspec-mocks (2.0.1) rspec-rails (2.0.1) rubyzip (0.9.4) selenium-webdriver (0.0.29) What am I doing wrong? Why doesn''t spec/rake/spectask load? Best regards /Fredrik -- Posted via http://www.ruby-forum.com/.
2007 Jun 07
1
Plugin installation similar to rails
...webgen.rubyforge.org/plugin-repository.yaml. This file contains a list of repositories (http and ftp) which provide webgen plugin bundles. Each such repository then needs a file describing the available plugin bundles. And a plugin bundle is shipped as .tar.gz or .zip file (using minitar or rubyzip - what''s better?). An example: The file http://webgen.rubyforge.org/webgen-plugin-repositories.yaml contains: <snip> http://webgen.rubyforge.org: Main webgen plugin repository http://other.website.org: An other webgen plugin repository </snip> Then their exists a file h...
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 opinions/experiences/code. Has someone created something like this before? I''d appreciate any answer. Best regards, Marcin Bajer
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like rails server Could not find pg-0.12.2 in any of the sources Run `bundle install` to install missing gems. I dont know what to do Thanks for all the help -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
...ions (~> 2.8.0) rspec-mocks (~> 2.8.0) rspec-core (2.8.0) rspec-expectations (2.8.0) diff-lcs (~> 1.1.2) rspec-mocks (2.8.0) rspec-rails (2.8.1) actionpack (>= 3.0) activesupport (>= 3.0) railties (>= 3.0) rspec (~> 2.8.0) rubyzip (0.9.5) sass (3.1.12) sass-rails (3.2.3) railties (~> 3.2.0.beta) sass (>= 3.1.10) tilt (~> 1.3) selenium-webdriver (2.16.0) childprocess (>= 0.2.5) ffi (~> 1.0.9) multi_json (~> 1.0.4) rubyzip spec_support (0.0.2) rs...
2006 Jun 12
0
Curious about new (ActiveRecord::Base)
...ata. However, the documentation states "...you can?t have attributes that aren?t part of the table columns." Why is this possible (this isn''t really a problem, but I just wanted to know)? The above method works for individual files. My problem is this - I would like to have rubyzip exctract files to create new Logfiles. My current method is to iterate through the ZipFile using foreach, but this yields ZipEntries. Is there a way to extract this as a Tempfile until its final destination is determined using my above-mentioned handlers? Or is there a better way to go about...
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/.
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
...or ... here is the log message : rubyrails:~ (ruby-1.9.2@rails3)$ gem install capybara Fetching: nokogiri-1.4.4.gem (100%) Building native extensions. This could take a while... Fetching: culerity-0.2.15.gem (100%) Fetching: celerity-0.8.9.gem (100%) Fetching: json_pure-1.5.1.gem (100%) Fetching: rubyzip-0.9.4.gem (100%) Fetching: ffi-1.0.7.gem (100%) Building native extensions. This could take a while... ERROR: Error installing capybara: ERROR: Failed to build gem native extension. rake RUBYARCHDIR=/home/kadoudal/.rvm/gems/ruby-1.9.2- p180@rails3/gems/ffi-1.0.7/lib RUBYLIBDIR=/home/kad...