$:.push File.expand_path("../lib", __FILE__)

# Maintain your gem's version:
require "registrar/version"

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
  s.name        = "registrar"
  s.version     = Registrar::VERSION
  s.authors     = ["Procore Engineering"]
  s.email       = ["opensource@procore.com"]
  s.summary     = "A central user registration engine for Ruby on Rails applications."
  s.description = "Quickly setup authentication for internal tools using your Gmail domain."
  s.homepage    = "https://github.com/procore/registrar"
  s.license     = "MIT"

  s.files = Dir["{app,config,db,lib}/**/*", "Rakefile", "README.rdoc"]
  s.test_files = Dir["spec/**/*"]

  s.add_dependency "rails", ">= 4.2.0"
  s.add_dependency "omniauth"
  s.add_dependency "omniauth-google-oauth2"

  s.add_development_dependency "bundler"
  s.add_development_dependency "pg"
  s.add_development_dependency "rake"
  s.add_development_dependency "rspec-rails"
end

$:.push File.expand_path("../lib", __FILE__)

# Maintain your gem's version:
require "registrar/version"

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
  s.name        = "registrar"
  s.version     = Registrar::VERSION
  s.authors     = ["Procore Engineering"]
  s.email       = ["opensource@procore.com"]
  s.summary     = "A central user registration engine for Ruby on Rails applications."
  s.description = "Quickly setup authentication for internal tools using your Gmail domain."
  s.homepage    = "https://github.com/procore/registrar"
  s.license     = "MIT"

  s.files = Dir["{app,config,db,lib}/**/*", "Rakefile", "README.rdoc"]
  s.test_files = Dir["spec/**/*"]

  s.add_dependency "rails", ">= 4.2.0"
  s.add_dependency "omniauth", ">= 1.8.1"
  s.add_dependency "omniauth-google-oauth2", ">= 0.5.0"

  s.add_development_dependency "bundler"
  s.add_development_dependency "pg"
  s.add_development_dependency "rake"
  s.add_development_dependency "rspec-rails"
end

Add minimum version restraints to omniauth and omniauth-google-oauth2
Add minimum version restraints to omniauth and omniauth-google-oauth2

Recently on several projects, when running `bundle update` we noticed
that all oauth* dependencies were getting severely downgraded. The only
thing I can think of is that since we don't have a minimum version lock
on these dependencies, bundler has decided to do whatever it wants with
the versions.

Confirmed that this worked on a couple of our repos.
