# frozen_string_literal: true

require 'date'
require File.join(File.dirname(__FILE__), 'lib/oj/version')

Gem::Specification.new do |s|
  s.name = 'oj'
  s.version = Oj::VERSION
  s.authors = 'Peter Ohler'
  s.email = 'peter@ohler.com'
  s.homepage = 'http://www.ohler.com/oj'
  s.metadata = {
    'bug_tracker_uri' => 'https://github.com/ohler55/oj/issues',
    'changelog_uri' => 'https://github.com/ohler55/oj/blob/master/CHANGELOG.md',
    'documentation_uri' => 'http://www.ohler.com/oj/doc/index.html',
    'homepage_uri' => 'http://www.ohler.com/oj/',
    'source_code_uri' => 'https://github.com/ohler55/oj',
    'wiki_uri' => 'https://github.com/ohler55/oj/wiki',
    'rubygems_mfa_required' => 'true'
  }
  s.summary = 'A fast JSON parser and serializer.'
  s.description = 'The fastest JSON parser and object serializer.'
  s.licenses = ['MIT']
  s.required_ruby_version = '>= 2.7'

  s.files = Dir['{lib,ext}/**/*.{rb,h,c}'] + ['LICENSE', 'README.md', 'CHANGELOG.md', 'RELEASE_NOTES.md'] + Dir['pages/*.md']
  s.extensions = ['ext/oj/extconf.rb']

  s.extra_rdoc_files = ['README.md', 'LICENSE', 'CHANGELOG.md', 'RELEASE_NOTES.md'] + Dir['pages/*.md']
  s.rdoc_options = ['--title', 'Oj', '--main', 'README.md']

  s.add_runtime_dependency 'bigdecimal', '>= 3.0'
  s.add_development_dependency 'minitest', '~> 5'
  s.add_development_dependency 'rake-compiler', '>= 0.9', '< 2.0'
  s.add_development_dependency 'test-unit', '~> 3.0'
  s.add_runtime_dependency 'ostruct', '>= 0.2'
end
