Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-llhttp-ffi for 
openSUSE:Factory checked in at 2021-09-23 23:04:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-llhttp-ffi (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-llhttp-ffi.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-llhttp-ffi"

Thu Sep 23 23:04:21 2021 rev:2 rq:921169 version:0.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-llhttp-ffi/rubygem-llhttp-ffi.changes    
2021-08-25 21:00:17.464997124 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-llhttp-ffi.new.1899/rubygem-llhttp-ffi.changes
  2021-09-23 23:04:30.324343231 +0200
@@ -1,0 +2,8 @@
+Thu Sep 23 07:18:43 UTC 2021 - Dan ??erm??k <dcer...@suse.com>
+
+- New upstream release 0.4.0
+
+  * add #25 Add support for resetting the parser (bryanp)
+  * chg #23 Update ffi to llhttp 6.0.5 (bryanp)
+
+-------------------------------------------------------------------

Old:
----
  llhttp-ffi-0.3.1.gem

New:
----
  llhttp-ffi-0.4.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-llhttp-ffi.spec ++++++
--- /var/tmp/diff_new_pack.Y52aHC/_old  2021-09-23 23:04:30.940343690 +0200
+++ /var/tmp/diff_new_pack.Y52aHC/_new  2021-09-23 23:04:30.944343694 +0200
@@ -25,7 +25,7 @@
 # of those fields
 #
 Name:           rubygem-llhttp-ffi
-Version:        0.3.1
+Version:        0.4.0
 Release:        0
 Summary:        Ruby FFI bindings for llhttp
 License:        MPL-2.0

++++++ llhttp-ffi-0.3.1.gem -> llhttp-ffi-0.4.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2021-06-26 02:33:51.000000000 +0200
+++ new/CHANGELOG.md    2021-09-10 00:19:36.000000000 +0200
@@ -1,3 +1,10 @@
+## v0.4.0
+
+*released on 2021-09-09*
+
+  * `add` [#25](https://github.com/metabahn/llhttp/pull/25) Add support for 
resetting the parser ([bryanp](https://github.com/bryanp))
+  * `chg` [#23](https://github.com/metabahn/llhttp/pull/23) Update ffi to 
llhttp 6.0.5 ([bryanp](https://github.com/bryanp))
+
 ## [v0.3.1](https://github.com/metabahn/llhttp/releases/tag/2021-06-25)
 
 *released on 2021-06-25*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2021-06-26 02:33:51.000000000 +0200
+++ new/README.md       2021-09-10 00:19:36.000000000 +0200
@@ -33,5 +33,5 @@
 
 # Reset the parser for the next request:
 #
-parser.finish
+parser.reset
 ```
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/llhttp/api.c new/ext/llhttp/api.c
--- old/ext/llhttp/api.c        2021-06-26 02:33:51.000000000 +0200
+++ new/ext/llhttp/api.c        2021-09-10 00:19:36.000000000 +0200
@@ -69,17 +69,23 @@
 extern int wasm_on_status(llhttp_t* p, const char* at, size_t length);
 extern int wasm_on_header_field(llhttp_t* p, const char* at, size_t length);
 extern int wasm_on_header_value(llhttp_t* p, const char* at, size_t length);
-extern int wasm_on_headers_complete(llhttp_t * p);
+extern int wasm_on_headers_complete(llhttp_t * p, int status_code,
+                                    uint8_t upgrade, int should_keep_alive);
 extern int wasm_on_body(llhttp_t* p, const char* at, size_t length);
 extern int wasm_on_message_complete(llhttp_t * p);
 
+static int wasm_on_headers_complete_wrap(llhttp_t* p) {
+  return wasm_on_headers_complete(p, p->status_code, p->upgrade,
+                                  llhttp_should_keep_alive(p));
+}
+
 const llhttp_settings_t wasm_settings = {
   wasm_on_message_begin,
   wasm_on_url,
   wasm_on_status,
   wasm_on_header_field,
   wasm_on_header_value,
-  wasm_on_headers_complete,
+  wasm_on_headers_complete_wrap,
   wasm_on_body,
   wasm_on_message_complete,
   NULL,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/llhttp/llhttp.c new/ext/llhttp/llhttp.c
--- old/ext/llhttp/llhttp.c     2021-06-26 02:33:51.000000000 +0200
+++ new/ext/llhttp/llhttp.c     2021-09-10 00:19:36.000000000 +0200
@@ -1126,7 +1126,7 @@
     case s_n_llhttp__internal__n_consume_content_length:
     s_n_llhttp__internal__n_consume_content_length: {
       size_t avail;
-      size_t need;
+      uint64_t need;
 
       avail = endp - p;
       need = state->content_length;
@@ -1481,7 +1481,7 @@
     case s_n_llhttp__internal__n_consume_content_length_1:
     s_n_llhttp__internal__n_consume_content_length_1: {
       size_t avail;
-      size_t need;
+      uint64_t need;
 
       avail = endp - p;
       need = state->content_length;
@@ -8700,7 +8700,7 @@
     case s_n_llhttp__internal__n_consume_content_length:
     s_n_llhttp__internal__n_consume_content_length: {
       size_t avail;
-      size_t need;
+      uint64_t need;
 
       avail = endp - p;
       need = state->content_length;
@@ -9048,7 +9048,7 @@
     case s_n_llhttp__internal__n_consume_content_length_1:
     s_n_llhttp__internal__n_consume_content_length_1: {
       size_t avail;
-      size_t need;
+      uint64_t need;
 
       avail = endp - p;
       need = state->content_length;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/llhttp/llhttp.h new/ext/llhttp/llhttp.h
--- old/ext/llhttp/llhttp.h     2021-06-26 02:33:51.000000000 +0200
+++ new/ext/llhttp/llhttp.h     2021-09-10 00:19:36.000000000 +0200
@@ -26,7 +26,7 @@
 
 #define LLHTTP_VERSION_MAJOR 6
 #define LLHTTP_VERSION_MINOR 0
-#define LLHTTP_VERSION_PATCH 1
+#define LLHTTP_VERSION_PATCH 5
 
 #ifndef LLHTTP_STRICT_MODE
 # define LLHTTP_STRICT_MODE 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/llhttp/parser.rb new/lib/llhttp/parser.rb
--- old/lib/llhttp/parser.rb    2021-06-26 02:33:51.000000000 +0200
+++ new/lib/llhttp/parser.rb    2021-09-10 00:19:36.000000000 +0200
@@ -117,12 +117,18 @@
       LLHttp.llhttp_should_keep_alive(@pointer) == 1
     end
 
-    # [public] Get ready to parse the next request.
+    # [public] Tells the parser we are finished.
     #
     def finish
       LLHttp.llhttp_finish(@pointer)
     end
 
+    # [public] Get ready to parse the next request/response.
+    #
+    def reset
+      LLHttp.llhttp_reset(@pointer)
+    end
+
     CALLBACKS.each do |callback|
       class_eval(
         <<~RB, __FILE__, __LINE__ + 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/llhttp/version.rb new/lib/llhttp/version.rb
--- old/lib/llhttp/version.rb   2021-06-26 02:33:51.000000000 +0200
+++ new/lib/llhttp/version.rb   2021-09-10 00:19:36.000000000 +0200
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 module LLHttp
-  VERSION = "0.3.1"
+  VERSION = "0.4.0"
 
   # [public] LLHttp's current version.
   #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/llhttp.rb new/lib/llhttp.rb
--- old/lib/llhttp.rb   2021-06-26 02:33:51.000000000 +0200
+++ new/lib/llhttp.rb   2021-09-10 00:19:36.000000000 +0200
@@ -45,4 +45,5 @@
   attach_function :llhttp_get_error_reason, [:pointer], :string
   attach_function :llhttp_should_keep_alive, [:pointer], :int
   attach_function :llhttp_finish, [:pointer], :int
+  attach_function :llhttp_reset, [:pointer], :void
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-06-26 02:33:51.000000000 +0200
+++ new/metadata        2021-09-10 00:19:36.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: llhttp-ffi
 version: !ruby/object:Gem::Version
-  version: 0.3.1
+  version: 0.4.0
 platform: ruby
 authors:
 - Bryan Powell
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2021-06-26 00:00:00.000000000 Z
+date: 2021-09-09 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: ffi-compiler

Reply via email to