Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/matsumotory/ngx_mruby

ngx_mruby - A Fast and Memory-Efficient Web Server Extension Mechanism Using Scripting Language mruby for nginx
https://github.com/matsumotory/ngx_mruby

rename ngx_mruby to src

3187a51366f17de0ef0c002aa0487d3a298aa4e2 authored over 11 years ago by cubicdaiya <[email protected]>
Merge pull request #55 from cubicdaiya/feautre/setter_and_getter_headers_in_out

add getter and setter for r->headers_(in|out)

0944aecdacdc96ffc606d0f1d4255508b6681efc authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #54 from cubicdaiya/issues/rputs_empty

fix bug(Nginx.rputs empty string causes response-stalling)

9bbf9712231a469841a4538a9d6227eee904e078 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
add getter and setter for r->headers_(in|out)

c5d5c82dae00c780fb76b40be72cb05b25a7d389 authored over 11 years ago by cubicdaiya <[email protected]>
fix bug(Nginx.rputs empty string causes response-stalling)

example is following

Nginx.rputs("abc")
Nginx.rputs("") or Nginx.rputs(nil)
return Nginx::HTTP_OK

d4c31b5a420360a6903934dbd72bc71022325ae2 authored over 11 years ago by cubicdaiya <[email protected]>
Merge pull request #53 from cubicdaiya/feautre/add_request_member

add getters/setters and define macro for request members

1c596dc3e10ecaedf21f58b68ccfafee992f7d49 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
add getters/setters and define macro for request members

request members is following

* request_line
* unparsed_uri
* method
* protocol
* args

863e7775beebb75d30d61805801796681ac1b1b2 authored over 11 years ago by cubicdaiya <[email protected]>
Merge pull request #50 from cubicdaiya/issues/no_prototype_declaration

prototype declaration is not found

9c321a22861372d526252819fea3a66e7203fef0 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #51 from cubicdaiya/issues/unneed_comment

remove unneeded comment

ab72e2a0d424150cd8cb765da78998f77cae62dd authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
add a instance variable for saving headers, avoid compute headers again.

994b5fceeea346514c21d35168b304ec54c41a4b authored over 11 years ago by 崔峥 <[email protected]>
remove unneeded comment

861c67d1c4a61819a3fa1bdd4ad588143a63a6b9 authored over 11 years ago by cubicdaiya <[email protected]>
prototype declaration is not found

The prototype declaration of ngx_mrb_set_request_uri is not found.

3c27a9d27915f0e114835eec186f10517ccc7d33 authored over 11 years ago by cubicdaiya <[email protected]>
Cosmetic changed from #44

1d17eba3451367013f8afd6569c57ff2e71b2392 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge branch 'master' of git://github.com/charlescui/ngx_mruby into charlescui-master

7cda10a9beb7fd38eacf3b088b1ccd8a41bab530 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Update README.md

1b0dca05a222c55df357b02fb8ec5283c4ff8b3b authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #47 from cubicdaiya/issues/no_error_log_in_mruby_set

output a error log when mruby script does not exist for mruby_set

aa7cd4bae3f17b2483080ee6b92e432b69fdc906 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
output a error log when mruby script does not exist for mruby_set

a missing mruby script for mruby_set causes a failure of starting nginx.
In this case ngx_mruby ...

6dd1cb03bc2a9747f867155421c1783ed2128551 authored over 11 years ago by cubicdaiya <[email protected]>
Update README and removed mrblib.o from Makefile.in

8fb92772cb168ba2fc909de8de88951f9e8b07d1 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Support current mruby build system.

6e46a4daecd2fc497c519282e0bf3e15eae28e6a authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #45 from cubicdaiya/feature/mruby_set

add directive 'mruby_set' and 'mruby_set_inline'

a223ce85f2e3e67883985ce31588b88d976c8033 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
add directive 'mruby_set' and 'mruby_set_inline'

These directives assign a result of mruby script to a variable.

mruby_set_inline $res1 "ARGV[0]...

8aed47e9b0ce1b9c8830f90a11dff6f5b2dc924b authored over 11 years ago by cubicdaiya <[email protected]>
rewrite example/nginx.conf, add /headers uri test case.

105bf3c885e6d507b0cc362c4b0e0dd641c43c12 authored over 11 years ago by 崔峥 <[email protected]>
add get request headers method for Nginx::Request instance.

