# encoding: utf-8

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'English'
require 'aptible/auth/version'

Gem::Specification.new do |spec|
  spec.name          = 'aptible-auth'
  spec.version       = Aptible::Auth::VERSION
  spec.authors       = ['Frank Macreery']
  spec.email         = ['frank@macreery.com']
  spec.description   = 'Ruby client for auth.aptible.com'
  spec.summary       = 'Ruby client for auth.aptible.com'
  spec.homepage      = 'https://github.com/aptible/aptible-auth-ruby'
  spec.license       = 'MIT'

  spec.files         = `git ls-files`.split($RS)
  spec.test_files    = spec.files.grep(%r{^spec/})
  spec.require_paths = ['lib']

  spec.add_dependency 'aptible-resource', '~> 1.0'
  spec.add_dependency 'gem_config'
  spec.add_dependency 'oauth2', '~> 1.4'

  spec.add_development_dependency 'aptible-tasks', '>= 0.6.0'
  spec.add_development_dependency 'pry'
  spec.add_development_dependency 'rake'
  spec.add_development_dependency 'rspec', '~> 3.0'
  spec.add_development_dependency 'rspec-its'
  spec.add_development_dependency 'timecop', '~> 0.8.1'
end

# encoding: utf-8

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'English'
require 'aptible/auth/version'

Gem::Specification.new do |spec|
  spec.name          = 'aptible-auth'
  spec.version       = Aptible::Auth::VERSION
  spec.authors       = ['Frank Macreery']
  spec.email         = ['frank@macreery.com']
  spec.description   = 'Ruby client for auth.aptible.com'
  spec.summary       = 'Ruby client for auth.aptible.com'
  spec.homepage      = 'https://github.com/aptible/aptible-auth-ruby'
  spec.license       = 'MIT'

  spec.files         = `git ls-files`.split($RS)
  spec.test_files    = spec.files.grep(%r{^spec/})
  spec.require_paths = ['lib']

  spec.add_dependency 'aptible-resource', '~> 1.0'
  spec.add_dependency 'gem_config'
  spec.add_dependency 'oauth2', '1.4.7'

  spec.add_development_dependency 'aptible-tasks', '>= 0.6.0'
  spec.add_development_dependency 'pry'
  spec.add_development_dependency 'rake'
  spec.add_development_dependency 'rspec', '~> 3.0'
  spec.add_development_dependency 'rspec-its'
  spec.add_development_dependency 'timecop', '~> 0.8.1'
end

Fix oauth2 dependency to 1.4.7
Fix oauth2 dependency to 1.4.7

Currently, oauth2 1.4.8 includes a change that causes aptible-cli to break when attempting authorization: https://github.com/oauth-xx/oauth2/issues/572
The underlying cause is a hash not being converted to a string, which Faraday's default adapter provides. This will need to be fixed in the oauth2 gem to properly address the issue.
