# -*- encoding: utf-8 -*-
require File.expand_path('../lib/grape-active_model_serializers/version', __FILE__)

Gem::Specification.new do |gem|
  gem.authors       = ["Jonathan Richard Henry Evans"]
  gem.email         = ["contact@jrhe.co.uk"]
  gem.summary       = %q{Use active_model_serializer in grape}
  gem.description   = %q{Provides a Formatter for the Grape API DSL to emit objects serialized with active_model_serializers.}
  gem.homepage      = "https://github.com/jrhe/grape-active_model_serializers"

  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  gem.files         = `git ls-files`.split("\n")
  gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  gem.name          = "grape-active_model_serializers"
  gem.require_paths = ["lib"]
  gem.version       = Grape::ActiveModelSerializers::VERSION
  gem.licenses      = ['MIT']

  gem.add_dependency "grape", "~> 0.3"
  gem.add_dependency "active_model_serializers", ">= 0.9.0.alpha1"

  gem.add_development_dependency "rspec"
  gem.add_development_dependency "rack-test"
  gem.add_development_dependency "rake"
  gem.add_development_dependency "jazz_hands"
  gem.add_development_dependency 'guard-rspec'
end

# -*- encoding: utf-8 -*-
require File.expand_path('../lib/grape-active_model_serializers/version', __FILE__)

Gem::Specification.new do |gem|
  gem.authors       = ["Jonathan Richard Henry Evans"]
  gem.email         = ["contact@jrhe.co.uk"]
  gem.summary       = %q{Use active_model_serializer in grape}
  gem.description   = %q{Provides a Formatter for the Grape API DSL to emit objects serialized with active_model_serializers.}
  gem.homepage      = "https://github.com/jrhe/grape-active_model_serializers"

  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  gem.files         = `git ls-files`.split("\n")
  gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  gem.name          = "grape-active_model_serializers"
  gem.require_paths = ["lib"]
  gem.version       = Grape::ActiveModelSerializers::VERSION
  gem.licenses      = ['MIT']

  gem.add_dependency "grape", "~> 0.3"
  gem.add_dependency "active_model_serializers", ">= 0.9.0"

  gem.add_development_dependency "rspec"
  gem.add_development_dependency "rack-test"
  gem.add_development_dependency "rake"
  gem.add_development_dependency "jazz_hands"
  gem.add_development_dependency 'guard-rspec'
end

Update dependency version for active_model_serializers
Update dependency version for active_model_serializers

Using Alpha1 breaks when adding a `has_one` relation and the relation is not set, throwing an error of `TypeError - no implicit conversion of nil into Array`