c30dc2c126b978584fbd78ac509ec47004a71ed7 authored over 11 years ago by 崔峥 <[email protected]>
add swp file ignore

4edaaf24fcfaa5ad71bf7b71e0ccee668b62e21c authored over 11 years ago by 崔峥 <[email protected]>
Merge pull request #42 from charlescui/master

fix bug #41. nginx sample conf is error.

2e1118ace064793fad97e5329f4e61ebb17e42d8 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
fix bug #41. nginx sample conf is error.

3b1c799f31fce4c8d2c82ab9925509918d3cc098 authored over 11 years ago by 崔峥 <[email protected]>
Merge pull request #40 from cubicdaiya/issues/redefine_DONE

DONE is already defined in mruby

3b42edd878b429a81a93da72175a20fac80544d1 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
DONE is already defined in mruby

* mruby/src/init.c

cfbdae47ede5b9964002feb01bca948c5988cf18 authored over 11 years ago by cubicdaiya <[email protected]>
Merge pull request #38 from cubicdaiya/feature/extend_scope_for_handlers

extend context scope for handlers

b1ad0398f859a7b1ce0a968543acad4b52cdaafc authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #37 from cubicdaiya/issues/hello.mrb

remove return(refs #35 #36)

9e9c854e3fc23be9e1159b02f70e5c492bc6ef61 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
extend scope for handlers

49ecb3c0c808fc51943a6b29ecc2bd9785c648cb authored over 11 years ago by cubicdaiya <[email protected]>
remove return(refs #35 #36)

hello.mrb is used the example for mruby_content_handler.
But in this case, ngx_mruby does not re...

b2eb5e96d5465db981e44048f1a5c2a99c256c39 authored over 11 years ago by cubicdaiya <[email protected]>
User mrb_irep_free() and initialize exc

3c76ebd08d6fc03ccea13ec4450cd01677cf36df authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Fix default return code; based @cubicdaiya #31 code

7b5bbab82f86138cfac958d774f0cbfdc53a3d47 authored over 11 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #29 from cubicdaiya/improvements/unify_indent

unify indent

50bf5f3c309052f418734cb6c9078ec7507cc02c authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #28 from cubicdaiya/issues/memory_corruption

fix memory corruption error

0ba4e973cefdc8debd9d88ed22747a6164ba80f1 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
unify indent

eed82df6ca64a3a84fd746942ff5a70c9934dcb8 authored almost 12 years ago by cubicdaiya <[email protected]>
fix memory corruption error

If ngx_mrb_irep_clean is called when mruby_cache is on,
memory corruption error occurs.

f7c5ca151d1daa907bf09385da6564eff4130700 authored almost 12 years ago by cubicdaiya <[email protected]>
Improve mermoy consumption. Add ngx_mrb_irep_clean.

a83289208f245385e0a047f54d4e337c115a1196 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add ngx_mrb_gencode_state and call function from ngx_http_mruby_state_reinit_from_file changed ngx_mrb_init_file to ngx_mrb_gencode_state

8c2147e7e05e9c70a8b5b7740b57c5be06535588 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
move state functions to ngx_http_mruby_state

8fbbf8761e9057b22a74037bf1ff008ede855868 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add ngx_http_mruby_state and rename ngx_http_mruby_hook to ngx_http_mruby_directive

c776f4dfa3f1fd7dfbe8eba27d9d9cfbe0921f67 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #23 from cubicdaiya/improvements/source_cleaning

divide ngx_http_mruby_module.(c|h) into ngx_http_mruby_(handler|hook).(c...

fb98de5e21cb06657ba2b47ca7d74519ed03cffb authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #24 from cubicdaiya/issues/mruby_cached_is_not_enabled

'mruby_cache' is not enabled in (post_read|server_rewrite)_handler

2e38f9edb1879306ee56b270425afe3f4d3c3c65 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #26 from cubicdaiya/issues/mrb_str_new2_removed

replace mrb_str_new2 mrb_str_new_cstr

aa13d82a60f215f4c5e8275195fec1fc5b5f72f2 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
replace mrb_str_new2 mrb_str_new_cstr

bf6276c78d0582fc6881d108afec33b1fe93d782 authored almost 12 years ago by cubicdaiya <[email protected]>
add me to AUTHORS

3d27736390a9166bc4801fd12bf87ec3dd64224e authored almost 12 years ago by cubicdaiya <[email protected]>
unify format of copyright header

e8c746130e16a6c4c004d5169c1fbf79e9c0271d authored almost 12 years ago by cubicdaiya <[email protected]>
make 'mruby_cache' enabled in (post_read|server_rewrite)_handler

Even if mruby_cache is set on in location context,
it is not enabled in (post_read|server_rewrit...

09e5c98471255bf43f70397fd987b32f7606808a authored almost 12 years ago by cubicdaiya <[email protected]>
divide ngx_http_mruby_module.(c|h) into ngx_http_mruby_(handler|hook).(c|h)

e8cd0fd41aca1af22dc1bca624a0c8543d73af66 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #22 from cubicdaiya/improvements/eval_every_time

add directive 'mruby_eval_every_time'

8e422d1a5fdce51f0aa96b8160704f25eb02190f authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
rename directive & change default behavior

* rename 'mruby_eval_every_time' to 'mruby_cache'(behavior is reverse)
* By default, 'mruby_ca...

76c29861f106b27d84c5bbf87bb4bd1734ac922b authored almost 12 years ago by cubicdaiya <[email protected]>
set 'eval_every_time' on in default & order of arguments is reverse

if 'eval_every_time' is not description in nginx.conf,
clcf->eval_every_time is not set default ...

d45b09b194ea7e25b29685960c13e1a731820913 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #21 from cubicdaiya/issues/forgot_return_status_in_example

forgot to return status code

13e6398ebf08a366a749457cff036f2ec9e6bd2f authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
add directive 'eval_every_time'

If 'eval_every_time' is on, mruby_xxx_handlers eval mrb files every time.

fc953985757e03881c63dc04b40e6fd34fef440b authored almost 12 years ago by cubicdaiya <[email protected]>
forgot to return status code

b83f50ae09a47492acf904f0d30f62dc5ed290cd authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #20 from cubicdaiya/issues/use_unaddressed_bytes

fix invalid memory access problem

6e72cfbe6a2e0d710dbde9d72513a8788cbabfc4 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #19 from cubicdaiya/issues/remove_unused

remove unused function and struct

d77b4667a56dfe679da7dde724e4639f6a93c8de authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
fix invalid memory access problem

nginx use unaddressable bytes when mruby's value is passed to nginx.

e1bf3b8051b9bbfbfe4a39f8d6225edd7886a7e7 authored almost 12 years ago by cubicdaiya <[email protected]>
remove unused function and struct

d1175bf313666271720ca3fd5dfec6f09b58a532 authored almost 12 years ago by cubicdaiya <[email protected]>
Modified .gitignore

6f3044401f45ddc64c92514aa104cadd1643e1a4 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add mruby/mruby as a submodule

20082c847f745964c37ff930a8936e620dccf2b7 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
minor cosmetic change

686a56e9da6379cb1db15f62397a1108ebb21c99 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Fix bug

bd4bf389e2167c43bab880e84ead4772b81ea8a1 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add error check for Nginx#errlogger

52ad4f69504d5794e6bb784e62061ca45de500b7 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #17 from cubicdaiya/issues/fix_typo

fix typo

66174f4054929caf837dec9596639b4eec0f7915 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
fix typo

02884b6bb6c998e9aa0ddec509343dfe00157217 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #16 from cubicdaiya/issues/error_level_type

comparison between signed and unsigned value

3e441dc0e8e9cf48a20ecd6ad5c395156b17b52e authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
fix problem comparison between signed and unsigned value

If Nginx.errlogger recives 1st args as negative number,
ngx_log_error works incorrectly.

94b1269d14e919e3a05477566bab8e8ccb7c5270 authored almost 12 years ago by cubicdaiya <[email protected]>
Add Nginx#nginx_version and Nginx#ngx_mruby_version

example:
Nginx.rputs "ngx_mruby_version: #{Nginx.ngx_mruby_version}<br>"
Nginx.r...

029103b660f6b3ee12cb4c1b23dfe502457658da authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add Nginx#errlogger

example:
Nginx.errlogger Nginx::NGX_LOG_ERR, "ngx_mruby error!"

6172744e49ec0216f7460a1766206721079c7641 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Support new build system using rake

b3a6d65c2a446960ec0f60f3687f3e6d377dcbe8 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #15 from cubicdaiya/improvements/add_inline_handlers

add inline handlers

688c95bdb753b6b2766811dbd5d46b37095ad7bb authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #14 from cubicdaiya/improvements/adjust_space

adjust space

112fe36db9aa00981b41cf6b4706b43a3f94cf29 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
add directive 'mruby_post_read_handler_code'

b1570dad3a20b83483f265f8f9580a2359f51d56 authored almost 12 years ago by cubicdaiya <[email protected]>
rename content_state -> content_inline_state

61f54a84575beb3b2bf29c7e3f29a53483f4cb4b authored almost 12 years ago by cubicdaiya <[email protected]>
add directives

* mruby_server_rewrite_handler_code
* mruby_rewrite_handler_code
* mruby_log_handler_code

a3374a8c1013eb2fc3d20633d2dca5172403f0b6 authored almost 12 years ago by cubicdaiya <[email protected]>
adjust space

e0b35c6e7d23daf0c74c87aca10dacee9012dc22 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #13 from cubicdaiya/master

make multi-rputs stabled

0a01ab8fb68c19dd4b97b2dcd54f38323b2db70c authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
(experiment) rputs supoort multi methods

8be21aa186d471d0f36c901de1ef3f40688df780 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
make multi-rputs stabled

* use nginx module context instead of mruby context
* mruby context is single on each handler...

1db88e7a524b686c27296a589d709809cbb9ac54 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #11 from cubicdaiya/improvements/strlen_once

call ngx_strlen once

70e2d97404cc5f3f016971949c0d5bb5661ba3e6 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
call ngx_strlen once

452ec12c115f46792aa24cb05694fb99e3cd4a2a authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #10 from cubicdaiya/improvements/add_ignore_patterns

add ignore patterns

8e5648d0fed379de3920fb82336258aad54075af authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #9 from cubicdaiya/issues/fix_invalid_parameter_type

fix invalid parameter type

a40a8e021e8515b832f6b86917d079a518f20789 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
add ignore patterns

f395f028eb8e8c8eeec7396ce80e9e824afb8864 authored almost 12 years ago by cubicdaiya <[email protected]>
fix invalid parameter type

* str is u_char, but strlen receives const char *(ngx_strlen casts const char * internally)
* mr...

682247b332eeab61e435f8ac1b0d775355738b05 authored almost 12 years ago by cubicdaiya <[email protected]>
Merge pull request #8 from cubicdaiya/issues/nginx_configure_fails

use '.' instead of 'source'

39ba3b67278cd3ee859824a0cbece3551de8bff6 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
use . istead of source

source does not work when sh is dash.
dash is default shell in recent linux distribution.(For ex...

ecdff6847daf1ed8f64e545451c79f025ff20470 authored almost 12 years ago by cubicdaiya <[email protected]>
Add ngx_http_mruby_module.h

8ac9df9ca2d28971290001a41e44685fc0bc7a12 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Fix config for nginx module

7e82ca34ad0775a43f98e6b660ab1b9686a02cfe authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Add example for nginx.conf

1ed83dc96d580a47e0e63c8b306034797f58df04 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
create content_type method extracted from rputs method

ae0c9511587e265953944205610c28f317d980fd authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Removed unneeded headers

64bc665087fbdc5965409c3c777b5090a56d4826 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Create ngx_http_mruby_init.c ngx_http_mruby_request.c and ngx_http_mruby_core.c

81ddb361f1d425aa45be1211fa99ea4d27749d8d authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
README changed

9c9c9072b18bf2380294e7886070ed30d28d9fbd authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
Merge pull request #7 from cubicdaiya/master

performance improvement patch

e0c5379e67ef6226a6fa49d97b69e9a309fcf732 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>
close fd for mrb_file

07d888e49bc3a22b47f0d1cc83d61f048a85d891 authored almost 12 years ago by cubicdaiya <[email protected]>
print file name occurs error(refs #7)

d5b08a297d4e9f93945d214f0f621bec01d3da2b authored almost 12 years ago by cubicdaiya <[email protected]>
Add .gitignore

be41af56f812c5cd78f51efa72af3cdc64185ba9 authored almost 12 years ago by MATSUMOTO Ryosuke <[email protected]>