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
2 answers

Difference between Gemfile and Gemfile.lock in Ruby on Rails

I am a beginner in Ruby on Rails and I'm Using Rails4 What is the difference between Gemfile and Gemfile.lock in Rails?
Sooraj Chandu
  • 1,348
  • 16
  • 35
0
votes
1 answer

Using rails inside gem as a dependency

While browsing through the active-admin code, I found that Gemfile contains the rails entry. rails_version = detect_rails_version gem 'rails', rails_version Does that mean active-admin internally creates a rails server which is not the main rails…
maximus ツ
  • 7,949
  • 3
  • 25
  • 54
0
votes
1 answer

bundle exec rake db:create:all, errors caused by 2 different versions of rake gem, not sure where to go from here

I'm trying to bundle exec rake db:create:all I found that I have two versions of the rake gem: rake (10.1.0, 0.9.6) Author: Jim Weirich Homepage: http://rake.rubyforge.org License: MIT Installed at (10.1.0):…
dngoo
  • 499
  • 1
  • 5
  • 16
0
votes
1 answer

Gem is not available after bundle install

I have a Gemfile where I add a new gem gem 'activerecord-oracle_enhanced-adapter', git: "https://github.com/rsim/oracle-enhanced.git", branch: "rails4" When I run bundle install I get > bundle install Updating…
Bjoernsen
  • 2,016
  • 1
  • 33
  • 41
0
votes
1 answer

Load gem's/engine's Gemfile in host application?

Is there any proper way to include a gem's/an engine's Gemfile in the host application so the listed gems are installed as well? I know the gemspec file is supposed to do that but the Gemfile is changing quite frequently and it'd make my life easier…
Cojones
  • 2,930
  • 4
  • 29
  • 41
0
votes
1 answer

How to find and remove gems that are no longer used?

I working with medium Rails application which has about 60 gems dependencies. Many of these dependencies are unnecessary/useless. Is there any way to find out which gems are not used by application?
Rodrigo
  • 5,435
  • 5
  • 42
  • 78
0
votes
2 answers

Maintaining multiple standalone ruby scripts on same machine

I have one machine which runs multiple standalone ruby scripts. Every time I have to upgrade some gem for one of the scripts, I have to look for its impact on other scripts as well. Do you think it will be a good practice to create one gemfile each…
Arpit Bansal
  • 75
  • 1
  • 5
0
votes
1 answer

Issue with bundle install in CentOs machine

I am getting the following error while running bundle install in CentOs machine.I am getting this issuw with i18n gem. System.java: -2:in 'arraycopy': java.lang.ArrayIndexOutOfBoundsException from DefaultResolver.java:111:in 'makeTIme' …
Sravan Kumar
  • 673
  • 1
  • 7
  • 12
0
votes
2 answers

Why won't my Gemfile run?

I am following the Hartl Ruby on Rails tutorial, and am in section 1.2.4 of the tutorial When setting up a Rails app it says to run these commands: cd first_app_direcory sublime Gemfile bundle update The sublime Gemfile command edits the Gemfile…
camdixon
  • 852
  • 2
  • 18
  • 33
0
votes
1 answer

How to avoid commenting out ruby version in Gemfile while working locally?

It looks like heroku is now defaulting to using ruby 2.0.0 out of the box when you upload a rails app. One of my gems breaks due to some incompatibility issue that I don't really want to look into. The solution is of course to write ruby '1.9.2' or…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
0
votes
1 answer

pg gem not installing

hi i am trying to install the pg gem though whenever i bundle install i am getting the following issue Installing pg (0.15.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. …
Boss Nass
  • 3,384
  • 9
  • 48
  • 90
0
votes
1 answer

Discrepancy in gem version between "gem list" and Gemfile

When I type gem list I see some_gem (1.18) But when I check Gemfile.lock, I see /Gemfile.lock some_gem (1.23) Can any explain this discrepancy? Is the gem version in the Gemfile.lock the authoritative version?
User314159
  • 7,733
  • 9
  • 39
  • 63
0
votes
1 answer

Why is bundle installing the wrong version for bigdecimal using 1.2.0?

I'm using Bundle to install gems in d:/cucumbertests/cucumber/ successfully, which installs BigDecimal v 1.1.0. This failed in d:/cucumbertests/cucumber/itinfix which installed BigDecimal v 1.2.0. How do I identify the correct version of BigDecimal…
Eric Xu
  • 1
  • 1
0
votes
1 answer

How do I use a Ruby gem on my Rails site?

I'm working on a Rails web site (https://github.com/jhsu802701/dvi) called Doppler Value Investing that uses my very first Ruby gem (dvi_scraper, source code at https://github.com/jhsu802701/dvi_scraper). dvi_scraper downloads and processes…
jhsu802701
  • 573
  • 1
  • 7
  • 23
0
votes
1 answer

Gemfile syntax error after Bootstrap-sass install

After numerous "git push heroku master" rejections due to "no Cedar-support app detected" I found I should run bundle install. $bundle install Gemfile syntax error: <<<<<<< HEAD ^ /Users/Wes/Sites/code/omrails/Gemfile:21:…