Displaying 20 results from an estimated 5000 matches similar to: "Dir.glob does not find ".project""
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 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
Hi all,
Here''s what I''ve come up with so far for a pure Ruby Dir.glob for MS
Windows. It almost works. The problem right now is the [] notation,
which I''m not translating properly into a regex.
I haven''t started on the ''**'' notation yet either, but I figure that''s
more of a control flow issue. Feel free to disagree with me and/or
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
2007 Jul 24
2
Nested params and redirect_to
I have a simple client search screen that posts the following params:
Parameters: {"search"=>"Search", "action"=>"list",
"client_search"=>{"first_name"=>"jane", last_name"=>"smith"},
"controller"=>"client"}
This works fine. However I want to redirect to the same
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|
2010 Dec 12
1
In Test/Unit Dir.glob is Rails root but to require a file must assume "Rails_root/test/"
I am wondering why this is: In Test/Unit I am iterating a directory so that
I can require each of the files in the directory.
When I call Dir.glob, the root is the Rails_root, however when I iterate the
files I get an error if I use Rails root and must begin the included file''s
path from within the test directory.
This:
integration/helpers/file.rb
And not
2014 Mar 21
0
mount point directory permissions
Hi
I have the following problem: in a certain module I need to set permissions
on a directory after the mount was executed. If I do the following
file { '/app_dir':
ensure => 'directory'
owner => 'app_user'
group => 'app_group'
mode => '2775'
} mount { '/app_dir':
ensure => mounted,
atboot => true,
device
2010 Oct 25
2
Fail to load spec/rake/spectask
Hi!
I''m a newbie at Ruby. I''m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.
It fails to load giving me the following message:
rake aborted!
no such file to load -- spec/rake/spectask
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile''
I''m using version 1.8.7 of Ruby.
I have installed rake
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
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
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 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 Nov 23
3
CopyHandler and hidden files?
Hello,
I was wondering whether the CopyHandler plugin works with hidden files
like .htaccess? I have an .htaccess under src/ and another one under
src/code/, but they won''t be copied to output/. My config.yaml is:
File/CopyHandler:
paths: [''**/*.css'', ''**/*.js'', ''**/*.jpg'', ''**/*.png'',
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
2016 Feb 03
0
[PATCH 2/3] daemon: glob: add option for not returning dirs with trailing slash
Add a new optional bool "nodirectoryslash", to indicate that the caller
does not want trailing slashes in names of directories; this helps with
interoperability with other tools (such as rm).
Related to RHBZ#1293271.
---
daemon/glob.c | 8 ++++++--
generator/actions.ml | 17 ++++++++++++-----
gobject/Makefile.inc | 2 ++
po/POTFILES | 1 +
4 files changed, 21
2006 Mar 17
0
Installed Gems on godaddy.com
Hi, is there a core list of gems that one needs to install in a production
environment? Anyways, here''s a current list of installed gems on
godaddy.com:
Gems *actionmailer 1.0.1* [www] <http://www.rubyonrails.org/> - depends on
actionpack <http://www.situationman.com/_h_admin_/gems.html#actionpack>.
Service
layer for easy email delivery and testing.
*actionmailer 1.1.5*
2016 Feb 04
2
[PATCH v2 1/2] daemon: glob: add optarg to control trailing slash for dirs
Add a new optional bool "directoryslash" to indicate whether the caller
wants trailing slashes in names of directories, defaulting to true (the
current behaviour); this helps with interoperability with other tools
(such as rm).
Related to RHBZ#1293271.
---
daemon/glob.c | 11 +++++++++--
generator/actions.ml | 21 ++++++++++++++++-----
gobject/Makefile.inc | 2 ++
po/POTFILES
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 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 04
1
Globbing inconsistencies, dir() vs. unlink()
I was trying to remove a directory and couldn't figure out why it was
failing:
> dir("~/p4/r-packages/IREval/Users", recursive=T)
[1] "u0048513/p4/r-packages/IREval/DESCRIPTION"
[2] "u0048513/p4/r-packages/IREval/R/IREval.R"
[3] "u0048513/p4/r-packages/IREval/Read-and-delete-me"
[4] "u0048513/p4/r-packages/IREval/tests/general.R"
>