-
Notifications
You must be signed in to change notification settings - Fork 24
/
ougai.gemspec
35 lines (29 loc) · 1.27 KB
/
ougai.gemspec
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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'ougai/version'
Gem::Specification.new do |spec|
spec.name = "ougai"
spec.version = Ougai::VERSION
spec.authors = ["Toshimitsu Takahashi"]
spec.email = ["toshi@tilfin.com"]
spec.summary = %q{JSON logger compatible with node-bunyan or pino is capable of handling structured data easily.}
spec.description = <<-EOF
A structured logging system is capable of handling a message, custom data or an exception easily.
It has JSON formatters compatible with Bunyan or pino for Node.js and human readable formatter with Amazing Print for console.
EOF
spec.homepage = "https://github.com/tilfin/ougai"
spec.license = "MIT"
spec.files = Dir['[A-Z]*[^~]'] + Dir['lib/**/*.rb'] + ['README.md', 'LICENSE.txt']
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.5.0'
if RUBY_PLATFORM =~ /java/
spec.platform = 'java'
spec.add_dependency 'jrjackson', '~> 0.4'
else
spec.add_dependency "oj", "~> 3.10"
end
spec.add_development_dependency "bundler", ">= 2.1.4"
spec.add_development_dependency "rake", ">= 13.0.1"
spec.add_development_dependency "rspec", ">= 3.9.0"
end