fishwife 1.4.1-java → 1.5.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,16 +1,8 @@
1
- === 1.4.1 (2013-5-7)
2
- * Override Rack::Server to disable the default inclusion of
3
- Rack::Chunked middleware with "development" or "deployment"
4
- environments. Otherwise Jetty may treat the chunked transfer-encoded
5
- body as literal. The Rack::Server is used for example, when started
6
- via `fishwife` or `rackup`. Note: Sinatra 1.4.x now honors these
7
- middleware, exposing this problem as fishwife #5.
8
-
9
- Also note that Rack::ContentLength is included by default with these
10
- same environments, but is not included in other environments or
11
- startup paths. Sinatra ensures the Content-Length itself. If not
12
- using Sinatra or comparable, including `use Rack::ContentLength` is
13
- advisable.
1
+ === 1.5.0 (2013-3-9)
2
+ * Upgrade to rack ~> 1.5.2
3
+ * Upgrade to rjack-jetty ~> 9.0.0 (>= 9.0.0.5/v20130308 release)
4
+ * Upgrade/narrow to rjack-slf4j ~> 1.7.2, -logback ~> 1.2 (dev)
5
+ * Upgrade to json ~> 1.7.7, rspec ~> 2.13.0 (dev)
14
6
 
15
7
  === 1.4.0 (2012-12-13)
16
8
  * Upgrade/broaden to rjack-jetty [7.6.7,9.1). This includes 9.0.0.0
data/Manifest.txt CHANGED
@@ -17,4 +17,4 @@ spec/spec_helper.rb
17
17
  spec/test_app.rb
18
18
  spec/data/hello.txt
19
19
  spec/data/reddit-icon.png
20
- lib/fishwife/fishwife-1.4.1.jar
20
+ lib/fishwife/fishwife-1.5.0.jar
data/example/config.ru CHANGED
@@ -1,5 +1,5 @@
1
- # -*- ruby -*-
2
- #\ -s Fishwife -p 9297
1
+ #\ -s Fishwife -p 9297 -O request_log_file=stderr -E none
2
+ # The above is equivalent to 'rackup [options]'
3
3
 
4
4
  # We don't assume SLF4J log output handler when launching via
5
5
  # 'rackup', so you should do something like this here.
@@ -7,4 +7,6 @@
7
7
  require 'rjack-logback'
8
8
  RJack::Logback.config_console( :stderr => true, :thread => true )
9
9
 
10
- run proc { [ 200, {"Content-Type" => "text/plain"}, ["Hello", " world!\n"] ] }
10
+ use Rack::ContentLength
11
+
12
+ run lambda { |env| [200, { "Content-Type" => "text/plain" }, ["Hello"]] }
data/example/giant.ru CHANGED
@@ -1,5 +1,5 @@
1
- # -*- ruby -*-
2
1
  #\ -s Fishwife -p 9297 -E production
2
+ # -*- ruby -*-
3
3
 
4
4
  require 'rjack-logback'
5
5
  RJack::Logback.config_console( :stderr => true, :thread => true )
data/lib/fishwife/base.rb CHANGED
@@ -15,6 +15,6 @@
15
15
  #++
16
16
 
17
17
  module Fishwife
18
- VERSION = '1.4.1'
18
+ VERSION = '1.5.0'
19
19
  LIB_DIR = File.dirname( __FILE__ )
20
20
  end
@@ -15,33 +15,8 @@
15
15
  #++
16
16
 
17
17
  require 'fishwife'
18
- require 'rack/server'
19
- require 'rack/chunked'
20
18
 
21
19
  module Rack
22
-
23
- class Server
24
- alias orig_middleware middleware
25
-
26
- # Override to remove Rack::Chunked middleware from defaults of any
27
- # environment. Rack::Chunked doesn't play nice with Jetty which
28
- # does its own chunking. Unfortunately rack doesn't have a better
29
- # way to indicate this incompatibility.
30
- def middleware
31
- mw = Hash.new { |h,k| h[k] = [] }
32
- orig_middleware.each do |env, wares|
33
- mw[ env ] = cream( wares )
34
- end
35
- mw
36
- end
37
-
38
- def cream( wares )
39
- wares.reject do |w|
40
- w == Rack::Chunked || ( w.is_a?( Array ) && w.first == Rack::Chunked )
41
- end
42
- end
43
- end
44
-
45
20
  module Handler
46
21
  # Rack expects Rack::Handler::Fishwife via require 'rack/handler/fishwife'
47
22
  class Fishwife
data/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
  <groupId>fishwife</groupId>
5
5
  <artifactId>fishwife</artifactId>
