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

Heroku and gems only for production environment

I have an application that must be run in three different environments, called dev, beta and prod. I created three different applications on heroku, so all the environments can be run at the same time, and I deploy the code from the right git repo…
emas
  • 668
  • 8
  • 17
0
votes
2 answers

What's wrong with my Gemfile?

I tried to bundle install, but here is what I got: /home/mywebsite/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:187:in `initialize': Malformed version number string = 1.0.3 (ArgumentError) …
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

Error when installing spree_mail gem. spree_mail (= 0.40.0.4) ruby depends on

I'm trying to add spree_mail gem to my Spree project. & when I run "bundle install" I get this message: Bundler could not find compatible versions for gem "devise": In Gemfile: spree_mail (= 0.40.0.4) ruby depends on devise (= 1.2.rc)…
whitesiroi
  • 2,725
  • 4
  • 30
  • 64
0
votes
1 answer

Unable to generate model: "You have already activated multi_json 1.7.2, but your Gemfile requires multi_json 1.4.0"

Here's what I put in: $ rails generate scaffold Foobar content:string Here's what I get: /Users/nsbarr/.rvm/gems/ruby-1.9.3-p286@rails3tutorial2ndEd/gems/bundler-1.2.1/lib/bundler/runtime.rb:31:in `block in setup': You have already activated…
Nick Barr
  • 554
  • 1
  • 7
  • 20
0
votes
2 answers

How to fix omniauth error with yelp api?

I am attempting to use the Yelp API in my Rails app but am having trouble doing so. I'm following the documentation here (https://github.com/Yelp/yelp-api/blob/master/v2/ruby/example.rb) but keep getting an error. Below is the code I'm using in…
sharataka
  • 5,014
  • 20
  • 65
  • 125
0
votes
2 answers

How can I view all the gems for a specific gem group?

I'd like to see all the gems that are loaded for the test environment, with versions and dependencies. Is such a thing possible?
Geo
  • 93,257
  • 117
  • 344
  • 520
0
votes
2 answers

Keep getting the following error "Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter`"

Trying to run rails s and i get the error: "Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter" have tried bundle update and bundle install, seems to happen just after i push the app to heroku (did the same thing with…
Scotty G
  • 11
  • 1
  • 6
0
votes
1 answer

Could not find gem 'jquery-rails (~> 1.1.6) ruby' in the gems available on this machine

I am trying to implement Social-stream with devise. when I am executing this rails generate social_stream:install. I am getting error Bundler could not find compatible versions for gem "devise": In Gemfile: social_stream (>= 0) ruby depends…
0
votes
1 answer

Uninitialized Constant from Gemfile

Just playing around with Ruby and have this very basic example runner.rb: require "bundler/setup" include Mongo mongo_client = MongoClient.new("localhost", 27017) #mongo_client.database_names # lists all database…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
0
votes
0 answers

How to fix an error when changing Gemfile in Rails?

I'm new to rails and I keep running into an error when I edit the Gemfile to the below. It can also be found under Listing 2.1 at this tutorial: http://ruby.railstutorial.org/chapters/a-demo-app#sec-planning_the_application source…
sharataka
  • 5,014
  • 20
  • 65
  • 125
0
votes
1 answer

Using "Bundle Update" in Rails produced bazillion errors on test

I'm trudging through this deeply error-prone tutorial on Ruby on Rails located here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book. I've been working through a section about testing using rspec. Now, the instructions that this tutorial…
user1971506
  • 2,267
  • 4
  • 19
  • 19
0
votes
1 answer

Redmine Installation with activerecord-mysql-adapter

I'm working on a CentOS 6.3 Linux server with the Ruby version: 1.8.7 and the Gem version: 1.8.25 I'm trying to run the command: ruby script/rails server webrick -e production It spits out this error: => Booting WEBrick => Rails 3.2.8 application…
Angela
  • 1
  • 2
0
votes
1 answer

Understanding Gemfile (Rails): "require mongo" unnecessary if "gem 'mongo'" is already included?

This is our Gemfile. Is the line require mongo redundant since gem 'mongo' is already included? If not, what is the purpose of require mongo? We're on Rails 3. Thanks! source 'http://rubygems.org' require 'rubygems' require 'mongo' gem 'rails',…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
0
votes
1 answer

Rails seems unable to find some gems

Yesterday, everything worked fine. You can see my previous Gemfile here. Then, I added some groups like you can see here. Since then, I got this message: Exiting /Users/adrien/code/adserver/backoffice/config/initializers/airbrake.rb:1:in `
Adrien
  • 2,088
  • 1
  • 18
  • 35
0
votes
1 answer

how can I go back to an error with bundle install that no start the application?

to load my rails 3.2.8 app on Heroku, I put in Gemfile: group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end and I gave 'bundle install', forgetting to give '-- without production' and now when I give 'rails s', the…