File: oj.gemspec

package info (click to toggle)
ruby-oj 3.16.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,192 kB
  • sloc: ansic: 19,659; ruby: 11,750; sh: 70; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 1,496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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_runtime_dependency 'ostruct', '>= 0.2'
  s.add_development_dependency 'minitest', '~> 5'
  s.add_development_dependency 'rake-compiler', '>= 0.9', '< 2.0'
  s.add_development_dependency 'test-unit', '~> 3.0'
end