# frozen_string_literal: true

require_relative '../core/lib/spree/core/version.rb'

Gem::Specification.new do |gem|
  gem.author        = 'Solidus Team'
  gem.email         = 'contact@solidus.io'
  gem.homepage      = 'http://solidus.io/'
  gem.license       = 'BSD-3-Clause'

  gem.summary       = 'REST API for the Solidus e-commerce framework.'
  gem.description   = gem.summary

  gem.files = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^(spec|script)/})
  end
  gem.name          = "solidus_api"
  gem.require_paths = ["lib"]
  gem.version = Spree.solidus_version

  gem.required_ruby_version = '>= 2.4.0'
  gem.required_rubygems_version = '>= 1.8.23'

  gem.add_dependency 'jbuilder', '~> 2.8'
  gem.add_dependency 'kaminari-activerecord', '~> 1.1'
  gem.add_dependency 'responders'
  gem.add_dependency 'solidus_core', gem.version
end

# frozen_string_literal: true

require_relative '../core/lib/spree/core/version.rb'

Gem::Specification.new do |s|
  s.platform    = Gem::Platform::RUBY
  s.name        = "solidus_api"
  s.version     = Spree.solidus_version
  s.summary     = 'REST API for the Solidus e-commerce framework.'
  s.description = s.summary

  s.author      = 'Solidus Team'
  s.email       = 'contact@solidus.io'
  s.homepage    = 'http://solidus.io/'
  s.license     = 'BSD-3-Clause'

  s.files = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^(spec|script)/})
  end
  s.require_paths = ["lib"]

  s.required_ruby_version = '>= 2.4.0'
  s.required_rubygems_version = '>= 1.8.23'

  s.add_dependency 'jbuilder', '~> 2.8'
  s.add_dependency 'kaminari-activerecord', '~> 1.1'
  s.add_dependency 'responders'
  s.add_dependency 'solidus_core', s.version
end

Make api gemspec uniform to other ones
Make api gemspec uniform to other ones

This commit just changes the inner block variable `gem` to `s`,
to reflect what we do in other gemspecs.

It also reorder items so it's easy to find gemspecs pieces where
we have them in the gemspec of the other components.
