Releases: matsumotory/ngx_mruby
Releases · matsumotory/ngx_mruby
ngx_mruby v1.19.4
ngx_mruby v1.19.3
ngx_mruby v1.19.2
- Update nginx to v1.11.11 #273 @hfm
- [Experimental] Support ACME auto ssl management and example.conf #274 @matsumotory
ngx_mruby v1.19.1
- Fix typo of new directive name,
mruby_enable_read_request_body
#271 @matsumotory
ngx_mruby v1.19.0
-
Fix bug: issue-268 and add new directive for for read body #269 @matsumotory
- If you use request body as Ruby method, you must use
mruby_enable_read_reqeust_body on;
on location config as the following:
- If you use request body as Ruby method, you must use
-
nginx.conf
location /issue-268 {
mruby_enable_read_reqeust_body on; # here
mruby_access_handler_code '
req = Nginx::Request.new
Nginx.log Nginx::LOG_ERR, "method:#{req.method}"
rc = req.read_body
body = req.get_body
Nginx.log Nginx::LOG_ERR, "rc:#{rc}"
Nginx.log Nginx::LOG_ERR, "body:#{body}"
Userdata.new.req_body = body
';
mruby_content_handler_code '
Nginx.rputs Userdata.new.req_body
';
}
- test
t.assert('ngx_mruby - BUG: request_body issue 268', 'location /issue-268') do
res = `./test/t/issue-268-test.rb`.split("\r\n\r\n")[1]
t.assert_equal %({\"hello\": \"ngx_mruby\"}\n), res
end
./test/t/issue-268-test.rb
#!/usr/bin/env ruby
require 'socket'
request_body = %({"hello": "ngx_mruby"})
headers = <<HEAD.gsub("\n", "\r\n")
POST /issue-268 HTTP/1.0
Content-Type: application/json
User-Agent: issue-268-test
Content-Length: #{request_body.length}
HEAD
Socket.tcp("localhost", 58080) do |s|
s.print headers
s.print "\r\n"
sleep 0.3 # <==== important!
s.print request_body
s.close_write
puts s.read
end
ngx_mruby v1.18.10
- Add stream ip and port methods #264 by @matsumotory
- Fix bug: forgot ntohs for Nginx::SSL#local_port #265 by @matsumotory
ngx_mruby v1.18.9
- Add execute permission to build.sh and test.sh for lesser typing #256 by @hfm
- Run
make clean
ormake clobber
, remove config #257 by @hfm - Supress stderr of
ps -C nginx
if nginx not running #258 by @hfm - Remove matsumotory/mruby-ngx-mruby-ext. #259 by @yyamano
- Update nginx to 1.11.9 #260 by @hfm
- Updated the bundled mruby to the latest. #262 by @monochromegane
- Add Nginx::SSL#local_port #263 by @matsumotory
ngx_mruby v1.18.8
- Fix comment typos. Non functional changes. #255 by @yyamano
- Use RSTRING_PTR() instead of mrb_str_to_cstr() to avoid extra memory allocation #254 by @yyamano
- Bug: transfer closed with any bytes remaining to read using Nginx::Filter #253 by @matsumotory
- Refactor: combine build_config.rb and build_config_dynamic.rb into one #252 by @hfm
- Refactor log(errlogger) methods in ngx_mruby #251 by @hfm
- Update nginx to v1.11.8 #250 by @hfm
- Managed string data in nginx pool for unexpected GC for filter phase #249 by @matsumotory
- Add me? #248 by @hfm
- Rename matsumoto-r to matsumotory (GitHub Account) #247 by @hfm
- Update nginx to v1.11.7 and v1.10.2 #246 by @hfm
- Remove dead code and fix typo in commnet. Non functional changes. #244 by @yyamano
- Refactoring: Remove mruby_test #243 by @yyamano
- Remove mrbgems_config_dynamic at clean time. #241 by @yyamano
- refactoring ngx_mrb_rputs() and ngx_mrb_echo() #240 by @yyamano
- Use RSTRING_LEN() instead of as.heap.ptr to fix SIGSEGV. Fixed #238 #239 by @yyamano
- Refactor ngx_http_mruby_set_der_certificate() #237 by @yyamano
- Adjust include order to fix SIGSEGV on 32bit linux. Fixed #235. #236 by @yyamano
- Fix #229 #234 by @yyamano
- Update README again #233 by @matugm
- Update README.md #232 by @matugm
- Update nginx to v1.11.6 #231 by @hfm
- Fix a typo #228 by @kenhys
- Fix typos in error message #227 by @kenhys
- Supporting out-of-tree mruby build #222 @kenhys
- In nginx 1.11.5, it can omit --without-stream_access_module option from test.sh #223 @hfm
- Fix missing io header file to build on MinGW #224 @kenhys
- Remove extra declaration of
size_t len
#226 @hfm - Fix comment typos. Non functional changes.
ngx_mruby v1.18.7
ngx_mruby v1.18.6
- Fix openssl version compatibility #218 @matsumoto-r
- Initialize cert data by Nginx::SSL#new #219 @matsumoto-r
- Remove null termination from Nginx.echo ref #213 @matsumoto-r