http_parser.rb 0.5.1 → 0.5.3
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.
- data/.gitmodules +1 -1
- data/Gemfile.lock +6 -6
- data/LICENSE-MIT +20 -0
- data/README.md +1 -1
- data/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java +68 -11
- data/ext/ruby_http_parser/ruby_http_parser.c +80 -8
- data/ext/ruby_http_parser/vendor/http-parser/LICENSE-MIT +1 -1
- data/ext/ruby_http_parser/vendor/http-parser/http_parser.c +52 -10
- data/ext/ruby_http_parser/vendor/http-parser/http_parser.h +3 -1
- data/ext/ruby_http_parser/vendor/http-parser/test.c +89 -3
- data/ext/ruby_http_parser/vendor/http-parser-java/LICENSE-MIT +26 -1
- data/ext/ruby_http_parser/vendor/http-parser-java/README.md +23 -143
- data/ext/ruby_http_parser/vendor/http-parser-java/TODO +3 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/build.xml +74 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/ext/primitives.jar +0 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.c +115 -61
- data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.h +19 -3
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPCallback.java +8 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPDataCallback.java +34 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPErrorCallback.java +12 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPException.java +4 -2
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPMethod.java +64 -52
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPParser.java +5 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserSettings.java +323 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/{lolevel/Util.java → Util.java} +27 -28
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPParser.java +259 -85
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/ParserSettings.java +1 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Message.java +324 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Requests.java +69 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Responses.java +51 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Test.java +15 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestHeaderOverflowError.java +47 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestLoaderNG.java +183 -447
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestNoOverflowLongBody.java +61 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/UnitTest.java +2 -1
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Upgrade.java +26 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Util.java +165 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/WrongContentLength.java +58 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/test.c +232 -29
- data/ext/ruby_http_parser/vendor/http-parser-java/test_permutations +1 -1
- data/ext/ruby_http_parser/vendor/http-parser-java/test_unit +1 -1
- data/ext/ruby_http_parser/vendor/http-parser-java/test_utf8 +1 -0
- data/ext/ruby_http_parser/vendor/http-parser-java/tests.dumped +154 -7
- data/ext/ruby_http_parser/vendor/http-parser-java/tests.utf8 +17 -0
- data/http_parser.rb.gemspec +8 -2
- data/lib/http_parser.rb +17 -0
- data/spec/parser_spec.rb +116 -6
- data/tasks/compile.rake +3 -1
- data/tasks/fixtures.rake +1 -1
- metadata +169 -125
- data/ext/ruby_http_parser/vendor/http-parser-java/CONTRIBUTIONS +0 -4
metadata
CHANGED
|
@@ -1,136 +1,176 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http_parser.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 13
|
|
5
|
+
prerelease:
|
|
5
6
|
segments:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
version: 0.5.
|
|
7
|
+
- 0
|
|
8
|
+
- 5
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.5.3
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
- Marc-Andre Cournoyer
|
|
14
|
+
- Aman Gupta
|
|
14
15
|
autorequire:
|
|
15
16
|
bindir: bin
|
|
16
17
|
cert_chain: []
|
|
17
18
|
|
|
18
|
-
date: 2011-01
|
|
19
|
+
date: 2011-10-01 00:00:00 -05:00
|
|
19
20
|
default_executable:
|
|
20
21
|
dependencies:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
22
|
+
- !ruby/object:Gem::Dependency
|
|
23
|
+
name: rake-compiler
|
|
24
|
+
prerelease: false
|
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
27
|
+
requirements:
|
|
28
|
+
- - ">="
|
|
29
|
+
- !ruby/object:Gem::Version
|
|
30
|
+
hash: 17
|
|
31
|
+
segments:
|
|
32
|
+
- 0
|
|
33
|
+
- 7
|
|
34
|
+
- 9
|
|
35
|
+
version: 0.7.9
|
|
36
|
+
type: :development
|
|
37
|
+
version_requirements: *id001
|
|
38
|
+
- !ruby/object:Gem::Dependency
|
|
39
|
+
name: rspec
|
|
40
|
+
prerelease: false
|
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
hash: 13
|
|
47
|
+
segments:
|
|
48
|
+
- 2
|
|
49
|
+
- 0
|
|
50
|
+
- 1
|
|
51
|
+
version: 2.0.1
|
|
52
|
+
type: :development
|
|
53
|
+
version_requirements: *id002
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: json
|
|
56
|
+
prerelease: false
|
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
59
|
+
requirements:
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
hash: 11
|
|
63
|
+
segments:
|
|
64
|
+
- 1
|
|
65
|
+
- 4
|
|
66
|
+
- 6
|
|
67
|
+
version: 1.4.6
|
|
68
|
+
type: :development
|
|
69
|
+
version_requirements: *id003
|
|
70
|
+
- !ruby/object:Gem::Dependency
|
|
71
|
+
name: yajl-ruby
|
|
72
|
+
prerelease: false
|
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
75
|
+
requirements:
|
|
76
|
+
- - ">="
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
hash: 61
|
|
79
|
+
segments:
|
|
80
|
+
- 0
|
|
81
|
+
- 8
|
|
82
|
+
- 1
|
|
83
|
+
version: 0.8.1
|
|
84
|
+
type: :development
|
|
85
|
+
version_requirements: *id004
|
|
63
86
|
description: Ruby bindings to http://github.com/ry/http-parser and http://github.com/a2800276/http-parser.java
|
|
64
87
|
email:
|
|
65
|
-
|
|
66
|
-
|
|
88
|
+
- macournoyer@gmail.com
|
|
89
|
+
- aman@tmm1.net
|
|
67
90
|
executables: []
|
|
68
91
|
|
|
69
92
|
extensions:
|
|
70
|
-
|
|
93
|
+
- ext/ruby_http_parser/extconf.rb
|
|
71
94
|
extra_rdoc_files: []
|
|
72
95
|
|
|
73
96
|
files:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
97
|
+
- .gitignore
|
|
98
|
+
- .gitmodules
|
|
99
|
+
- Gemfile
|
|
100
|
+
- Gemfile.lock
|
|
101
|
+
- LICENSE-MIT
|
|
102
|
+
- README.md
|
|
103
|
+
- Rakefile
|
|
104
|
+
- bench/thin.rb
|
|
105
|
+
- ext/ruby_http_parser/.gitignore
|
|
106
|
+
- ext/ruby_http_parser/RubyHttpParserService.java
|
|
107
|
+
- ext/ruby_http_parser/ext_help.h
|
|
108
|
+
- ext/ruby_http_parser/extconf.rb
|
|
109
|
+
- ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java
|
|
110
|
+
- ext/ruby_http_parser/ruby_http_parser.c
|
|
111
|
+
- ext/ruby_http_parser/vendor/.gitkeep
|
|
112
|
+
- http_parser.rb.gemspec
|
|
113
|
+
- lib/http/parser.rb
|
|
114
|
+
- lib/http_parser.rb
|
|
115
|
+
- spec/parser_spec.rb
|
|
116
|
+
- spec/spec_helper.rb
|
|
117
|
+
- spec/support/requests.json
|
|
118
|
+
- spec/support/responses.json
|
|
119
|
+
- tasks/compile.rake
|
|
120
|
+
- tasks/fixtures.rake
|
|
121
|
+
- tasks/spec.rake
|
|
122
|
+
- tasks/submodules.rake
|
|
123
|
+
- ext/ruby_http_parser/vendor/http-parser/CONTRIBUTIONS
|
|
124
|
+
- ext/ruby_http_parser/vendor/http-parser/http_parser.c
|
|
125
|
+
- ext/ruby_http_parser/vendor/http-parser/http_parser.h
|
|
126
|
+
- ext/ruby_http_parser/vendor/http-parser/LICENSE-MIT
|
|
127
|
+
- ext/ruby_http_parser/vendor/http-parser/Makefile
|
|
128
|
+
- ext/ruby_http_parser/vendor/http-parser/README.md
|
|
129
|
+
- ext/ruby_http_parser/vendor/http-parser/test.c
|
|
130
|
+
- ext/ruby_http_parser/vendor/http-parser-java/build.xml
|
|
131
|
+
- ext/ruby_http_parser/vendor/http-parser-java/compile
|
|
132
|
+
- ext/ruby_http_parser/vendor/http-parser-java/ext/primitives.jar
|
|
133
|
+
- ext/ruby_http_parser/vendor/http-parser-java/http_parser.c
|
|
134
|
+
- ext/ruby_http_parser/vendor/http-parser-java/http_parser.h
|
|
135
|
+
- ext/ruby_http_parser/vendor/http-parser-java/LICENSE-MIT
|
|
136
|
+
- ext/ruby_http_parser/vendor/http-parser-java/Makefile
|
|
137
|
+
- ext/ruby_http_parser/vendor/http-parser-java/README.md
|
|
138
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPCallback.java
|
|
139
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPDataCallback.java
|
|
140
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPErrorCallback.java
|
|
141
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPException.java
|
|
142
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPMethod.java
|
|
143
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPParser.java
|
|
144
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPCallback.java
|
|
145
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPDataCallback.java
|
|
146
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPErrorCallback.java
|
|
147
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPParser.java
|
|
148
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/ParserSettings.java
|
|
149
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserSettings.java
|
|
150
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
|
|
151
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/Util.java
|
|
152
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Message.java
|
|
153
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Requests.java
|
|
154
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Responses.java
|
|
155
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Test.java
|
|
156
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestHeaderOverflowError.java
|
|
157
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestLoaderNG.java
|
|
158
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/TestNoOverflowLongBody.java
|
|
159
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/UnitTest.java
|
|
160
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Upgrade.java
|
|
161
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Util.java
|
|
162
|
+
- ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/WrongContentLength.java
|
|
163
|
+
- ext/ruby_http_parser/vendor/http-parser-java/test.c
|
|
164
|
+
- ext/ruby_http_parser/vendor/http-parser-java/test_permutations
|
|
165
|
+
- ext/ruby_http_parser/vendor/http-parser-java/test_unit
|
|
166
|
+
- ext/ruby_http_parser/vendor/http-parser-java/test_utf8
|
|
167
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tests.dumped
|
|
168
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tests.utf8
|
|
169
|
+
- ext/ruby_http_parser/vendor/http-parser-java/TODO
|
|
170
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tools/byte_constants.rb
|
|
171
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tools/const_char.rb
|
|
172
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tools/lowcase.rb
|
|
173
|
+
- ext/ruby_http_parser/vendor/http-parser-java/tools/parse_tests.rb
|
|
134
174
|
has_rdoc: true
|
|
135
175
|
homepage: http://github.com/tmm1/http_parser.rb
|
|
136
176
|
licenses: []
|
|
@@ -139,25 +179,29 @@ post_install_message:
|
|
|
139
179
|
rdoc_options: []
|
|
140
180
|
|
|
141
181
|
require_paths:
|
|
142
|
-
|
|
182
|
+
- lib
|
|
143
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
|
+
none: false
|
|
144
185
|
requirements:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
186
|
+
- - ">="
|
|
187
|
+
- !ruby/object:Gem::Version
|
|
188
|
+
hash: 3
|
|
189
|
+
segments:
|
|
190
|
+
- 0
|
|
191
|
+
version: "0"
|
|
150
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
|
+
none: false
|
|
151
194
|
requirements:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
195
|
+
- - ">="
|
|
196
|
+
- !ruby/object:Gem::Version
|
|
197
|
+
hash: 3
|
|
198
|
+
segments:
|
|
199
|
+
- 0
|
|
200
|
+
version: "0"
|
|
157
201
|
requirements: []
|
|
158
202
|
|
|
159
203
|
rubyforge_project:
|
|
160
|
-
rubygems_version: 1.
|
|
204
|
+
rubygems_version: 1.6.2
|
|
161
205
|
signing_key:
|
|
162
206
|
specification_version: 3
|
|
163
207
|
summary: Simple callback-based HTTP request/response parser
|