puma 3.9.0 → 3.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b81d09730460553a429075838b26bb574a4b9610
4
- data.tar.gz: a3336117cdff61b925b86effef73382d5e765862
3
+ metadata.gz: d5d26b911b93d92a109a1e64fd3229c7689395f9
4
+ data.tar.gz: a24b5aa41459ed2eefeff450681154b1013d4056
5
5
  SHA512:
6
- metadata.gz: 7a9b8d7cf54f2c97932e16ff76c19be931f936b246305912f1a2b939405af0a41192d7f5ee7ee462640e629a28476c591d44e702401d7a11128a8b3669af4151
7
- data.tar.gz: dca5d59920db309d50c341cb19ab4f24d8d3f3781488e9c78a3a240b0d6f7908ad61854eb60965ffbeda10048285375ce9432b3c6d4444db1dd0cf5ca9799eaf
6
+ metadata.gz: e5a2a20376869642154cbfaf94549ac99a53a55ccf13346025b1c2ae73a36a9c512336ffb8ff11331051512ebbb069debeb456ff7b0b086796233d7bfe0f4cf0
7
+ data.tar.gz: 93c54f37b5729dadc20e903ea908ff254908b08515a100be0d624c10aff481f29cb9bb7afa011ac560e1c5ac845d547cb69d9fa992129afaf8ea9c3d86bc97d4
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ gemspec
4
+
3
5
  gem "hoe"
4
6
  gem "hoe-git"
5
7
  gem "hoe-ignore"
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.9.1 / 2017-06-03
2
+
3
+ * 2 bugfixes:
4
+ * Fixed compatibility with older Bundler versions (#1314)
5
+ * Some internal test/development cleanup (#1311, #1313)
6
+
1
7
  ## 3.9.0 / 2017-06-01
2
8
 
3
9
  * 2 features:
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] = self.urls.first
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
@@ -95,7 +95,7 @@ module Puma
95
95
  # too taxing on performance.
96
96
  module Const
97
97
 
98
- PUMA_VERSION = VERSION = "3.9.0".freeze
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
 
@@ -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.clean_env : ENV.to_h)
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 $:[0] == lib
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
@@ -1,52 +1,20 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- # This is only used when puma is a git dep from Bundler, so it's a little
4
- # weird.
3
+ # This is only used when puma is a git dep from Bundler, keep in sync with Rakefile
5
4
 
6
- d = File.read(File.expand_path("../lib/puma/const.rb", __FILE__))
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.0
4
+ version: 3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Phoenix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rack
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '1.1'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3.0'
23
- type: :development
24
- prerelease: false
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
- name: rake-compiler
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '0.8'
40
- type: :development
41
- prerelease: false
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
  name: rdoc
49
15
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
163
  version: '0'
198
164
  requirements: []
199
165
  rubyforge_project:
200
- rubygems_version: 2.5.2
166
+ rubygems_version: 2.6.11
201
167
  signing_key:
202
168
  specification_version: 4
203
169
  summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for