Displaying 20 results from an estimated 700 matches similar to: "Gem problem"
2004 Nov 04
4
Attempt to build a gemspec
Hi all,
I''m trying to build a gemspec for win32-ipc, using a precompiled binary.
Here''s my gemspec file:
#win32-ipc.gemspec
require "rubygems"
spec = Gem::Specification.new do |s|
s.name = "win32-ipc"
s.version = "0.3.1"
s.platform = Gem::Platform::WIN32
s.summary = "A base class for Win32 synchronization
objects."
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad,
I installed and tried out rubygems for one of the win32-utils
projects named win32-mmap. This is on Win XP (Home).
Here is how I did it but got some errors (see at the end).
I must be doing something wrong.
Please help ...
-- Shashank
#------------------------------------------------------------
require ''rubygems''
spec = Gem::Specification.new do |s|
2006 Nov 13
0
[737] trunk/wxruby2/rake/rakepackage.rb: Ensure that lib/wx/classes/ .rb files are included in gem and tarball
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2005 Jun 26
2
wxruby gems
Hi
Following on from some talk last year of creating gems for wxruby, I''ve
attached a first try at them (for 0.6.0, not wxruby-swig). I mainly made
them because I want to ease installation of Weft QDA by adding wxruby
(and sqlite) as gem dependencies, but hopefully they will be generally
useful.
A couple of queries:
1) Who should be listed as author?
2) It doesn''t include
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when
I try and install mongrel with gem it blows up when the fastthread
dependency tries to do a native compilation.
I couldn''t find a copy of the gemspec in the svn checkout but looking
at the one installed when gem installing mongrel didn''t show any
platform differentiation. There is platform
2009 Feb 04
2
delete_if does not work on associations
I tried to user delete_if on an association:
class Group < ActiveRecord::Base
has_many :memberships, :dependent => :destroy
has_many :users, :through => :memberships
...
end
This is the controller method, trying to use delete_if. Although some
elements are removed (s2 < s1), the save method does not update the
association.
def intersect_or_remove_group
other_group =
2006 Jan 12
2
Can''t install rubygems on Debian 3.1
Hi all,
When I try to install rubygems I get this:
install security.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install gem_openssl.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
<--- lib/rubygems
<--- lib
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'': no such file to load -- zlib (LoadError)
from
2010 Jan 27
1
Patch and introduction
Hi,
I''m currently trying to get icalendar packaged and into Fedora and EPEL,
During this process I''ve noticed that you''re currently using
Gem::manage_gems
in the make Rakefile, this method was depecated in rubygems 1.3.0 them
removed in rubygems 1.3.3.
The attached patch updates the Rakefile replacing the method with the
two require calls required.
Mark
--
Mark
2006 Jan 07
3
user engine question
I''ve created an array of hashes in UserController#initialize to describe
a menu:
@menu_array = [
{:menu => ''home'', :controller => ''home'', :action => ''send_home''},
{:menu => ''user list'', :action => ''list''},
{:menu => ''login'', :controller =>
2006 Sep 25
2
@article.article_groups.delete_if... Dosn't work!
If I try:
@article.article_groups.delete_if {|x|
x.group_id == x.group_id
}
It does nothing.
If I try:
articletmp.article_groups.each{ |x|
@article.article_groups.delete(y)
}
It deletes some of the groups.
@article.article_groups.clear
works.
Why dosn''t the to first examples work as expected??
Do I have to put groups I don''t want to
2006 Nov 04
0
@article.article_groups.delete_if... Dosn''t work!
If I try:
@article.article_groups.delete_if {|x|
x.group_id == x.group_id
}
It does nothing.
If I try:
articletmp.article_groups.each{ |x|
@article.article_groups.delete(y)
}
It deletes some of the groups.
@article.article_groups.clear
works.
Why dosn''t the to first examples work as expected??
Do I have to put groups I don''t want to
2006 Mar 31
6
Install rubygems error
I made the mistake of trying to upgrade to 1.8.4 from 1.8.2 and had intended
to upgrade to rails 1.1. I have now completely borked my ruby gems
installation. After installing ruby I get the following error when trying to
execute gem:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'': no such file to load -- zlib (LoadError)
from
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the
session as session[:course_list]. This is the cart for a registration
controller.
If a student chooses to delete the course from the list I get the :id
as params[:id].
However if I do
session[:course_list].delete_if {|x| x.id ==params[:id]}
does not work.
session[:course_list].delete_at(idx)
works. Ocourse to do this I have
2011 Jul 04
2
ruby and rails wont work even they're already installed
mongskie@mongskie-os:~$ gem
/usr/bin/gem:4: undefined method `manage_gems'' for Gem:Module
(NoMethodError)
mongskie@mongskie-os:~$ rails
/usr/lib/ruby/1.8/active_support/dependencies.rb:55: uninitialized
constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require''
from
2005 Sep 28
1
[ win32utils-Bugs-2532]Etc::Admin.configure_group problem
> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
> Park Heesob
> Sent: Wednesday, September 28, 2005 3:05 AM
> To: Development and ideas for win32utils projects
> Subject: Re: [Win32utils-devel] [
> win32utils-Bugs-2532]Etc::Admin.configure_group problem
>
>
> Hi,
2007 Jan 06
3
speeding up pagination
I need help to optimize a query (sort of ...)
if params[:debit] == "on"
@schools = School.find(:all,
:conditions => ["name like ?", "%#{params[:search]}%"],
:order => ''name'')
@schools.delete_if { |s| s.debit <= 0 }
@school_pages = Paginator.new self, @schools.length, 20
The problem here is that
2011 Feb 28
1
(2.3.5) removing validations
Today I tried to remove (actually overwrite) a validation from a model,
from within a plugin.
This was the original validation:
validates_length_of :login, :maximum => 30
This was the only code I could come up with to replace it:
def self.included(base)
base.class_eval do
@validate_callbacks.delete_if { |callback|
begin
# Sorry, only way to remove
2006 Aug 08
12
delete_if doesn''t work for has_and_belongs_to_many
I''m using Rails-1.1.4 with Ruby-1.8.4
So let''s say I have 2 model classes:
class Item
has_and_belongs_to_many :things
end
class Thing
has_and_belongs_to_many :items
end
i = Item.new
i.things << Thing.new( :value => "Something").save
i.things << Thing.new( :value => "Something Else" ).save
i.save
Fine, now I have two records in the
2005 Dec 16
7
offline copy of the api site ?
Hi,
Is there a archive off http://api.rubyonrails.org/ so that I can view it
without net access?
Kind Regards, Herbert
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails