sin_fast_blank 2.2.0 → 3.0.0

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: a997d09cae43ba54e6bdf67653f42624e1e24d9bc95bc3f6746ee395e7c1c8b6
4
- data.tar.gz: 79e130061acd6f534d452632fd9db962970e4d3b6ef11ff6cba2857b31b1a013
3
+ metadata.gz: 6ec25f2b02d6ef4454e68654537978f40540d89b2f4e63f5a15ea1d847310daa
4
+ data.tar.gz: 347cf7afe2b05c9e771a725546573ec55ec7107c9d1a53f23a056cc27206640b
5
5
  SHA512:
6
- metadata.gz: e377bcbfb32e24bf1d07b763228f5a324a1da74470262ece7a120c41127018401f36a57a8d255b0ba9237e82b9f5546c3be01b723136e0e3314e495da9bfbdea
7
- data.tar.gz: 536ff2d8d37822686338925c4b5504a490d5725d3542a64a14c3ac866e79993863dabc7464a56efe6fd2b2725596b274b5fb099866c87dc60a2179dfdc32fa6e
6
+ metadata.gz: 8cc152c5c8d2a2cac8012600186a39caebeafe74218b7c861735b7fb57c90bb415c32a4f24b8948373a6b0bda804acdcf2c67389f1d1ce447e523a047e545ee0
7
+ data.tar.gz: f4e1c57e5395e1d7a50ae7d49778419243ea9f895822a54a1dadd1b3b9dd736dbc316fdb41cb1181e946951e07324da55632f756312f913d7d22767e0d23078b
@@ -36,7 +36,7 @@ static inline int is_unicode_blank(unsigned int codepoint) {
36
36
  }
37
37
  }
38
38
 
39
- static VALUE rb_str_blank_as(VALUE str) {
39
+ static VALUE rb_str_blank(VALUE str) {
40
40
  long len = RSTRING_LEN(str);
41
41
  if (len == 0) {
42
42
  return Qtrue;
@@ -83,7 +83,7 @@ FULL_CHECK:;
83
83
  return Qtrue;
84
84
  }
85
85
 
86
- static VALUE rb_str_blank(VALUE str) {
86
+ static VALUE rb_str_ascii_blank(VALUE str) {
87
87
  long len = RSTRING_LEN(str);
88
88
  if (len == 0) {
89
89
  return Qtrue;
@@ -126,5 +126,5 @@ FULL_CHECK:;
126
126
 
127
127
  void Init_sin_fast_blank(void) {
128
128
  rb_define_method(rb_cString, "blank?", rb_str_blank, 0);
129
- rb_define_method(rb_cString, "blank_as?", rb_str_blank_as, 0);
129
+ rb_define_method(rb_cString, "ascii_blank?", rb_str_ascii_blank, 0);
130
130
  }
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sin_fast_blank
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-03-05 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: |
13
- Ruby extension library for up to 3x faster blank string checking than fast_blank gem.
14
- Forked from FastBlank.
12
+ description: Ruby extension library for up to 9x faster blank string checking than
13
+ fast_blank gem.
15
14
  email:
16
15
  - watanabe@cadenza-tech.com
17
16
  executables: []
@@ -21,15 +20,15 @@ extra_rdoc_files: []
21
20
  files:
22
21
  - ext/sin_fast_blank/extconf.rb
23
22
  - ext/sin_fast_blank/sin_fast_blank.c
24
- homepage: https://github.com/cadenza-tech/sin_fast_blank/tree/v2.2.0
23
+ homepage: https://github.com/cadenza-tech/sin_fast_blank/tree/v3.0.0
25
24
  licenses:
26
25
  - MIT
27
26
  metadata:
28
- homepage_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v2.2.0
29
- source_code_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v2.2.0
30
- changelog_uri: https://github.com/cadenza-tech/sin_fast_blank/blob/v2.2.0/CHANGELOG.md
27
+ homepage_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v3.0.0
28
+ source_code_uri: https://github.com/cadenza-tech/sin_fast_blank/tree/v3.0.0
29
+ changelog_uri: https://github.com/cadenza-tech/sin_fast_blank/blob/v3.0.0/CHANGELOG.md
31
30
  bug_tracker_uri: https://github.com/cadenza-tech/sin_fast_blank/issues
32
- documentation_uri: https://rubydoc.info/gems/sin_fast_blank/2.2.0
31
+ documentation_uri: https://rubydoc.info/gems/sin_fast_blank/3.0.0
33
32
  funding_uri: https://patreon.com/CadenzaTech
34
33
  rubygems_mfa_required: 'true'
35
34
  required_jruby_version: ">= 9.3.0.0"
@@ -51,6 +50,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
50
  requirements: []
52
51
  rubygems_version: 3.6.2
53
52
  specification_version: 4
54
- summary: Ruby extension library for up to 3x faster blank string checking than fast_blank
53
+ summary: Ruby extension library for up to 9x faster blank string checking than fast_blank
55
54
  gem.
56
55
  test_files: []