Our team uses different databases for each other, and we are using bundler so our Gemfile contains the repo creator's db connector(mysql)
I am using pg and due to a bit laziness and fear of breaking something, I don't want to use mysql, so I just add a gem "pg" in our Gemfile.
Of course, since we're using git, it will always show as a ...
I'm trying to use the twitter_oauth gem : http://github.com/moomerman/twitter_oauth
In my model I have:
require 'twitter_oauth'
And within a function I have:
def example
client = TwitterOAuth::Client.new(
:consumer_key => 'xxxx',
:consumer_secret => 'xxxx',
:token => "xxxx",
:secret => "xxxx")
return client
end
...
I'm trying to install this gem: http://github.com/professionalnerd/simple-private-messages with bundle install.
And I'm getting the following error message:
Updating git://github.com/professionalnerd/simple-private-messages.git
Fetching source index for http://rubygems.org/
Could not find gem 'simple-private-messages (>= 0, runtime)'...
I did the:
gem install hpricot --platform=mswin32
It's correctly listed when I do gem list:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0)
actionpack (3.0.0)
activemodel (3.0.0)
activerecord (3.0.0)
activeresource (3.0.0)
activesupport (3.0.0)
arel (1.0.1)
builder (2.1.2)
bundler (1.0.0)
columnize (0.3.1)
erubis (2.6.6)
hp...
I am working on a rails gem that has dependency on the following
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
How can I add this in the gem spec as a dependency? Specifically I need to specifiy the path and branch in the dependency.
...
I'm having issues requiring gems in my rails application, I have tried multiple gems, and I made sure they were installed by issuing "gem list --local", they're there .. they just can't be found, I keep getting this error "Could not find RubyGem twitter4r (= 0.2.0)" for twitter4r gem and a similar one for other ones.
I feel that I shoul...
hi all,
is there a way to tell rubygems to always search for remote gems (instead of local)? I tried adding the following line to my ~/.gemrc
gem: --remote
but the problem is, that when i do gem list i get the following result
~$ gem list
*** REMOTE GEMS ***
- (1)
10io-jekyll (0.7.0)
1234567890_ (1.0)
2Performant (0.0.8)
360_servi...
Hi
I'm trying to install all my gems in ~/.gems. I wanted to install ferret as user but it doesn't work, because ferret need to install in /usr/bin.
My question is, how to I find out which options (like install to different bin folder) exists, when I install gems?
...
I downloaded an archive containing code for a Rails application ( from a book I'm reading ). I'm running Rails 3.0.1 but the application fails to start, because it's looking for 3.0.0beta3. Is there some way of starting it with my version of Rails?
...
I want to build an application using Rails 3.0.1 but do not want to switch permanently from Rails 2.3.8 and thus require to use Rails 3.0.1 only for that specific application.
Is using bundles an answer, if yes than how??
Thanks in advance.
...
I am trying to work with the Populator gem. I just installed it, but Ruby is unable to load it. I have only one Ruby installation on my machine and it's Ruby 1.8.7. What can I do?
This is the gem that doesn't get loaded.
Edit: Here is the trace out. I should have included this earlier.
Freenaut:bio-clinical newuser$ rake db:populate ...
Good day. I have a problem installing the gem "showoff". For some reason it can't install. The error message is as follows:
C:\Ruby>gem install showoff
Building native extensions. This could take a while...
ERROR: Error installing showoff:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
checking...
I just created a new gem (using bundler) and want to add Active Record support. So I added s.add_dependency "activerecord", "~> 3.0" to my gemspec. Then I use Bundler.setup and Bundler.require and thought that I have access to Active Record now, but I haven't. I have to explicitly use require "active_record". Any idea why Bunder.require ...
I am trying to use this forked version of the searchlogic gem. In my gemfile, I have
gem "searchlogic", :git => "http://github.com/railsdog/searchlogic.git"
when I do bundle install, I get this error:
Could not find gem 'searchlogic (>= 0, runtime)' in http://github.com/railsdog/searchlogic.git (at master).
Source does not contain an...
bogon:~ Zhulin$ ruby -v
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
bogon:~ Zhulin$ rails -v
Rails 1.2.6
bogon:~ Zhulin$ gems -v
-bash: gems: command not found
bogon:~ Zhulin$ sudo gem install heroku
Password:
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching http://gems.rubyforg...
I've tried everything I can find on every website out there, and I can not get this to build.
$ ruby --version
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Full error: http://gist.github.com/651945
Entire build: http://gist.github.com/651952
...
rake jobs:work works just fine
But RAILS_ENV=development ./script/delayed_job start (or any of its permutations) doesn't work on 1.9.2. I can run it just fine on 1.9.1.
Anyone have a solution for this?
...