1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/puma.gemspec
Richard Schneeman 095964879b
Revert api change from #2086 introduce Puma.stats_hash api (#2253)
* Revert api change from #2086 introduce Puma.stats_hash api

The change in #2086 is not backwards compatible with existing gems that parse the output of Puma.stats such as barnes.

Releasing a version of puma with this change would break anyone using the Barnes app and only in production. I'm proposing to keep the existing interface and instead add a new API. This buys us all the features of #2086 without causing any production facing downtime by customers due to API incompatibilities.

Unfortunately it requires that we serialize and the de-serialize the values. One prior benefit of returning json in a string was that it allowed an end user to de-serialize using a faster json algorithm such as `oj` via the "multi json" gem. But the performance penalty will be better than a stability break.
2020-05-11 10:20:19 +09:00

33 lines
1.5 KiB
Ruby

# -*- encoding: utf-8 -*-
version = File.read(File.expand_path("../lib/puma/const.rb", __FILE__))[/VERSION = "(\d+\.\d+\.\d+)"/, 1] || raise
Gem::Specification.new do |s|
s.name = "puma"
s.version = version
s.authors = ["Evan Phoenix"]
s.description = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well."
s.summary = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications"
s.email = ["evan@phx.io"]
s.executables = ["puma", "pumactl"]
s.extensions = ["ext/puma_http11/extconf.rb"]
s.add_runtime_dependency "nio4r", "~> 2.0"
if RbConfig::CONFIG['ruby_version'] >= '2.5'
s.metadata["msys2_mingw_dependencies"] = "openssl"
end
s.files = `git ls-files -- bin docs ext lib tools`.split("\n") +
%w[History.md LICENSE README.md]
s.homepage = "http://puma.io"
if s.respond_to?(:metadata=)
s.metadata = {
"bug_tracker_uri" => "https://github.com/puma/puma/issues",
"changelog_uri" => "https://github.com/puma/puma/blob/master/History.md",
"homepage_uri" => "http://puma.io",
"source_code_uri" => "https://github.com/puma/puma"
}
end
s.license = "BSD-3-Clause"
s.required_ruby_version = Gem::Requirement.new(">= 2.2")
end