puma 3.9.0-java → 3.9.1-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puma might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/History.md +6 -0
- data/Rakefile +12 -5
- data/lib/puma/const.rb +1 -1
- data/lib/puma/launcher.rb +4 -5
- data/lib/puma/puma_http11.jar +0 -0
- data/puma.gemspec +3 -35
- metadata +2 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e603f54b7171ab3b2873fc06cd1f1f04c87b67b2b6ca4ba0f933c38b48c210a
|
4
|
+
data.tar.gz: 3a725c1112b1574379db9d4c379d468a7cd4668819a1c3dfba4a9e90df57ec46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743a2b220718b52106cfcc985702b4bec6efc7568eceb5f22de86cfe1e40ee06b0cda520efb86d0d5e6c628e4714e40ec3060bcb3ca0a4769ab27a475d8a812f
|
7
|
+
data.tar.gz: b47229581ea5e799a2c2aeea1cccc60187a65bcc558cf760c55d66f9b264247b151819f08704f63dc0f89e4e12def986b1ed524942017c56fff75701ad0c8549
|
data/Gemfile
CHANGED
data/History.md
CHANGED
data/Rakefile
CHANGED
@@ -8,6 +8,7 @@ IS_JRUBY = defined?(RUBY_ENGINE) ? RUBY_ENGINE == "jruby" : false
|
|
8
8
|
Hoe.plugin :git
|
9
9
|
Hoe.plugin :ignore
|
10
10
|
|
11
|
+
# Keep in sync with puma.gemspec
|
11
12
|
HOE = Hoe.spec "puma" do
|
12
13
|
self.readme_file = "README.md"
|
13
14
|
self.urls = %w!http://puma.io https://github.com/puma/puma!
|
@@ -17,13 +18,9 @@ HOE = Hoe.spec "puma" do
|
|
17
18
|
|
18
19
|
spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"]
|
19
20
|
spec_extras[:executables] = ['puma', 'pumactl']
|
20
|
-
spec_extras[:homepage] =
|
21
|
+
spec_extras[:homepage] = urls.first
|
21
22
|
|
22
23
|
require_ruby_version ">= 1.9.3"
|
23
|
-
|
24
|
-
dependency "rack", [">= 1.1", "< 3.0"], :development
|
25
|
-
|
26
|
-
extra_dev_deps << ["rake-compiler", "~> 0.8"]
|
27
24
|
end
|
28
25
|
|
29
26
|
task :prerelease => [:clobber, :check_manifest, :test]
|
@@ -143,6 +140,16 @@ else
|
|
143
140
|
task :test => [:compile]
|
144
141
|
end
|
145
142
|
|
143
|
+
task :test => [:ensure_no_puma_gem]
|
144
|
+
task :ensure_no_puma_gem do
|
145
|
+
Bundler.with_clean_env do
|
146
|
+
out = `gem list puma`.strip
|
147
|
+
if !$?.success? || out != ""
|
148
|
+
abort "No other puma version should be install to avoid false positives or lading it by accident but found #{out}"
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
146
153
|
namespace :test do
|
147
154
|
desc "Run the integration tests"
|
148
155
|
task :integration do
|
data/lib/puma/const.rb
CHANGED
@@ -95,7 +95,7 @@ module Puma
|
|
95
95
|
# too taxing on performance.
|
96
96
|
module Const
|
97
97
|
|
98
|
-
PUMA_VERSION = VERSION = "3.9.
|
98
|
+
PUMA_VERSION = VERSION = "3.9.1".freeze
|
99
99
|
CODE_NAME = "Private Caller".freeze
|
100
100
|
PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
|
101
101
|
|
data/lib/puma/launcher.rb
CHANGED
@@ -163,7 +163,7 @@ module Puma
|
|
163
163
|
|
164
164
|
# Run the server. This blocks until the server is stopped
|
165
165
|
def run
|
166
|
-
previous_env = (defined?(Bundler) ? Bundler
|
166
|
+
previous_env = (defined?(Bundler) ? Bundler::ORIGINAL_ENV : ENV.to_h)
|
167
167
|
|
168
168
|
@config.clamp
|
169
169
|
|
@@ -340,8 +340,6 @@ module Puma
|
|
340
340
|
|
341
341
|
@restart_dir ||= Dir.pwd
|
342
342
|
|
343
|
-
require 'rubygems'
|
344
|
-
|
345
343
|
# if $0 is a file in the current directory, then restart
|
346
344
|
# it the same, otherwise add -S on there because it was
|
347
345
|
# picked up in PATH.
|
@@ -352,9 +350,10 @@ module Puma
|
|
352
350
|
arg0 = [Gem.ruby, "-S", $0]
|
353
351
|
end
|
354
352
|
|
355
|
-
# Detect and reinject -Ilib from the command line
|
353
|
+
# Detect and reinject -Ilib from the command line, used for testing without bundler
|
354
|
+
# cruby has an expanded path, jruby has just "lib"
|
356
355
|
lib = File.expand_path "lib"
|
357
|
-
arg0[1,0] = ["-I", lib] if
|
356
|
+
arg0[1,0] = ["-I", lib] if [lib, "lib"].include?($LOAD_PATH[0])
|
358
357
|
|
359
358
|
if defined? Puma::WILD_ARGS
|
360
359
|
@restart_argv = arg0 + Puma::WILD_ARGS + @original_argv
|
data/lib/puma/puma_http11.jar
CHANGED
Binary file
|
data/puma.gemspec
CHANGED
@@ -1,52 +1,20 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
# This is only used when puma is a git dep from Bundler,
|
4
|
-
# weird.
|
3
|
+
# This is only used when puma is a git dep from Bundler, keep in sync with Rakefile
|
5
4
|
|
6
|
-
|
7
|
-
if d =~ /VERSION = "(\d+\.\d+\.\d+)"/
|
8
|
-
version = $1
|
9
|
-
else
|
10
|
-
version = "0.0.1"
|
11
|
-
end
|
5
|
+
version = File.read(File.expand_path("../lib/puma/const.rb", __FILE__))[/VERSION = "(\d+\.\d+\.\d+)"/, 1] || raise
|
12
6
|
|
13
7
|
Gem::Specification.new do |s|
|
14
8
|
s.name = "puma"
|
15
9
|
s.version = version
|
16
|
-
|
17
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
18
10
|
s.authors = ["Evan Phoenix"]
|
19
|
-
s.date = `git log --pretty="%ai" -n 1`.split(" ").first
|
20
11
|
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."
|
12
|
+
s.summary = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications"
|
21
13
|
s.email = ["evan@phx.io"]
|
22
14
|
s.executables = ["puma", "pumactl"]
|
23
15
|
s.extensions = ["ext/puma_http11/extconf.rb"]
|
24
16
|
s.files = `git ls-files`.split($/)
|
25
17
|
s.homepage = "http://puma.io"
|
26
18
|
s.license = "BSD-3-Clause"
|
27
|
-
s.rdoc_options = ["--main", "README.md"]
|
28
|
-
s.require_paths = ["lib"]
|
29
19
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
|
30
|
-
s.rubyforge_project = "puma"
|
31
|
-
s.rubygems_version = "1.8.25"
|
32
|
-
s.summary = "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications"
|
33
|
-
s.test_files = s.files.grep(/^test/)
|
34
|
-
|
35
|
-
if s.respond_to? :specification_version then
|
36
|
-
s.specification_version = 3
|
37
|
-
|
38
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
39
|
-
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
40
|
-
s.add_development_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
41
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.6"])
|
42
|
-
else
|
43
|
-
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
44
|
-
s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
45
|
-
s.add_dependency(%q<hoe>, ["~> 3.6"])
|
46
|
-
end
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
49
|
-
s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
50
|
-
s.add_dependency(%q<hoe>, ["~> 3.6"])
|
51
|
-
end
|
52
20
|
end
|
metadata
CHANGED
@@ -1,49 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Evan Phoenix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
15
|
-
requirements:
|
16
|
-
- - ">="
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: '1.1'
|
19
|
-
- - "<"
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '3.0'
|
22
|
-
name: rack
|
23
|
-
prerelease: false
|
24
|
-
type: :development
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.1'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3.0'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
requirement: !ruby/object:Gem::Requirement
|
35
|
-
requirements:
|
36
|
-
- - "~>"
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: '0.8'
|
39
|
-
name: rake-compiler
|
40
|
-
prerelease: false
|
41
|
-
type: :development
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.8'
|
47
13
|
- !ruby/object:Gem::Dependency
|
48
14
|
requirement: !ruby/object:Gem::Requirement
|
49
15
|
requirements:
|