Displaying 20 results from an estimated 100000 matches similar to: "When is init.rb run for gems?"
2009 Feb 09
9
fastercsv, freezing into vendor/gems
I''m using fastercsv such that in my rake file I''m doing this.
require ''fastercsv''
It works fine on my Mac.
I need to freeze this gem into the app though so my rake tasks work on
the production machine.
-----------
I spent about two hours though this weekend trying to get this Gem
"frozen" into the vendor/gems folder. I tried all sorts,
I ...
-
2009 Jun 01
0
Forcing use of gem in vendor/gems?
Sorta surprised this isn''t a FAQ, but...
Maybe this is not good practice, but I have a gem that is both installed
in the system and in vendor/gems. The vendor/gems copy has some local
mods. Seems like the only way I could find to forced that one to be
loaded for capistrano over the system one was to put:
$LOAD_PATH.insert 0,
2007 Nov 21
3
Cannot freeze gems
Running rake rails:freeze:gems I got the following error:
[root@WiNN-Mesh web_interface]# /usr/local/bin/rake rails:freeze:gems
--trace
(in /usr/sbin/web_interface)
** Invoke rails:freeze:gems (first_time)
** Execute rails:freeze:gems
Freezing to the gems for Rails 1.2.5
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
rake aborted!
uninitialized constant Gem::GemRunner
2007 Dec 21
3
error installing gems
Hi all.
While installing gems i am getting an error:
ERROR: Error installing gem xml-simple-1.0.11.gem[.gem]:
install directory
thname:e:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.11> not
absolute
Ruby Version = 1.8.4
Rails Version = 1.2.5
Gems Version = 0.9.4
can anybody provide any pointers???
Thanks
Arpit.
2007 Jan 24
0
the vendor dir, gems and openid
Dear all,
I am currently developing an application which uses OpenID as a login
system. On my development box everything works like a charm. But as
soon as I deploy the code to our production server things go wrong.
First the OpenID gem could not be located. This made sense as it is not
installed on the production server, so after some browsing it appeared
that I needed:
$ cd
2008 Oct 24
1
[mysql gem] Failed to lookup Init function
Hi, with mysql.rb removed from rails 2.2 I need to install the mysql
gem
I have mac osx 10.5.5
I have mysql installed in /usr/local/mysql, so, after a bunch of try,
I''ve installed
the gem with:
env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/
usr/local/mysql/bin/mysql_config
the gem seems installed in /usr/local/lib/ruby/gems/1.8/gems/
mysql-2.7/
but
2008 Jul 03
1
halp! howto config env.rb to look for rmagick gem?
hi,
my rails application is having trouble locating rmagick to use with acts
as attachment. my host put the gem in
/home/myaccount/ruby/gems/gems/rmagick. how do i tell my rails app
rmagick is located there?
i tried
require "/home/myaccount/ruby/gems/gems/rmagick", but that was crashing
my rails app.
and
ENV[''GEM_PATH''] =
2010 Aug 16
0
[RE][RE][RE] i am getting errors when run these commands...........
I am using ubuntu 10.04.1 .............
I want to run my coupa application
all required gems FOR COUPA-1.5 are
1. gem install rails –v 1.2.3 ------------------------------ But i have
installed gem install rails (2.3.8)
2. gem install ferret –v 0.11.4 ------------------------------ But i have
installed gem install sdsykes-ferret (0.11.6.19)
3. gem install -y -v 0.4.1 acts_as_ferret
4. gem
2007 Apr 23
3
Troubles with using gems in Rails
Hi!
I''m observing some problems using gem inside Rails. My understanding is
that after following sequence in irb:
$ irb
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''active_record''
=> true
irb(main):003:0> gem ''acts_as_taggable''
=> true
I should have access to acts_as_tagable mixins, like:
2010 May 25
1
rake rails:freeze:gems bug in rails 2.3.5?
Hi All,
Not sure if this is a bug or expected behavior.
I''ve pasted my log below, but basically the first time that I run
rake rails:freeze:gems, I get action* all unpacked into app/vendor/
rails.....the 2nd time I run it? I only get vendor/railties/*
Something I''ve done wrong?
Thanks,
Dale
---- log -----
~/cygwin/test$ rake rails:freeze:gems
(in C:/Documents and
2008 Jan 21
4
Rails app cannot connect to Ferret server
I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret
plugin from
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
I''ve followed the instructions here
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the
server, and put acts_as_ferret :remote => true on one of my models (Ad)
I can also start the ferret_server, but when
2006 Dec 04
0
Paypal and soap4r gems
WSDL conversion as proposed in the paypal plugin howto doesn''t work. Any
idea what goes wrong? See the output below.
rsp@hollerith:~/workspace/pptest/vendor/plugins/paypal$ wsdl2ruby.rb
--wsdl http://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl --type client
--force
F, [2006-12-04T16:30:43.136405 #11579] FATAL -- app: Detected an
exception. Stopping ... undefined method `new'' for
2008 May 30
0
silent rake test failure--doesn't happen on manual test run
Hi all,
This is kinda weird. I''m working on a plugin. On the same computer
(eg. same gems, ruby, etc.), installed into different apps, it fails
silently in one, but works in the other. The code is identical, since
it''s exported through an svn export.
on app a, it works:
---
$ svn up
At revision 1191.
$ rake
(in /home/.../vendor/plugins/acts_as_media_file_manager)
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2008 Jun 24
1
Rails 'rake gems:install' error in windows
I am developing with rails at three platform
mac, windows, linux.
until Rails 2.1, we can describe gem dependencies in environment.rb.
( this one ~
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies
)
so I write environment.rb like below for using will_paginate
...
config.gem ''capistrano''
config.gem
2007 Apr 12
4
Installing rspec in Windows
Hi all,
I''m trying to install rspec and I''m having a problem.
C:\Users\Nathan\Documents\rails\myproject> gem install rspec
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rspec-0.8.2
Installing ri documentation for rspec-0.8.2...
Installing RDoc documentation for rspec-0.8.2...
C:\Users\Nathan\Documents\rails\myproject> ruby
2008 Apr 15
4
Version Control (and gems)
1. Full version control of a web app would include the constellation
of gems actually used. I can do ''gem list'' and put that into a file
in version control but that could include unused gems. That is, it
could include gems use by other projects.
And putting the whole gem in version control seem like overkill since
the authors do that. But it might be safer.
Do we have a
2010 Aug 14
0
i am getting errors when run these commands...........
XXXXXXXXXX:~/.coupa-1.5#gem list
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
acts_as_ferret (0.4.1)
daemons (1.0.10)
gem_plugin (0.2.3)
gemsonrails (0.7.2)
minitest (1.6.0)
mongrel (1.2.0.pre2)
mysql (2.8.1)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
rdoc (2.5.8)
rtf (0.1.0)
rubygems-update (1.3.7)
rvm (0.1.45)
2008 Oct 10
3
Rails does not see installed gem in production.
Everything works like a charm locally, but running in production
(Dreamhost shared with Passenger if it matters), "These gems that this
application depends on are missing \n -rmagick"
Rmagick is installed on dreamhost, but I have also copied the gem into
the vendor directory, so it''s not even found within it''s local files.
I''m using config.gem
2008 Apr 01
0
activerecord-sqlserver-adapter Gems Not Found HELP!!
Hi there,
I''m running ROR 2.x on Win32
tried to run gem install activerecord-sqlserver-adapter --source
http://gems.rubyonrails.org and get this:
D:\>gem install activerecord-sqlserver-adapter -source http://gems.rubyonrails.org
Bulk updating Gem source index for: http://gems.rubyonrails.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find