So I'm trying to get thin to run as a service with RVM. After a thin install I manually updated /etc/init.d/thin to use an su - user when running the config command so that thin was running as a local user, rather than root. So far so good.
Now, when I try to sudo service thin start it looks like it's trying to use the non-RVM version o...
When I do bundle install bundling edge rails I get this error:
No compatible versions could be found for required dependencies:
Conflict on: "bundler":
* bundler (0.9.26) activated by bundler (= 0.9.26, runtime)
* bundler (>= 1.0.0.beta.3, runtime) required by rails (>= 0, runtime)
All possible versions of origin require...
Hi all,
I'm switching to Ruby for a project due to its excellent meta-programming support.
As a Scala guy, I'd use buildr or Maven to manage my project. I could have it generate a skeleton directory structure, add my dependencies, then when I build, the dependencies are downloaded automagically.
How would I use this workflow in Ruby? T...
I have the following in my Gemfile:
clear_sources
bundle_path "vendor/bundler_gems"
source "http://gemcutter.org"
...
gem "vpim", "~> 0.658"
# a whole bunch of other gems
When I run gem bundle, I get everything installed except vpim. Running gem bundle --list | grep vpim returns nothing.
I'm using bundler08 because t...
I just changed my Rails 2.3.8 project to load gems using Bundler, rather than the default Rails 2.3 loading mechanism. I followed the official instructions and the site runs fine in development. I use RVM for gem management, and have a specific gemset loaded for the application.
My RSpec test suite is unable to run, however. I have trie...
I am trying to install rspec-rails on Ubuntu but I am encountering some problems.
Here are my exact steps:
1) Changed my Gemfile to:
source 'http://rubygems.org'
gem 'rails', '3.0.0.beta4'
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
group :development do
gem 'rspec-rails', '2.0.0.beta.17'
end
group :test do
gem 'rspec', ...
Hello, whenever I run the bundle install command, bundler creates a directory in my projects root with the name '?'. How can I prevent this from happening?
I'm assuming the ? directory is due to the fact that some path has not been found, but which? And how could I tackle this issue?
Best regards,
DBA
...
I'm certainly no Ruby developer but I have an application on my server using Ruby, Gems, and Bundler. I am trying to install another Ruby on under a different user account but on the same VPS. When I go to run
bundle install
I get the following error:
Could not locate Gemfile
I could remove the contents of the ./bundle director...
I'm writing a new gem I'm basing off of Yehuda's new gem template and I'm slightly confused. Having a Gemfile with dependencies, and also specifying a gemspec with dependencies seems redundant to me. Can someone explain why this is desirable and if it's truly necessary?
Note, this is the first gem I've ever written so I'm new to all o...
I'm trying to run a ruby script from cron, the script uses bundler to manage gem dependencies, since cron does not run in $PWD I get a 'Could not locate Gemfile' error form bundler every time, which makes sense since Gemfile is not in the currrent path when running from cron.
Is there a way to tell bundler to use a Gemfile not in the cu...
Hey,
What ever happend to Rails.configuration.gems in Rails 3? I guess it has to do with Bundler. But how can I find all gems now?
Thanks
...
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...
I have a Rails 3rc app on Ruby 1.9.2 that works fine, but Bundler keeps making a folder named "bandsintown" (bandsintown is a gem I use) in my project directory. From what I can tell, the folder has all my gems in it. I'm pretty sure that this never happened before. Is it normal behavior?
I think this might be interfering with running t...
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.
...
When running Rails 3 RC with Ruby 1.9.2.rc2 under RVM I keep getting a very large number of errors from the MySQL driver bundle that look like this:
/opt/local/rvm/gems/ruby-1.9.2-rc2/gems/mysql-2.8.1/lib/mysql_api.bundle: warning: already initialized constant MysqlRes
/opt/local/rvm/gems/ruby-1.9.2-rc2/gems/mysql-2.8.1/lib/mysql_api.bu...
I'm trying to use bundler with my Rails 2.3.5 app (built off of insoshi) due to some complicated reasons. Basically, I need to deploy to a server that has Rails 2.3.8 and Rails 2.3.5 apps, and they don't play nice with each other because 2.3.8 requires rack 1.1.0, while 2.3.5 requires rack 1.0.1 and blows up if rack 1.1.0 is even instal...
I am having trouble configuring Sinatra to use Bundler. I am confused as to where Gems should be being installed? I've read both this question and this documentation.
My Gemfile looks like:
source "http://rubygems.org"
gem "sinatra"
gem "amazon-ec2"
My config.ru looks like:
require "rubygems"
require "bundler"
Bundler.setup
require ...
This is kind of bizarre. Any time I do a bundle install, Bundler installs all my gems to the path #{RAILS_ROOT}/json_pure/ruby/1.8/gems. I copied the Gemfile directly from another application that works perfectly, and I don't think I've modified any other configuration. Any ideas what could be going on here?
Not sure if it helps, but my...
Please bear with me, I'm a gem authoring noob.
Thus far, I haven't even been able to find formal Bundler API documentation, so I'm having a hard time adhering to best practices and knowing what commands do what, and what api changes are happening aside from the small amount of docs on the Bundler website.
So my first gem was based ...
Hello,
I get this error
`establish_connection': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load -- active_record/connection_adapters/mysql2_adapter) (RuntimeError)
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activerecord-
Here is dump of whole error and my config ...