Questions tagged [gemfile]

Gemfile - A format for describing gem dependencies for Ruby programs. A Gemfile describes the gem dependencies required to execute associated Ruby code.

Gemfiles are a format for describing what gems are required by a Ruby program in order to successfully run.

See also

712 questions
0
votes
1 answer

gem command raises UnsatisfiableDependencyError in rails project folder, but works with sudo, or when called from another folder

I have a rails project in the myapp folder. # in my_app folder $ gem -v ... ruby/2.1.0/rubygems/resolver.rb:406:in `resolve_for_zero': Unable to resolve dependency: 'rails (= 4.1.5, = 4.1.5)' requires 'bundler (< 2.0, >= 1.3.0)'…
Anand
  • 3,690
  • 4
  • 33
  • 64
0
votes
2 answers

A gem to describe purpose of gems in gemfile?

I'm new to RoR and jumping into a big RoR project. The project uses a bunch of gems. In fact, the Gemfile.lock file, including dependencies, is 460 lines long. I was told the project went through several different developers, and that there may be a…
Brad Borch
  • 309
  • 1
  • 14
0
votes
1 answer

Ruby Gem installed through bundler and Gemfile not loading

Checkr is the gem I have built recently and code is hosted in github and gem is hosted in rubygems.org. If we install it using bundler, specifying gem 'checkr' in Gemfile, it is not loading. We get this error: uninitialized constant Checkr…
Vijendra
  • 338
  • 3
  • 11
0
votes
0 answers

Path to dependency of a gem in Gemfile

In a rails project, I have a Gemfile which specifies a gem dependency as follows: gem 'darshan', '1.1.4' To be compiled, this particular gem requires the location of the corresponding C library, which may not be in a "standard" location such as…
sunmat
  • 6,976
  • 3
  • 28
  • 44
0
votes
1 answer

Heroku gem versioning issue

I've been working on an application that runs on Heroku for awhile and occasionally I run into a funny issue where my background workers start failing. It's as if the background workers have an old version of the gem, which used to talk to a HTTP…
zatatatata
  • 4,761
  • 1
  • 20
  • 41
0
votes
1 answer

Unable to access app once pushed to heroku

I've pushed my app to heroku after some maneuvering around in the gemfile and config/application.rb file I have config.assets.initialize_on_precompile = false in my application.rb file above my Bundler.require. Here is the gemfile. source…
Zack
  • 661
  • 2
  • 11
  • 27
0
votes
1 answer

Rails "generate controller" creating .css not .css.scss

So I have a basic gem file where I have specified groups :development and :assets. When I do a rails generate controller welcome index it creates welcome.js and welcome.css. If I remove the group specifications and run again (even without running…
0
votes
1 answer

Could not find generator rspec:install. Rails4.0.5 ruby2.0.0

I cant install rspec. command: rails generate rspec:install ↓ result: Could not find generator rspec:install. ruby '2.0.0' #ruby-gemset=railstutorial_rails_4_0 gem 'rails', '4.0.5' group :development, :test do gem 'sqlite3', '1.3.8' gem…
user3674902
  • 51
  • 1
  • 2
  • 9
0
votes
0 answers

NOTE: FriendlyId 4.x breaks compatibility with 3.x

I create a new Refinery application and face some problems. I following to instuction on official web-site Refinery http://refinerycms.com/guides/heroku. One of this mistakes says: NOTE: FriendlyId 4.x breaks compatibility with 3.x. But I unload…
Cat
  • 283
  • 1
  • 3
  • 8
0
votes
2 answers

Syntax Error Trying To Run A Bundle Install GEMFILES

I'm following through a online course at https://onemonth.com/, I was asked to add the bootstrap-sass gem to my Gemfile and then run bundle install. Below is my Gemfile source 'https://rubygems.org' gem 'rails', '4.1.1' gem 'sqlite3' gem…
Cyzanfar
  • 6,997
  • 9
  • 43
  • 81
0
votes
0 answers

Issues with Actionpack gem

I'm trying to startup my sinatra application using shotgun but am having a bit of trouble. My app would run locally when I last checked 3 weeks ago and is currently still working on Heroku however I'm currently unable to run the program locally.…
user3720516
0
votes
1 answer

Why do I get “error: failed to push some refs” when pushing to Heroku?

I want to upload my new app to Heroku, but I'm facing some problems. At first, the problem was SQLite, so I deleted the sqlite line in my Gemfile. Another problem is that when I write in console the command git push heroku, I see this error: error:…
Cat
  • 283
  • 1
  • 3
  • 8
0
votes
2 answers

How do I include a commit in a ruby library that hasn't been added to the gem yet?

Specifically, this commit has been merged into mongomapper master to fix a bug that is causing my application to crash: https://github.com/mongomapper/mongomapper/pull/572 However, it hasn't been released in a new gem. Is it possible to include it…
Kareem
  • 844
  • 2
  • 8
  • 15
0
votes
1 answer

Gemfile syntax error on line 1: syntax error, unexpected tIDENTIFIER, expecting end-of-input

This is my gem file: source 'https://rubygems.org' gem 'rails', '3.2.14' #gem 'jquery-rails', '2.0.2' #gem 'bootstrap-sass', '2.1' #gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.0.1' gem 'will_paginate', '3.0.3' gem 'bootstrap-will_paginate',…
0
votes
1 answer

Gem dependency: Prefer nokogiri 1.5, but allow 1.6 if it is already installed

My gem depends on nokogiri ~> 1.5.0. I'd like to keep that dependency since this version has less compile-time dependencies and generally installs without problems. nokogiri 1.6.x seems to have more problems installing. So while I'd like to support…
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165