I am a Ruby programmer on Windows who trys to switch from Win cmd to Cygwin, but cannot achieve to execute batch files of Ruby gems.
I already stuffed any bin directory into the Windows PATH env. variable, including the Ruby bin where the executables are stored. Gems, however, are invoked by ruby.exe itself, which leads to the following...
Hi,
I'm looking for examples of functional code in ruby. Maybe you know some gems, where I can find such a code?
...
So there's this great plugin I've gotten used to using in my Rails 2 projects called Bootstrapper. It essentially duplicates the functionality of the seeds.rb file, but I like it because it lets you break up your bootstrap process into concise chunks.
Anyway, I've gone so far as to fork the project and attempt to turn it into a Rails 3 ...
Hello everyone. This is my first question asked here so I apologize in advance if I break any rules.
I'm trying to get a project going on my system, I have imported the source code via GITHub, and are running it locally with WEBrick. When I do, the following error is printed:
=> Booting WEBrick
=> Rails 2.3.8 application starting on 0....
Are there any particular rails user authentication gems or plugins that are well-suited for multiple user types?
...
Hi folks,
I'm trying to create my first rails gem with jeweller - it's a very simple demo gem with just a "Tester" model and a "Frog" scaffold.
The gem packages up just fine, gem contents "testgem" confirms the desired files are packaged into the gem, and when I "bundle install" it, everything seems to go OK & the gem is in the list of...
I am trying to use the instructions here to install a pre-released version of a gem with bundler.
The "bundle install" output lists the gem as getting installed, but "gem list" fails to find it.
My Gemfile:
source :gemcutter
gem 'sinatra', '1.1.0', :git => 'http://github.com/sinatra/sinatra.git'
gem 'RedCloth', '4.2.3'
Here is a g...
I installed the fastercsv gem like this:
sudo gem install fastercsv
Then in my controller I put this:
require 'fastercsv'
When I try to use it though, I get this error:
MissingSourceFile in Notes#export_data
no such file to load -- fastercsv
What have I done wrong? Thanks for reading.
EDIT:
I'm using Rails 2.3.5
rake gems
(in ...
I am trying to use this gem for using the paypal adaptive payments and it calls for the
development:
environment: "sandbox"
username: "sandbox_username"
password: "sandbox_password"
signature: "sandbox_signature"
application_id: "sandbox_app_id"
test:
environment: "sandbox"
username: "sandbox_username"
password: "sandbox_password"
sig...
ok so i installed a gem and then ran script/server and for some reason its still telling me the gem is not installed
sudo gem install paypal_adaptive
Successfully installed paypal_adaptive-0.1.0
1 gem installed
matt@macBookPro ~/Sites/somesite[master (Time to Commit)]$ script/server
=> Booting WEBrick
=> Rails 2.3.8 application startin...
I have been digging through some ruby gem code and i came across these and not sure what they means
def success?
!!@success
end
def failure?
!@success
end
cattr_accessor :test_response
and lastly this chunk of code
class_inheritable_accessor :attributes
self.attributes = []
def self.attribute(name, options={})
top_level_name...
Hi,
I performed a gem update using
sudo gem install rubygems-update
and
sudo update_rubygems
But now all my previously installed gems have disappeared. I ran
gem list
and no locally installed gems showed up.
Any ideas what went wrong and how to fix it?
Thanks.
...
Hi,
I am having a bit of trouble with the 'workflow' gem, namely, the transitions aren't working.
What I am trying to do is very basic, I have a 'read/unread' state for messages between users, the transition is triggered when the user goes to a 'show' page for that specific message. However, I can't seem to get the transition to wor...
here is my code
require 'rubygems'
require 'tweetstream'
TweetStream::Client.new('usr','pswd').sample do |status|
puts "#{status.text}"
end
when i run this code i get:
./tweetstream.rb:6: uninitialized constant TweetStream (NameError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby...
I have a rubygem that defines a custom SemanticFormBuilder class which adds a new Formtastic input type. The code works as expected, but I cannot figure out how to add tests for it. I was thinking I could do something like load up Formtastic, call semantic_form_for, and then ad ann input that uses my custom :as type, but I have no idea w...
In the documentation for Rails::Plugin (for Rails 3), I'm reading the following:
"... you actually cannot declare a Rails::Engine inside your Plugin, otherwise it would cause the same files to be loaded twice. This means that if you want to ship an Engine as gem it cannot be used as plugin and vice-versa."
Can anyone be more specific a...
We are using the devise gem for authentication in a Rails 3 application. We have multiple roles and from the devise stand-point, the roles will differ in terms of confirmation, activation and remember me functionality.
The devise documentation has examples of two scopes being defined. One is the User itself and the other one is the admi...
Lots of confusion and difficulty related to gem installation. My gem environment:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- EXECUTABLE DIRECTORY: /opt/local/bin...
i install bluepill on ubuntu:
Linux auto 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux
Actual Result:
root@auto:/# gem install bluepill
Successfully installed bluepill-0.0.43
1 gem installed
Installing ri documentation for bluepill-0.0.43...
Installing RDoc documentation for bluepill-0.0.43...
root@aut...
Bundler will automatically install any dependencies for the specified gems, it doesn't however output which dependencies map to which gems in the standard output. That information is useful when one of the dependencies fails the installation.
Is there a way to set bundler to be more verbose and inform about the dependencies while instal...