Hi,
I'm trying to get Bundler setup so I can deploy my Sintra a server with all the correct gems.
I've created my Gemfile
source :gemcutter
gem 'sinatra', '1.0'
gem "nokogiri", "1.4.2"
gem "rack", "1.1.0"
gem "dm-core", "1.0.0"
gem "dm-migrations", "1.0.0"
gem "dm-sqlite-adapter", "1.0.0"
gem "pony", "1.0"
Next I created a Confi...
Hello,
I am playing around with ruby and making my first desktop app. I have used 2 gems for my app and to make my "application" portable, I need to freeze those 2 gems and make my project refer to those gems from its project folder.
I know many ways to do it on Rails, but how to do it manually in Ruby?
Note: I am using jeweler using ...
Some plugin works well in mysql gem but doesn't works so well in ruby-mysql
in rubygems, mysql gem has 453,540 total downloads, and ruby-mysql only has 12,137
total downloads.
I wanna know what's the difference between them.
Thanks.
...
which is the best gem for creating a login system?
...
I'm building a Rails 3 application on CouchDB (using SimplyStored gem) and I'd like to use some existing gem/plugin for authentication, instead of building it from scratch.
Problem is, I can't find anything that works smoothly for CouchDB, everything assumes that you're running on ActiveRecord. Do you have any tips?
...
Hello there,
By any chance, is there any place it's possible to host private ruby gems?
So I could allow it to be pulled only for specific places by using public key or something like that?
Thanks
...
Does anyone know of any Ruby libraries/gems that allow you to traverse a DOM quickly?
I need something which is fast, and doesn't have a lot of dependencies. I've been trying to use Nokogiri, but I'm concerned with the number of 'bug segmentation faults' I've been getting.
...
When I attempt to load the Rails console (or load my website running Apache/Passenger), I get an error that it can't load a gem that I've already installed:
> script/console
Loading development environment (Rails 2.3.8)
no such file to load -- authlogic
/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/...
Rails 3 provides a deep_merge method on a Hash. What should I do to use the deep_merge method defined in a gem I installed instead? Wherever I require the gem, the deep_merge method from Rails is used.
(The deep_merge gem installation page: http://trac.misuse.org/science/wiki/DeepMerge)
The deep_merge gem module structure:
module De...
Hello,
I'm trying to create a gem and I would like to have a feature inside it that takes the client ip address when using it. Basically it's just like the rails ActionController request.remote_ip, but within the gem I don't want to rely/depend on rails.
Is there any way to have something like this purely using Ruby?
I've found this, ...
how to include header and footer information on each page of a pdf in rails(prawn).How to identify the top of each page in a pdf.I need a header function from which page count,created on ...need to display; and i can call the same function for different reports.
i am using prawn (0.8.4).
Can anybody give some solution..
...
I'm trying to use domainatrix with nokogiri and am coming up with a holdup. Being relatively new to ruby, I've tried every syntax variation on the Domainatrix.parse function I can to get the a href's to parse properly. They do print during the "puts" command but when I uncomment the domainatrix code problems start:
require 'rubygems'
re...
I'm trying to edit one of the gem's config files and I can't find it.. not sure how i did this in the past.
...
As simple as it sounds, it seems like an extraordinarily complicated task.
...
I have features I would like to be portable between my own Rails applications.
I wonder if I should create a gem or a plugin for each feature I want to be portable (sharable).
They are just for Rails (for now) because they include css, html, js and image files.
But I have been wondering, the things provided with plugins could be provi...
In a windows environment I am getting the following error when trying to deploy to Heroku
C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/base.rb:32:in ': No such file or directory - git
remote (Errno::ENOENT)
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ba
se.rb:32:in shell'
...
I want to freeze a specific gem into my Rails application.
In rails 2 there was this command:
rake gems:unpack
I can't find that command in Rails 3.
...
Suppose I installed some ruby gems using gem install gemname. Where should I install them, and when what directory should I run gem install rubygems-update-1.3.1.gem from?
...
What's the meaning of ~> version requirement in gem specs?
hanna-0.1.12 depends on [haml (~> 2.2.8)]
...
Hi,
I have a Continuous Integration / Continuous Deployment scenario where I want my build script to push a ruby gem directly from a public Build Server (teamcity.codebetter.com) to RubyGems.org.
The problem is: How can I specify my credentials?
On my local machine I have them under ~/.gem/credentials and everything works fine but how...