OmniAuth bundle install error - ruby-on-rails

I'm trying to use omniauth with a new project. I'm using it on other projects on my computer with no issues. 'gem list' confirms:
rails 3.2.9
omniauth 1.1.4
Everything is fine until I bundle install, at which point I get this error message:
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Could not find gem 'ominiauth (>= 0) ruby' in the gems available on this machine.
Here is my Gemfile:
source 'https://rubygems.org'
gem 'rails'
gem 'ominiauth'

You misspelled omniauth as ominiauth.

Related

RailsApps mysql2 gem version error with Rails 5.2.1

I am facing a mysql2 gem version error while trying to create a new RailsApps example application using Rails Composer. For example, while creating a rails-devise-roles example with the following command:
$ rails new rails-devise-roles -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
The error is:
Error loading the 'mysql2' Active Record adapter. Missing a gem it depends on? can't activate mysql2 (< 0.6.0, >= 0.4.4), already activated mysql2-0.3.21. Make sure all dependencies are added to Gemfile. (Gem::LoadError)
The messages on the console indicate mysql2 version 0.3.21 is pulled in
run bundle install --without production from "."
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
...................
Using mysql2 0.3.21
The generated Gemfile has
gem 'mysql2', '~> 0.3.18'
I am using ruby 2.5.3 and Rails 5.2.1

ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32'

On Windows 7, I'm following the steps in this tutorial from elastic
When I use the command bundle install I get the following error
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Could not find gem 'logstash-devutils (>= 0) x64-mingw32' in any of the gem
sources listed in your Gemfile or available on this machine.
and the following is my Gemfile
source 'https://rubygems.org'
gemspec
Kindly note that when I used the command gem list I can find the gem jquery-rails listed there
I had the same issue, and I believe this will fix the problem. In a nutshell, logstash-devutils needs jruby, so trying to use regular ruby won't work.
Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources
You have to add gem 'logstash-devutils', '~> 0.0.10' to your gemfile

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 https://github.com/rsim/oracle-enhanced.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
...
Using activerecord (4.0.0)
Using activerecord-oracle_enhanced-adapter (1.4.2) from https://github.com/rsim/oracle-enhanced.git (at rails4)
Using bundler (1.3.5)
...
But when I call gem list, the gem is missing. If I try to load this gem in the irb, I get
irb
require 'rubygems'
=> false
gem 'activerecord'
=> true
gem 'activerecord-oracle_enhanced-adapter'
Gem::LoadError: Could not find 'activerecord-oracle_enhanced-adapter' (>= 0) among 49 total gem(s)
I do not understand this behavior. I have several gems added to my Gemfile this way and all of them are working.
My system for the test:
RVM
ruby 2.0.0p195
new gemset
new rails 4 project without any modification except this gem in the Gemfile
I tried it with two different users
Ubuntu 12.04
If I call gem install activerecord-oracle_enhanced-adapter, this gem is installed, but not from the 'rails4' branch and I would like to use the Gemfile
Try calling bundle exec irb so you will load irb in specific Gemset scope instead of system one.

Factory girl with Rails 4.0

Just installed via RVM Ruby 2.0.0 and Rails 4.0.0. Started a new project and when tried to add the gem 'factory-girl-rails', and run bundle install, I got this error:
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'factory-girl-rails (~> 4.2.1) ruby' in the gems available on this machine.
Any thoughts why can this be happening?
You need to change those dashes to underscores:
gem 'factory_girl_rails', '4.2.1'
factory_girl_rails does not seems to be available for rails higher then version 3.2.11
https://github.com/thoughtbot/factory_girl_rails#rails

redmine bundler error

I am setting up redmine with turnkey redmine appliance 12.0. I got following error after
executing command bundle install -v 1.0.0
root#redmine www/redmine# bundle update
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Updating git://github.com/rails/prototype_legacy_helper.git
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Fetching gem metadata from http://rubygems.org/..
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.3.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Resources