Tag: gem

How to start Ruby on Rails in windows 8?

I am new one for Ruby on Rails. Please tell the requirements for Ruby on Rails. I am using windows 8 (64bit) operating system. And tell which SDK is suitable for RoR in windows8.

Backing up open source gems in case they go away

We are wondering how developers deal with the possibility that a gem author deletes the git repository and the gem goes away. Forking/Cloning every gem we use and updating them with every new version of our app starts to get ridiculous if we have hundreds of gem dependencies. How have other developers tackled this potential […]

error with git (-bash: git: command not found)

I am having trouble with git command. I’m getting -bash: git: command not found. It’s reported as installed when I run $ gem list, and i’ve put its path on my .profile as you can see below. I just don’t understand how come it doesn’t work. Thanks for the help # MacPorts Installer addition on […]

How to create interdependent gems with bundler, and use repositories as the source?

How is it possible to create interdependent gems, and still use Bundler? Right now, if the Gemfile for library-a reads like this: gem ‘library-b’ gem ‘library-c’ And the Gemfile for library-b reads like this: gem ‘library-a’ gem ‘library-c’ And the Gemfile for library-c reads: gem ‘library-a’, github: ‘library-root/library-a’, branch: ‘master’ gem ‘library-b’, github: ‘library-root/library-b’, branch: […]

Cannot load Rails app fetched from GitHub; rake, rails server not working

I cloned an app folder from a GitHub repository, and after bundle install the gems, I tried to use the rake db:reset and rake db:migrate commands, neither worked, and here is my error message: >[app_folder]rake db:reset rake aborted! Could not load database configuration. No such file – /Users/harry/Dropbox/apps/app_folder/config/database.yml /usr/local/rvm/gems/ruby-2.0.0-p353@railstutorial_rails_4_0/gems/railties-4.0.0/lib/rails/application/configuration.rb:110:in `database_configuration’ /usr/local/rvm/gems/ruby-2.0.0-p353@railstutorial_rails_4_0/gems/activerecord-4.0.0/lib/active_record/railtie.rb:174:in `block (2 levels) in […]

Gem is not checked out. Please run `bundle install` in Heroku

I have this configuration in my Gemfile: group :test do # … gem “shoulda-matchers”, :git => “git://github.com/watu/shoulda-matchers.git”, :branch => “do_not_load_minitest” end which works fine locally, but when I push to Heroku, when I try to run rake db:migrate, I get this error: git://github.com/watu/shoulda-matchers.git (at do_not_load_minitest) is not checked out. Please run bundle install Indeed I […]

Local override for {gem} at /path/to/local/git/repo is using branch develop but Gemfile specifies develop

I’m running bundler v1.3.0.pre.2 and trying to get bundler to bundle a local git repository holding a gem, into a rails app. Gemfile : gem ‘mygem’, :github => ‘myrepo/mygem’, :branch => ‘develop’ Config : bundle config local.mygem /path/to/local/git/repo Bundle install throws the error : Local override for mygem at /path/to/local/git/repo is using branch develop but […]

Perl and Ruby modules in the same repository?

I’ve started working on a new Perl module and I’ve decided that I want to make a Ruby version of it as well (once I finish the Perl version). Do people tend to make separate repositories for each language? Or put them in the same repository? I can easily see how the two sets of […]

Developing gems and using them in rails projects with bundler, is there a faster way?

I’m writing a gem for a Rails project and committing changes to its git repository. The Rails project refers to it in the Gemfile. gem “blah”, :git => “blah”, :branch => “development” The problem is one of patience. Every time I commit changes to the gem, I have to run “bundle update” (or at least […]

Using bundler, how do you unpack a gem installed via a git repository?

How can I unpack a gem specified in bundler by a :git => url? My Gemfile has gem ‘my_gem’, :git => ‘git@github.com:xxxxx/xxxxx.git’ $ bundle correctly reports the gem as available, and my code works. $ bundle which my_gem even tells me where my gem is stored. However: $ gem unpack my_gem ERROR: Gem ‘my_gem’ not […]

Git Baby is a git and github fan, let's start git clone.