nokolexbor 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b910105b4ec472a50603cfaacb05e8cadb197a91480e6084ccc438132fea10b4
4
- data.tar.gz: 149523b2290e5772e9cb24df768bb5f041574028f3f9131beb4d51d05e8dd9be
3
+ metadata.gz: 17230669785aa3a0bd2703cee73e72ccced0600d12fc52228125d4d6579b8290
4
+ data.tar.gz: 68fb22f67bcd9cfcad78eb3ecb2f860e71d72e78951987c3fae6ca8b03203c63
5
5
  SHA512:
6
- metadata.gz: c4a942b16c8c9de309a7235a3163c0265b03f6db24f2e22d84abd488744568f78d14d414e8f1cf71ec377fddd89b97a6a2010ac9385dbe0af0531e6e287a2360
7
- data.tar.gz: 0256be587e76a5642b1e2caaf0119ea69b25335f011b60741085f884d027692b11142047ada0ce8605df5695a584de68dae41e2d0dad50403f97ae529bcc3bdd
6
+ metadata.gz: 28b1fafc6889a6d020f7f7275ee9e668808334c6106fd79c68f514d233983df38169521d407726d6cc680d8e9f589b3914398bfdfc6a57a24fdda9a910741505
7
+ data.tar.gz: fd12b7be8b5f159680b652d2092144baab2fdd23e8b13c6d22cea69b6a9920019336cf07a5790148ff6fd1c7c0392d55989c2218abe876599a468397551dec9c
@@ -285,7 +285,7 @@ mark_node_orders(lxb_dom_node_t *root)
285
285
  void sort_nodes_if_necessary(VALUE selector, lxb_dom_document_t *doc, lexbor_array_t *array)
286
286
  {
287
287
  // No need to sort if there's only one selector, the results are natually in document traversal order
288
- if (strnstr(RSTRING_PTR(selector), ",", RSTRING_LEN(selector)) != NULL)
288
+ if (strstr(RSTRING_PTR(selector), ",") != NULL)
289
289
  {
290
290
  int need_order = 0;
291
291
  // Check if we have already markded orders, note that
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nokolexbor
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokolexbor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yicheng Zhou