1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-01-31 17:27:13 +00:00
rackstash/rackstash.gemspec
Holger Just 5abf10af2b Add hard gem dependencies to concurrent-ruby and ref
Generally, we try hard to avoid additional dependencies to external gems
to keep us from having to maintain all these dependencies in the variety
of environments where Rackstash is going to be used.

We still decided to depend on two concurrent-ruby gems since they are

1. are of exceptional code quality
2. are well-maintained and with devs eager to maintain a stable and
   well-understood interface
3. provide very useful buolding-blocks for safe interoperations across
   thread-boundaries.

The chosen versions are selected to be compatible with a wide range of
external frameworks.
2017-02-04 00:11:13 +01:00

40 lines
1.4 KiB
Ruby

# coding: utf-8
# Copyright 2017 Holger Just
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details.
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rackstash/version'
Gem::Specification.new do |spec|
spec.name = 'rackstash'
spec.version = Rackstash::VERSION
spec.authors = ['Holger Just']
spec.summary = 'Easy structured logging for Ruby applications'
spec.description = <<-TXT.gsub(/\s+|\n/, ' ').strip
A drop-in replacement for Ruby's Logger to allow flexible structured logging
for request-based applications built on e.g Rack, Rails or similar
frameworks. It works best with a log receiver like Logstash or Graylog.
TXT
spec.homepage = 'https://github.com/meineerde/rackstash'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.1.0'
files = `git ls-files -z`.split("\x0")
spec.files = files.reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.2'
spec.add_dependency 'ref', '~> 2.0'
spec.add_development_dependency 'bundler', '~> 1.12'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
end