I have a small application which I created using jeweler. The jeweler generates a lib/ directory, where I suppose to write my code.
This gem I'm creating depends on the httparty gem, so, in my Rakefile I put
Jeweler::Tasks.new do |gem|
gem.add_dependency('httparty', '>= 0.4.5')
...
end
in my implementation file I put
r...
Anyone heard of a good standard template library in Ruby? Or any wrapper exists?
Thanks!
...
There are a lot of interesting gems beyond the classic Rails gem pack: cucumber, formtastic, rspec, shoulda, coulda, webrat, selenium, will_paginate, authlogic, searchlogic, inherited resources ...
Let's make some effort to catalog the best Rails gems on SO.
I'm new to the Rails community and a little bit lost with so many options for ...
When I try to do db:create on sqlite database with this db config using Windows 7 x64
development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 5000
I get this, kinda funny error
unknown error
C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'
C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
C:/Ruby/lib/ruby/1.8...
I have a bunch of config.gem statements in my environment.rb file:
config.gem "fastercsv", :version => "~>1.5.0"
config.gem "parseexcel", :version => "~>0.5.2"
config.gem "geokit", :version => "~>1.4.1"
config.gem "facebooker", :version => "~>1.0.50"
...
If I do "rake gems:install" then I get this issue:
rake aborted!
no such f...
I have a engine style Rails plugin from which I can create a gem using Jeweler. But when I require it in my Rails environment (or erb) the models within the plugin are not loaded. I have followed a number of tutorials and read just about everything on the subject.
# environment.rb
config.gem 'myengine'
# in irb
require 'myengine'
I ...
Hi,
I'm trying to use RubyZip to package up some files. At the moment I have a method which happily zips on particular directory and sub-directories.
def zip_directory(zipfile)
Dir["#{@directory_to_zip}/**/**"].reject{|f| reject_file(f)}.each do |file_path|
file_name = file_path.sub(@directory_to_zip+'/','');
zipfile.add(file_nam...
I'm trying to setup Spree within my application (I'm open to using the Gem or running it in vendor mode).
I've reviewed the documentation and the wiki and I'm still a bit confused as to how it might work within my existing application. I have no problem using a separate database for Spree and customizing my application to pass data bet...
How do you use gems from a MacRuby .5 application on Snow Leopard? Do I need to specify the gem path? If so, how do I do this?
Best scenario is to package the gems inside the application so the user would not have to install them when the app is distributed.
...
I really need help with Rubygems (that's the package manager for ruby). Since I'm behind a proxy, I've given up all hope of it working automatically, so I had to download a lot of packages manually and install them for rails to install. Now, I'm getting an error message:
Rails requires RubyGems >= 1.3.2 (...)
Once again, I manually dow...
I have what looks like multiple versions of rubygems installed on my machine, when i gem list i see all my gems, but when i go to run scripts, i get error messages like
Missing these required gems:
SystemTimer
Is there any methodology I can follow to remove all versions of rubygems but one? Ideally i would like to be able to access ...
I'm attempting to get gltail set up on my local system to monitor logs remotely.
I've got all the dependencies installed, but when I go to run gltail ...
./gl_tail configfile ../config.yaml
I get this output:
Missing gem net-ssh.
Ubuntu:
sudo gem install -y net-ssh -r
.. which I've done a number of times. Here is the output:
de...
I am trying to decode some HTML entities ('<' => '<').
I have found an old gem (http://github.com/tma/html_helpers/) but it seems to have been abandoned twice.
Any recommendations? (will need to use it in a model)
...
Hi everyone
If you don't install gems with sudo on a mac, by default they will be placed in a directory like
.gem/ruby/1.8/gems/
If you DO install by with sudo, my understanding is they are normally placed in the system directories, like so:
/usr/local/lib/ruby/gems/1.8/gems/
Is there a good reason you should install gems with ...
Hi,
I'm looking to integrate my rails application with the payment provider Adyen, I've installed the Adyen Gem and put the code in to make a basic form, but I'm getting an error:
Adyen Gem: http://github.com/wvanbergen/adyen
Invalid date notation: nil!
/Users/chris/.gem/ruby/1.8/gems/adyen-0.1.5/lib/adyen/formatter.rb:10:in
...
I have an app that I run in three different environments, so sometimes when I pull it from github, I'll get the default rails "Oops, there was a problem with the server" page instead of the stack trace page. This seems to only happen when there's a problem related to a gem.
I remember maybe 6 months or a year ago when developing, if I h...
Is it possible to add a gem dependency only if the person is using a certain version of ruby?
Background: I'm working on a fork of a project that uses Test::Unit::Autorunner and the like. They are part of the standard library in ruby 1.8, but aren't part of the standard library in 1.9.1, and is instead in the "test-unit" gem. I want to ...
I'm investigating a rails app - the prod server has two version of a specific gem installed, how can I tell which version the prod app is using?
...
Can anyone help with an odd Ruby Gem problem I'm having - note I've installed many gems in the past and never seen this.
I've downloaded the net-ssh and net-sftp gems using the following commands:
sudo gem install net-ssh
sudo gem install net-sftp
both installed successfully. However when I reference the files within my code I get th...
I'm trying to understand what does and doesn't work in Ruby gems (primarily from the perspective of creating one for myself to reuse functionality from one project to the next).
When you create a Ruby gem, are you limited to including only Ruby functionality or could you create a gem that consisted of Rails templates, CSS files and Java...