puma 2.12.0 → 2.12.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: b265c1a60c1ca0d8edcf9a4d90a834bd38de84ae
4
- data.tar.gz: e6df6927092b0a4ccb22ccd25b6f637daea3bc16
3
+ metadata.gz: 0c8b1f4fce0fcee4ebd03eaaf4d93ad9376c4183
4
+ data.tar.gz: bc8ce26bf9b9536d0cba6e7537ce3fce707b6d57
5
5
  SHA512:
6
- metadata.gz: 9643ddea6fda97a21137ce6633521960a582a7bf552466272af27c27362f848366f143727da6f997bae7fa6499acf86031e7dfb73d8513d9907d413dd3429df1
7
- data.tar.gz: 4a8b43b176ec67cdc8c7022c7b9d62d991088613eca8ae618030d4a499aba0386546245c79dc4cb31323ed9981bcc2d5c629a165a7e2c23a04c0880eed204486
6
+ metadata.gz: 69fabcd7985017bd09cf783d576e38e02d565e0d02dce427d25c84d5477e3ea557de0a67dc66fd237f0ebff8f3e77990938fc8ba04bace87df497fbd1848489a
7
+ data.tar.gz: 66335f209d5d66ef6d29336b04b84c23d13409f3ff514005fa9704a02452a1875207cd3f1d0412155e8afb9f98ac2658f823ce73dda7f3bdf1e9c2ac8e2c1519
data/History.txt CHANGED
@@ -1,6 +1,18 @@
1
+ === 2.12.1 / 2015-07-16
2
+
3
+ * 2 bug fixes:
4
+ * Use a constant format. Fixes #737
5
+ * Use strerror for Windows sake. Fixes #733
6
+
7
+ * 1 doc change:
8
+ * typo fix: occured -> occurred
9
+
10
+ * 1 PR merged:
11
+ * Merge pull request #736 from paulanunda/paulanunda/typo-fix
12
+
1
13
  === 2.12.0 / 2015-07-14
2
14
 
3
- * X bug fixes:
15
+ * 13 bug fixes:
4
16
  * Add thread reaping to thread pool
5
17
  * Do not automatically use chunked responses when hijacked
6
18
  * Do not suppress Content-Length on partial hijack
@@ -15,7 +27,7 @@
15
27
  * Remove the default Content-Type: text/plain
16
28
  * Add Client Side Certificate Auth
17
29
 
18
- * X doc/test changes:
30
+ * 8 doc/test changes:
19
31
  * Added example sourcing of environment vars
20
32
  * Added tests for bind configuration on rackup file
21
33
  * Fix example config text
@@ -25,11 +37,11 @@
25
37
  * ci: Start running tests against JRuby 9k on Travis
26
38
  * ci: Convert to container infrastructure for travisci
27
39
 
28
- * X ops changes:
40
+ * 2 ops changes:
29
41
  * Check for system-wide rbenv
30
42
  * capistrano: Add additional env when start rails
31
43
 
32
- * X PRs merged:
44
+ * 16 PRs merged:
33
45
  * Merge pull request #686 from jjb/patch-2
34
46
  * Merge pull request #693 from rob-murray/update-example-config
35
47
  * Merge pull request #697 from spk/tests-bind-on-rackup-file
data/README.md CHANGED
@@ -131,7 +131,7 @@ error-tracking service (in this example, [rollbar](http://rollbar.com)):
131
131
  ```ruby
132
132
  lowlevel_error_handler do |e|
133
133
  Rollbar.critical(e)
134
- [500, {}, ["An error has occured, and engineers have been informed. Please reload the page. If you continue to have problems, contact support@example.com\n"]]
134
+ [500, {}, ["An error has occurred, and engineers have been informed. Please reload the page. If you continue to have problems, contact support@example.com\n"]]
135
135
  end
136
136
  ```
137
137
 
@@ -212,8 +212,7 @@ void raise_error(SSL* ssl, int result) {
212
212
  int verify_err = SSL_get_verify_result(ssl);
213
213
 
214
214
  if(SSL_ERROR_SYSCALL == ssl_err) {
215
- strerror_r(err, buf, sizeof(buf));
216
- snprintf(msg, sizeof(msg), "System error: %s - %d", buf, err);
215
+ snprintf(msg, sizeof(msg), "System error: %s - %d", strerror(err), err);
217
216
 
218
217
  } else if(SSL_ERROR_SSL == ssl_err) {
219
218
  if(X509_V_OK != verify_err) {
@@ -233,7 +232,7 @@ void raise_error(SSL* ssl, int result) {
233
232
  }
234
233
 
235
234
  ERR_clear_error();
236
- rb_raise(eError, msg);
235
+ rb_raise(eError, "%s", msg);
237
236
  }
238
237
 
239
238
  VALUE engine_read(VALUE self) {
data/lib/puma/const.rb CHANGED
@@ -99,7 +99,7 @@ module Puma
99
99
  # too taxing on performance.
100
100
  module Const
101
101
 
102
- PUMA_VERSION = VERSION = "2.12.0".freeze
102
+ PUMA_VERSION = VERSION = "2.12.1".freeze
103
103
  CODE_NAME = "Plutonian Photo Shoot".freeze
104
104
 
105
105
  FAST_TRACK_KA_TIMEOUT = 0.2
data/lib/puma/events.rb CHANGED
@@ -87,7 +87,7 @@ module Puma
87
87
  formatter.call(str)
88
88
  end
89
89
 
90
- # An HTTP parse error has occured.
90
+ # An HTTP parse error has occurred.
91
91
  # +server+ is the Server object, +env+ the request, and +error+ a
92
92
  # parsing exception.
93
93
  #
@@ -96,7 +96,7 @@ module Puma
96
96
  @stderr.puts "#{Time.now}: ENV: #{env.inspect}\n---\n"
97
97
  end
98
98
 
99
- # An SSL error has occured.
99
+ # An SSL error has occurred.
100
100
  # +server+ is the Server object, +peeraddr+ peer address, +peercert+
101
101
  # any peer certificate (if present), and +error+ an exception object.
102
102
  #
@@ -105,7 +105,7 @@ module Puma
105
105
  @stderr.puts "#{Time.now}: SSL error, peer: #{peeraddr}, peer cert: #{subject}, #{error.inspect}"
106
106
  end
107
107
 
108
- # An unknown error has occured.
108
+ # An unknown error has occurred.
109
109
  # +server+ is the Server object, +env+ the request, +error+ an exception
110
110
  # object, and +kind+ some additional info.
111
111
  #
data/lib/puma/server.rb CHANGED
@@ -764,7 +764,7 @@ module Puma
764
764
  if @leak_stack_on_error
765
765
  [500, {}, ["Puma caught this error: #{e.message} (#{e.class})\n#{e.backtrace.join("\n")}"]]
766
766
  else
767
- [500, {}, ["An unhandled lowlevel error occured. The application logs may have details.\n"]]
767
+ [500, {}, ["An unhandled lowlevel error occurred. The application logs may have details.\n"]]
768
768
  end
769
769
  end
770
770
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.12.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: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.2.2
193
+ rubygems_version: 2.4.5
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for