puma 2.13.4-java → 2.14.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of puma might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.txt +8 -0
- data/ext/puma_http11/extconf.rb +8 -4
- data/ext/puma_http11/mini_ssl.c +27 -0
- data/lib/puma/binder.rb +6 -0
- data/lib/puma/configuration.rb +15 -1
- data/lib/puma/const.rb +2 -2
- data/lib/puma/minissl.rb +2 -0
- data/lib/puma/puma_http11.jar +0 -0
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e093de7b7e1a0fc7103ebc46655aca2845fac33f
         | 
| 4 | 
            +
              data.tar.gz: 5d68507508dd7d031053235885a9cc97c8735aea
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a9cfaaa4ea9a090d4cbdf419f23d3adcad60463e4884c81bfc92250dfb5cbfacff57ae56dbf6fc107192a3f3c193be4c778870f62bf1beae89b05eaf2c0fe8df
         | 
| 7 | 
            +
              data.tar.gz: a7b4bfea158c0dd78046abe14c2f870a2bf5dca6e12365a28c41487f1ef531c05f7cea20ffed698ae68267f15e0eee30d1eabd9f9a548114126c5b0e2a75dcb2
         | 
    
        data/History.txt
    CHANGED
    
    
    
        data/ext/puma_http11/extconf.rb
    CHANGED
    
    | @@ -2,8 +2,12 @@ require 'mkmf' | |
| 2 2 |  | 
| 3 3 | 
             
            dir_config("puma_http11")
         | 
| 4 4 |  | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 5 | 
            +
            unless ENV["DISABLE_SSL"]
         | 
| 6 | 
            +
              if %w'crypto libeay32'.find {|crypto| have_library(crypto, 'BIO_read')} and
         | 
| 7 | 
            +
                  %w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')}
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                have_header "openssl/bio.h"
         | 
| 10 | 
            +
              end
         | 
| 9 11 | 
             
            end
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            create_makefile("puma/puma_http11")
         | 
    
        data/ext/puma_http11/mini_ssl.c
    CHANGED
    
    | @@ -1,6 +1,10 @@ | |
| 1 1 | 
             
            #define RSTRING_NOT_MODIFIED 1
         | 
| 2 | 
            +
             | 
| 2 3 | 
             
            #include <ruby.h>
         | 
| 3 4 | 
             
            #include <rubyio.h>
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            #ifdef HAVE_OPENSSL_BIO_H
         | 
| 7 | 
            +
             | 
| 4 8 | 
             
            #include <openssl/bio.h>
         | 
| 5 9 | 
             
            #include <openssl/ssl.h>
         | 
| 6 10 | 
             
            #include <openssl/dh.h>
         | 
| @@ -347,6 +351,10 @@ VALUE engine_peercert(VALUE self) { | |
| 347 351 | 
             
              return rb_cert_buf;
         | 
| 348 352 | 
             
            }
         | 
| 349 353 |  | 
| 354 | 
            +
            VALUE noop(VALUE self) {
         | 
| 355 | 
            +
              return Qnil;
         | 
| 356 | 
            +
            }
         | 
| 357 | 
            +
             | 
