kcar RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] kcar 0.7.0 - bytestream to Rack response converter
@ 2020-02-21  2:32  7% Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2020-02-21  2:32 UTC (permalink / raw)
  To: kcar-public

kcar features an HTTP parser that will convert a bytestream into a
3-element array suitable for use as a Rack response.  It is IO interface
agnostic, so it may be used with HTTP streams over Unix domain sockets,
regular files, FIFOs, StringIOs as well as traditional TCP sockets.

* homepage: https://yhbt.net/kcar/
* public inbox: kcar-public@yhbt.net
* git clone https://yhbt.net/kcar.git
* mailing list archives: https://yhbt.net/kcar-public/

Changes:

46 changes since 0.6.0 (2015-08-04):
      README: fix reference to HTTP git viewer
      doc: move site to HTTPS
      pkg.mk: avoid network for "gem install"
      gemspec: use SPDX compatible terms for the license(s)
      archive/slrnpull.conf: add a note explaining the purpose
      drop rb_str_set_len compatibility replacement
      remove rb_str_modify workaround
      TypedData C-API conversion
      test_parser: add lone CR test
      reduce parser size to 88 bytes on 64-bit
      extconf: remove unneeded -fPIC CFLAGS
      rely on String#-@ (str_uminus) to dedupe headers
      update comment about freezing values
      http: reject non-LWS CTL chars (0..31 + 127) in field values
      doc: remove references to a server
      update documentation for contributions, remove private address
      doc: minor updates to describe classes, better
      response: remove unnecessary constant alias
      response: more documentation cleanups
      favor require_relative to speed up loading
      response: remove Ruby 1.8-compatibility check
      fix signedness check on 32-bit systems
      shorten and improve readability of assertion
      HACKING: remove copy+pasted line about N
      olddoc: include NNTP archive link
      gemspec: remove olddoc dev dependency
      README: add info about mailing list subscription
      nodoc Kcar::VERSION
      pkg.mk: support VALGRIND variable for unit tests
      introduce new str_new_dd_freeze internal function
      begin implementing request parsing
      favor bitfields instead flags + macros
      implement request parsing with tests
      pkg.mk: enable warnings by default for tests
      filter_body: rename variables to be like memcpy(3)
      flesh out filter_body for request parsing
      do not assume SERVER_PORT
      do not set "HTTP/0.9" for pre-1.0 requests
      always set non-negative Content-Length for requests
      avoid String#-@ call on request parsing under Ruby 2.6
      request: set env["FRAGMENT"] for WebDAV litmus test
      extconf: fix rb_hash_aset deduplication test
      use rb_gc_register_mark_object
      website: use dark216 to save electricity
      doc: update URLs to point to YHBT.net
      doc: update git:// URLs to HTTPS

^ permalink raw reply	[relevance 7%]

* [PATCH 4/5] remove rb_str_modify workaround
  2017-03-03 20:53  6% [PATCH 0/5] miscellaneous updates Eric Wong
@ 2017-03-03 20:53  7% ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2017-03-03 20:53 UTC (permalink / raw)
  To: kcar-public

Every supported Ruby implementation has a rb_str_modify
wrapper.
---
 ext/kcar/ext_help.h | 4 ----
 ext/kcar/extconf.rb | 1 -
 2 files changed, 5 deletions(-)

diff --git a/ext/kcar/ext_help.h b/ext/kcar/ext_help.h
index d227737..a0e21e2 100644
--- a/ext/kcar/ext_help.h
+++ b/ext/kcar/ext_help.h
@@ -16,10 +16,6 @@
 #  endif
 #endif /* ! defined(OFFT2NUM) */
 
-#ifndef HAVE_RB_STR_MODIFY
-#  define rb_str_modify(x) do {} while (0)
-#endif /* ! defined(HAVE_RB_STR_MODIFY) */
-
 static inline int str_cstr_eq(VALUE val, const char *ptr, long len)
 {
   return (RSTRING_LEN(val) == len && !memcmp(ptr, RSTRING_PTR(val), len));
diff --git a/ext/kcar/extconf.rb b/ext/kcar/extconf.rb
index 3585125..7ab5b4b 100644
--- a/ext/kcar/extconf.rb
+++ b/ext/kcar/extconf.rb
@@ -5,7 +5,6 @@ dir_config("kcar")
 
 have_macro("SIZEOF_OFF_T", "ruby.h") or check_sizeof("off_t", "sys/types.h")
 have_macro("SIZEOF_LONG", "ruby.h") or check_sizeof("long", "sys/types.h")
-have_func("rb_str_modify", "ruby.h")
 
 # -fPIC is needed for Rubinius, MRI already uses it regardless
 with_cflags($CFLAGS + " -fPIC ") do
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/5] miscellaneous updates
@ 2017-03-03 20:53  6% Eric Wong
  2017-03-03 20:53  7% ` [PATCH 4/5] remove rb_str_modify workaround Eric Wong
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2017-03-03 20:53 UTC (permalink / raw)
  To: kcar-public

Mainly modernizing and stealing some features from unicorn,
and perhaps prototyping some new ones.

Will still need to shrink the struct a bit while ensuring
we don't exceed limits and such.

Eric Wong (5):
      gemspec: use SPDX compatible terms for the license(s)
      archive/slrnpull.conf: add a note explaining the purpose
      drop rb_str_set_len compatibility replacement
      remove rb_str_modify workaround
      TypedData C-API conversion

 archive/slrnpull.conf |  3 +++
 ext/kcar/ext_help.h   | 24 ------------------------
 ext/kcar/extconf.rb   |  2 --
 ext/kcar/kcar.rl      | 36 ++++++++++++++++++++++++------------
 kcar.gemspec          |  8 +++++++-
 test/test_parser.rb   |  8 ++++++++
 6 files changed, 42 insertions(+), 39 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-03-03 20:53  6% [PATCH 0/5] miscellaneous updates Eric Wong
2017-03-03 20:53  7% ` [PATCH 4/5] remove rb_str_modify workaround Eric Wong
2020-02-21  2:32  7% [ANN] kcar 0.7.0 - bytestream to Rack response converter Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kcar.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).