mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
With the release of Bundler 2.0, things got a bit messy. Since both bundler and rake are very likely to retain backwards compatibility due to their wide use in the wild, this is likely safe enough. In any case, these are "only" development dependencies which do not affect any production users of Rackstash but merely people running the tests.
49 lines
1.8 KiB
Ruby
49 lines
1.8 KiB
Ruby
# frozen_string_literal: true
|
|
#
|
|
# Copyright 2017 - 2019 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', __dir__)
|
|
$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'
|
|
|
|
# We require at least Ruby 2.1 due to the use of:
|
|
# * implicit String#scrub during String#encode as used in
|
|
# Rackstash::Helpers::UTF8#utf8_encode.
|
|
# We might be able to use the string-scrub gem as a polyfill and explicitly
|
|
# call scrub on lower versions though.
|
|
# * mandatory keyword arguments
|
|
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_development_dependency 'bundler', '>= 1.12'
|
|
spec.add_development_dependency 'rake'
|
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
|
|
spec.add_development_dependency 'coveralls', '~> 0.8.20'
|
|
spec.add_development_dependency 'yard', '~> 0.9'
|
|
end
|