| 350 358 | 
             
            void Init_mini_ssl(VALUE puma) {
         | 
| 351 359 | 
             
              VALUE mod, eng;
         | 
| 352 360 |  | 
| @@ -358,6 +366,8 @@ void Init_mini_ssl(VALUE puma) { | |
| 358 366 | 
             
              mod = rb_define_module_under(puma, "MiniSSL");
         | 
| 359 367 | 
             
              eng = rb_define_class_under(mod, "Engine", rb_cObject);
         | 
| 360 368 |  | 
| 369 | 
            +
              rb_define_singleton_method(mod, "check", noop, 0);
         | 
| 370 | 
            +
             | 
| 361 371 | 
             
              eError = rb_define_class_under(mod, "SSLError", rb_eStandardError);
         | 
| 362 372 |  | 
| 363 373 | 
             
              rb_define_singleton_method(eng, "server", engine_init_server, 1);
         | 
| @@ -371,3 +381,20 @@ void Init_mini_ssl(VALUE puma) { | |
| 371 381 |  | 
| 372 382 | 
             
              rb_define_method(eng, "peercert", engine_peercert, 0);
         | 
| 373 383 | 
             
            }
         | 
| 384 | 
            +
             | 
| 385 | 
            +
            #else
         | 
| 386 | 
            +
             | 
| 387 | 
            +
            VALUE raise_error(VALUE self) {
         | 
| 388 | 
            +
              rb_raise(rb_eStandardError, "SSL not available in this build");
         | 
| 389 | 
            +
              return Qnil;
         | 
| 390 | 
            +
            }
         | 
| 391 | 
            +
             | 
| 392 | 
            +
            void Init_mini_ssl(VALUE puma) {
         | 
| 393 | 
            +
              VALUE mod, eng;
         | 
| 394 | 
            +
             | 
| 395 | 
            +
              mod = rb_define_module_under(puma, "MiniSSL");
         | 
| 396 | 
            +
              rb_define_class_under(mod, "SSLError", rb_eStandardError);
         | 
| 397 | 
            +
             | 
| 398 | 
            +
              rb_define_singleton_method(mod, "check", raise_error, 0);
         | 
| 399 | 
            +
            }
         | 
| 400 | 
            +
            #endif
         | 
    
        data/lib/puma/binder.rb
    CHANGED
    
    | @@ -128,6 +128,8 @@ module Puma | |
| 128 128 |  | 
| 129 129 | 
             
                      @listeners << [str, io]
         | 
| 130 130 | 
             
                    when "ssl"
         | 
| 131 | 
            +
                      MiniSSL.check
         | 
| 132 | 
            +
             | 
| 131 133 | 
             
                      params = Util.parse_query uri.query
         | 
| 132 134 | 
             
                      require 'puma/minissl'
         | 
| 133 135 |  | 
| @@ -253,6 +255,8 @@ module Puma | |
| 253 255 | 
             
                                     optimize_for_latency=true, backlog=1024)
         | 
| 254 256 | 
             
                  require 'puma/minissl'
         | 
| 255 257 |  | 
| 258 | 
            +
                  MiniSSL.check
         | 
| 259 | 
            +
             | 
| 256 260 | 
             
                  host = host[1..-2] if host[0..0] == '['
         | 
| 257 261 | 
             
                  s = TCPServer.new(host, port)
         | 
| 258 262 | 
             
                  if optimize_for_latency
         | 
| @@ -272,6 +276,8 @@ module Puma | |
| 272 276 |  | 
| 273 277 | 
             
                def inherited_ssl_listener(fd, ctx)
         | 
| 274 278 | 
             
                  require 'puma/minissl'
         | 
| 279 | 
            +
                  MiniSSL.check
         | 
| 280 | 
            +
             | 
| 275 281 | 
             
                  s = TCPServer.for_fd(fd)
         | 
| 276 282 | 
             
                  ssl = MiniSSL::Server.new(s, ctx)
         | 
| 277 283 |  | 
    
        data/lib/puma/configuration.rb
    CHANGED
    
    | @@ -123,10 +123,24 @@ module Puma | |
| 123 123 | 
             
                  File.basename(Dir.getwd)
         | 
| 124 124 | 
             
                end
         | 
| 125 125 |  | 
| 126 | 
            +
                # Load and use the normal Rack builder if we can, otherwise
         | 
| 127 | 
            +
                # fallback to our minimal version.
         | 
| 128 | 
            +
                def rack_builder
         | 
| 129 | 
            +
                  begin
         | 
| 130 | 
            +
                    require 'rack'
         | 
| 131 | 
            +
                    require 'rack/builder'
         | 
| 132 | 
            +
                  rescue LoadError
         | 
| 133 | 
            +
                    # ok, use builtin version
         | 
| 134 | 
            +
                    return Puma::Rack::Builder
         | 
| 135 | 
            +
                  else
         | 
| 136 | 
            +
                    return ::Rack::Builder
         | 
| 137 | 
            +
                  end
         | 
| 138 | 
            +
                end
         | 
| 139 | 
            +
             | 
| 126 140 | 
             
                def load_rackup
         | 
| 127 141 | 
             
                  raise "Missing rackup file '#{rackup}'" unless File.exist?(rackup)
         | 
| 128 142 |  | 
| 129 | 
            -
                  rack_app, rack_options =  | 
| 143 | 
            +
                  rack_app, rack_options = rack_builder.parse_file(rackup)
         | 
| 130 144 | 
             
                  @options.merge!(rack_options)
         | 
| 131 145 |  | 
| 132 146 | 
             
                  config_ru_binds = []
         | 
    
        data/lib/puma/const.rb
    CHANGED
    
    | @@ -99,8 +99,8 @@ module Puma | |
| 99 99 | 
             
              # too taxing on performance.
         | 
| 100 100 | 
             
              module Const
         | 
| 101 101 |  | 
| 102 | 
            -
                PUMA_VERSION = VERSION = "2. | 
| 103 | 
            -
                CODE_NAME = " | 
| 102 | 
            +
                PUMA_VERSION = VERSION = "2.14.0".freeze
         | 
| 103 | 
            +
                CODE_NAME = "Fuchsia Friday".freeze
         | 
| 104 104 |  | 
| 105 105 | 
             
                FAST_TRACK_KA_TIMEOUT = 0.2
         | 
| 106 106 |  | 
    
        data/lib/puma/minissl.rb
    CHANGED
    
    
    
        data/lib/puma/puma_http11.jar
    CHANGED
    
    | Binary file | 
    
        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. | 
| 4 | 
            +
              version: 2.14.0
         | 
| 5 5 | 
             
            platform: java
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Evan Phoenix
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015- | 
| 11 | 
            +
            date: 2015-09-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              requirement: !ruby/object:Gem::Requirement
         |