6
6
  <packaging>jar</packaging>
7
- <version>1.4.1</version>
7
+ <version>1.5.0</version>
8
8
  <name>Fishwife Java Extension</name>
9
9
 
10
10
  <properties>
@@ -72,7 +72,7 @@ describe Fishwife do
72
72
  response = get("/echo")
73
73
  response.code.should == "200"
74
74
  content = JSON.parse(response.body)
75
- content["rack.version"].should == [ 1, 1 ]
75
+ content["rack.version"].should == [ 1, 2 ]
76
76
  content["rack.multithread"].should be_true
77
77
  content["rack.multiprocess"].should be_false
78
78
  content["rack.run_once"].should be_false
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: fishwife
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.1
5
+ version: 1.5.0
6
6
  platform: java
7
7
  authors:
8
8
  - David Kellum
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-08 00:00:00.000000000 Z
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -17,13 +17,13 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 1.4.1
20
+ version: 1.5.2
21
21
  none: false
22
22
  requirement: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.1
26
+ version: 1.5.2
27
27
  none: false
28
28
  prerelease: false
29
29
  type: :runtime
@@ -31,21 +31,21 @@ dependencies:
31
31
  name: rjack-jetty
32
32
  version_requirements: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - ~>
35
35
  - !ruby/object:Gem::Version
36
- version: 7.6.7
37
- - - <
36
+ version: 9.0.0
37
+ - - ! '>='
38
38
  - !ruby/object:Gem::Version
39
- version: '9.1'
39
+ version: 9.0.0.5
40
40
  none: false
41
41
  requirement: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - ! '>='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 7.6.7
46
- - - <
45
+ version: 9.0.0
46
+ - - ! '>='
47
47
  - !ruby/object:Gem::Version
48
- version: '9.1'
48
+ version: 9.0.0.5
49
49
  none: false
50
50
  prerelease: false
51
51
  type: :runtime
@@ -53,21 +53,15 @@ dependencies:
53
53
  name: rjack-slf4j
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ! '>='
57
- - !ruby/object:Gem::Version
58
- version: 1.6.5
59
- - - <
56
+ - - ~>
60
57
  - !ruby/object:Gem::Version
61
- version: '1.8'
58
+ version: 1.7.2
62
59
  none: false
63
60
  requirement: !ruby/object:Gem::Requirement
64
61
  requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: 1.6.5
68
- - - <
62
+ - - ~>
69
63
  - !ruby/object:Gem::Version
70
- version: '1.8'
64
+ version: 1.7.2
71
65
  none: false
72
66
  prerelease: false
73
67
  type: :runtime
@@ -77,13 +71,13 @@ dependencies:
77
71
  requirements:
78
72
  - - ~>
79
73
  - !ruby/object:Gem::Version
80
- version: 1.7.5
74
+ version: 1.7.7
81
75
  none: false
82
76
  requirement: !ruby/object:Gem::Requirement
83
77
  requirements:
84
78
  - - ~>
85
79
  - !ruby/object:Gem::Version
86
- version: 1.7.5
80
+ version: 1.7.7
87
81
  none: false
88
82
  prerelease: false
89
83
  type: :development
@@ -93,13 +87,13 @@ dependencies:
93
87
  requirements:
94
88
  - - ~>
95
89
  - !ruby/object:Gem::Version
96
- version: '1.2'
90
+ version: '1.5'
97
91
  none: false
98
92
  requirement: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - ~>
101
95
  - !ruby/object:Gem::Version
102
- version: '1.2'
96
+ version: '1.5'
103
97
  none: false
104
98
  prerelease: false
105
99
  type: :development
@@ -109,13 +103,13 @@ dependencies:
109
103
  requirements:
110
104
  - - ~>
111
105
  - !ruby/object:Gem::Version
112
- version: 2.8.0
106
+ version: 2.13.0
113
107
  none: false
114
108
  requirement: !ruby/object:Gem::Requirement
115
109
  requirements:
116
110
  - - ~>
117
111
  - !ruby/object:Gem::Version
118
- version: 2.8.0
112
+ version: 2.13.0
119
113
  none: false
120
114
  prerelease: false
121
115
  type: :development
@@ -164,7 +158,7 @@ files:
164
158
  - spec/test_app.rb
165
159
  - spec/data/hello.txt
166
160
  - spec/data/reddit-icon.png
167
- - lib/fishwife/fishwife-1.4.1.jar
161
+ - lib/fishwife/fishwife-1.5.0.jar
168
162
  homepage: http://github.com/dekellum/fishwife
169
163
  licenses: []
170
164
  post_install_message: