rjack-jetty 9.3.6.0-java → 9.3.7.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8c57aada7a578cc26b55a6db93acabc717fe871
4
- data.tar.gz: aa37f2532e37b3deeda7a573631f98707c2f7bbc
3
+ metadata.gz: 2a3473039bf9751b4c49f7c6e830ab62c737bdca
4
+ data.tar.gz: 153b2275011f6bf0ba2e23ea769989aa857c7330
5
5
  SHA512:
6
- metadata.gz: f134e935c17e1fd7f77d2f7a6195f24af3eec356d78509de015dc1ae8c339bf35415de741a32a9cc882e91d504e80b7365142e83d3d16f97d2c8d437d8069ca0
7
- data.tar.gz: 1bdc6d4c8382c3049da088c50e4c15943fd0ada4b44d1e667173fee30ea9b6c13abf20d3c5f4a74359e54def6944387198c656facc25d4146484b34d89b68883
6
+ metadata.gz: 0da86c3b580fa08f5b4fa595a7a94545268aa95e6e29dfe4fc8d72cac7fd34066ea8ce2c2f0a83a6cec89ca0672633784a3ea843c465f352249f81442ec3b99f
7
+ data.tar.gz: 00435fa77f7fe93d9507dd44bcfc7ae52baff477b3dc2d4346ea748e757813684d57d82897c2ca45007862d8d6dbe5c7e86c2482f1072f50512d3ed3c31203dc
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ === 9.3.7.0 (2016-1-21)
2
+ * Update to Jetty 9.3.7.v20160115. Note that this release changes the
3
+ default ciphers for SSL connectors. This results in connection
4
+ failure of a default configured JRuby Net::HTTP client at minimum. A
5
+ workaround was found for local tests.
6
+ * Add :inherit_channel option to RJack::Jetty::ServerFactory#connections
7
+ (#9, Akihiro Uchida)
8
+
1
9
  === 9.3.6.0 (2015-11-18)
2
10
  * Update to Jetty 9.3.6.v20151106
3
11
 
data/Manifest.txt CHANGED
@@ -17,15 +17,15 @@ webapps/test/index.html
17
17
  webapps/test/WEB-INF/web.xml
18
18
  webapps/test.war
19
19
  lib/rjack-jetty/javax.servlet-api-3.1.0.jar
20
- lib/rjack-jetty/jetty-client-9.3.6.v20151106.jar
21
- lib/rjack-jetty/jetty-continuation-9.3.6.v20151106.jar
22
- lib/rjack-jetty/jetty-http-9.3.6.v20151106.jar
23
- lib/rjack-jetty/jetty-io-9.3.6.v20151106.jar
24
- lib/rjack-jetty/jetty-rewrite-9.3.6.v20151106.jar
25
- lib/rjack-jetty/jetty-security-9.3.6.v20151106.jar
26
- lib/rjack-jetty/jetty-server-9.3.6.v20151106.jar
27
- lib/rjack-jetty/jetty-servlet-9.3.6.v20151106.jar
28
- lib/rjack-jetty/jetty-util-9.3.6.v20151106.jar
29
- lib/rjack-jetty/jetty-webapp-9.3.6.v20151106.jar
30
- lib/rjack-jetty/jetty-xml-9.3.6.v20151106.jar
20
+ lib/rjack-jetty/jetty-client-9.3.7.v20160115.jar
21
+ lib/rjack-jetty/jetty-continuation-9.3.7.v20160115.jar
22
+ lib/rjack-jetty/jetty-http-9.3.7.v20160115.jar
23
+ lib/rjack-jetty/jetty-io-9.3.7.v20160115.jar
24
+ lib/rjack-jetty/jetty-rewrite-9.3.7.v20160115.jar
25
+ lib/rjack-jetty/jetty-security-9.3.7.v20160115.jar
26
+ lib/rjack-jetty/jetty-server-9.3.7.v20160115.jar
27
+ lib/rjack-jetty/jetty-servlet-9.3.7.v20160115.jar
28
+ lib/rjack-jetty/jetty-util-9.3.7.v20160115.jar
29
+ lib/rjack-jetty/jetty-webapp-9.3.7.v20160115.jar
30
+ lib/rjack-jetty/jetty-xml-9.3.7.v20160115.jar
31
31
  lib/rjack-jetty/rjack-jetty-1.0.jar
data/README.rdoc CHANGED
@@ -65,7 +65,7 @@ or
65
65
 
66
66
  === rjack-jetty gem
67
67
 
68
- Copyright (c) 2008-2015 David Kellum
68
+ Copyright (c) 2008-2016 David Kellum
69
69
 
70
70
  Licensed under the Apache License, Version 2.0 (the "License"); you
71
71
  may not use this file except in compliance with the License. You
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env jruby
2
2
  # -*- ruby -*-
3
3
  #--
4
- # Copyright (c) 2008-2015 David Kellum
4
+ # Copyright (c) 2008-2016 David Kellum
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License"); you
7
7
  # may not use this file except in compliance with the License. You
data/lib/rjack-jetty.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2008-2015 David Kellum
2
+ # Copyright (c) 2008-2016 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -174,11 +174,17 @@ module RJack
174
174
  # :max_idle_time_ms:: See above
175
175
  # :key_store_path:: For ssl, the path to the (Java JKS) keystore
176
176
  # :key_store_password:: For ssl, the password to the keystore
177
+ # :inherit_channel:: If set to true, use channel based on standard input,
178
+ # if standard input is available and binded to a socket,
179
+ # it can be used for inetd or hot deploy with
180
+ # {start_server}[https://metacpan.org/pod/start_server]
181
+ # (Default: false)
177
182
  #
178
183
  # URI examples:
179
184
  #
180
185
  # tcp://127.0.0.1
181
186
  # ssl://0.0.0.0:8443?key_store_path=test/keystore&key_store_password=399as8d9
187
+ # tcp://127.0.0.1?inherit_channel=true
182
188
  #
183
189
  attr_accessor :connections
184
190
 
@@ -243,6 +249,7 @@ module RJack
243
249
  connector.host = h if h
244
250
  connector.port = opts[:port] || ( first && @port ) || 0
245
251
  connector.idle_timeout = opts[:max_idle_time_ms] || @max_idle_time_ms
252
+ connector.inherit_channel = [true, 'true'].include?(opts[:inherit_channel])
246
253
  first = false
247
254
  connector
248
255
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2008-2015 David Kellum
2
+ # Copyright (c) 2008-2016 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -16,9 +16,9 @@
16
16
 
17
17
  module RJack
18
18
  module Jetty
19
- JETTY_VERSION = '9.3.6'
19
+ JETTY_VERSION = '9.3.7'
20
20
  VERSION = JETTY_VERSION + '.0'
21
- JETTY_BUILD = 'v20151106'
21
+ JETTY_BUILD = 'v20160115'
22
22
  SERVLET_API_VERSION = '3.1.0'
23
23
 
24
24
  JETTY_DIR = File.dirname( __FILE__ ) # :nodoc:
Binary file
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2008-2015 David Kellum
2
+ # Copyright (c) 2008-2016 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
data/pom.xml CHANGED
@@ -16,43 +16,43 @@
16
16
  <dependency>
17
17
  <groupId>org.eclipse.jetty</groupId>
18
18
  <artifactId>jetty-servlet</artifactId>
19
- <version>9.3.6.v20151106</version>
19
+ <version>9.3.7.v20160115</version>
20
20
  </dependency>
21
21
 
22
22
  <dependency>
23
23
  <groupId>org.eclipse.jetty</groupId>
24
24
  <artifactId>jetty-server</artifactId>
25
- <version>9.3.6.v20151106</version>
25
+ <version>9.3.7.v20160115</version>
26
26
  </dependency>
27
27
 
28
28
  <dependency>
29
29
  <groupId>org.eclipse.jetty</groupId>
30
30
  <artifactId>jetty-webapp</artifactId>
31
- <version>9.3.6.v20151106</version>
31
+ <version>9.3.7.v20160115</version>
32
32
  </dependency>
33
33
 
34
34
  <dependency>
35
35
  <groupId>org.eclipse.jetty</groupId>
36
36
  <artifactId>jetty-util</artifactId>
37
- <version>9.3.6.v20151106</version>
37
+ <version>9.3.7.v20160115</version>
38
38
  </dependency>
39
39
 
40
40
  <dependency>
41
41
  <groupId>org.eclipse.jetty</groupId>
42
42
  <artifactId>jetty-rewrite</artifactId>
43
- <version>9.3.6.v20151106</version>
43
+ <version>9.3.7.v20160115</version>
44
44
  </dependency>
45
45
 
46
46
  <dependency>
47
47
  <groupId>org.eclipse.jetty</groupId>
48
48
  <artifactId>jetty-client</artifactId>
49
- <version>9.3.6.v20151106</version>
49
+ <version>9.3.7.v20160115</version>
50
50
  </dependency>
51
51
 
52
52
  <dependency>
53
53
  <groupId>org.eclipse.jetty</groupId>
54
54
  <artifactId>jetty-continuation</artifactId>
55
- <version>9.3.6.v20151106</version>
55
+ <version>9.3.7.v20160115</version>
56
56
  </dependency>
57
57
 
58
58
  </dependencies>
data/test/test_jetty.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #.hashdot.profile += jruby-shortlived
3
3
 
4
4
  #--
5
- # Copyright (c) 2008-2015 David Kellum
5
+ # Copyright (c) 2008-2016 David Kellum
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License"); you
8
8
  # may not use this file except in compliance with the License. You
@@ -34,6 +34,7 @@ require 'rjack-jetty/rewrite'
34
34
  require 'rjack-jetty/test-servlets'
35
35
 
36
36
  require 'net/http'
37
+ require 'openssl'
37
38
 
38
39
  class TestJetty < MiniTest::Unit::TestCase
39
40
  include RJack::Jetty
@@ -47,6 +48,24 @@ class TestJetty < MiniTest::Unit::TestCase
47
48
  factory
48
49
  end
49
50
 
51
+ def test_parse_inherit_channel
52
+ factory = default_factory
53
+ factory.connections = [ 'tcp://127.0.0.1?inherit_channel=true',
54
+ { scheme: 'tcp', inherit_channel: true },
55
+ 'tcp://127.0.0.1?inherit_channel=false',
56
+ { scheme: 'tcp', inherit_channel: false },
57
+ 'tcp://127.0.0.1?inherit_channel=nil',
58
+ { scheme: 'tcp', inherit_channel: nil } ]
59
+ server = factory.create
60
+ connectors = server.connectors
61
+ assert( connectors[0].inherit_channel )
62
+ assert( connectors[1].inherit_channel )
63
+ assert( !connectors[2].inherit_channel )
64
+ assert( !connectors[3].inherit_channel )
65
+ assert( !connectors[4].inherit_channel )
66
+ assert( !connectors[5].inherit_channel )
67
+ end
68
+
50
69
  def test_start_stop
51
70
  10.times do
52
71
  factory = default_factory
@@ -190,7 +209,10 @@ class TestJetty < MiniTest::Unit::TestCase
190
209
  def get( path, port, scheme = :tcp )
191
210
  args = [ 'localhost', port, nil, nil, nil, nil ]
192
211
  if scheme == :ssl
193
- args << { use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE }
212
+ args << { use_ssl: true,
213
+ # From https://wiki.mozilla.org/Security/Server_Side_TLS (intermediate)
214
+ ciphers: "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA",
215
+ verify_mode: OpenSSL::SSL::VERIFY_NONE }
194
216
  end
195
217
  Net::HTTP.start( *args ) do |http|
196
218
  http.open_timeout = 1.0
data/webapps/test.war CHANGED
Binary file
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjack-jetty
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.6.0
4
+ version: 9.3.7.0
5
5
  platform: java
6
6
  authors:
7
7
  - David Kellum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - '>='
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
18
  version: 1.6.5
19
- - - <
19
+ - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '1.8'
22
22
  name: rjack-slf4j
@@ -24,16 +24,16 @@ dependencies:
24
24
  type: :development
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.6.5
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1.8'
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ~>
36
+ - - "~>"
37
37
  - !ruby/object:Gem::Version
38
38
  version: '1.2'
39
39
  name: rjack-logback
@@ -41,13 +41,13 @@ dependencies:
41
41
  type: :development
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ~>
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - ~>
50
+ - - "~>"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 4.7.4
53
53
  name: minitest
@@ -55,13 +55,13 @@ dependencies:
55
55
  type: :development
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 4.7.4
61
61
  - !ruby/object:Gem::Dependency
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - ~>
64
+ - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 4.0.1
67
67
  name: rdoc
@@ -69,13 +69,13 @@ dependencies:
69
69
  type: :development
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ~>
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 4.0.1
75
75
  - !ruby/object:Gem::Dependency
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ~>
78
+ - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '2.1'
81
81
  name: rjack-tarpit
@@ -83,7 +83,7 @@ dependencies:
83
83
  type: :development
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ~>
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.1'
89
89
  description:
@@ -106,17 +106,17 @@ files:
106
106
  - lib/rjack-jetty/base.rb
107
107
  - lib/rjack-jetty/client.rb
108
108
  - lib/rjack-jetty/javax.servlet-api-3.1.0.jar
109
- - lib/rjack-jetty/jetty-client-9.3.6.v20151106.jar
110
- - lib/rjack-jetty/jetty-continuation-9.3.6.v20151106.jar
111
- - lib/rjack-jetty/jetty-http-9.3.6.v20151106.jar
112
- - lib/rjack-jetty/jetty-io-9.3.6.v20151106.jar
113
- - lib/rjack-jetty/jetty-rewrite-9.3.6.v20151106.jar
114
- - lib/rjack-jetty/jetty-security-9.3.6.v20151106.jar
115
- - lib/rjack-jetty/jetty-server-9.3.6.v20151106.jar
116
- - lib/rjack-jetty/jetty-servlet-9.3.6.v20151106.jar
117
- - lib/rjack-jetty/jetty-util-9.3.6.v20151106.jar
118
- - lib/rjack-jetty/jetty-webapp-9.3.6.v20151106.jar
119
- - lib/rjack-jetty/jetty-xml-9.3.6.v20151106.jar
109
+ - lib/rjack-jetty/jetty-client-9.3.7.v20160115.jar
110
+ - lib/rjack-jetty/jetty-continuation-9.3.7.v20160115.jar
111
+ - lib/rjack-jetty/jetty-http-9.3.7.v20160115.jar
112
+ - lib/rjack-jetty/jetty-io-9.3.7.v20160115.jar
113
+ - lib/rjack-jetty/jetty-rewrite-9.3.7.v20160115.jar
114
+ - lib/rjack-jetty/jetty-security-9.3.7.v20160115.jar
115
+ - lib/rjack-jetty/jetty-server-9.3.7.v20160115.jar
116
+ - lib/rjack-jetty/jetty-servlet-9.3.7.v20160115.jar
117
+ - lib/rjack-jetty/jetty-util-9.3.7.v20160115.jar
118
+ - lib/rjack-jetty/jetty-webapp-9.3.7.v20160115.jar
119
+ - lib/rjack-jetty/jetty-xml-9.3.7.v20160115.jar
120
120
  - lib/rjack-jetty/rewrite.rb
121
121
  - lib/rjack-jetty/rjack-jetty-1.0.jar
122
122
  - lib/rjack-jetty/test-servlets.rb
@@ -132,18 +132,18 @@ licenses: []
132
132
  metadata: {}
133
133
  post_install_message:
134
134
  rdoc_options:
135
- - --main
135
+ - "--main"
136
136
  - README.rdoc
137
137
  require_paths:
138
138
  - lib
139
139
  required_ruby_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - '>='
146
+ - - ">="
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []